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:
parent
dd2a1d9b51
commit
3484ecc419
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue