Add support for LLDB qHostInfo packet

https://github.com/llvm-mirror/lldb/blob/master/docs/lldb-gdb-remote.txt

The qHostInfo command is listed as a high priority to implement for gdb
stubs that lldb can connect to. Adding support for this command allows
lldb to properly connect with it's `gdb-remote 55555` command and
correctly determine the target and allow debugging.
This commit is contained in:
Scott Knight 2018-11-27 17:35:54 -05:00
parent dd2a1d9b51
commit 3484ecc419
No known key found for this signature in database
GPG Key ID: 8D2E42E6C5F4A267
1 changed files with 2 additions and 0 deletions

View File

@ -3705,6 +3705,8 @@ void remoteQuery(char* p)
remotePutPacket("l");
} else if (!strncmp(p, "Supported", 9)) {
remotePutPacket("PacketSize=1000");
} else if (!strncmp(p, "HostInfo", 8)) {
remotePutPacket("cputype:12;cpusubtype:5;ostype:unknown;vendor:nintendo;endian:little;ptrsize:4;");
} else if (!strncmp(p, "Rcmd,", 5)) {
p += 5;
std::string cmd = HexToString(p);