Skip to content

Commit

Permalink
Add support for LLDB qHostInfo packet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
knightsc committed Nov 28, 2018
1 parent dd2a1d9 commit 3484ecc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gba/remote.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 3484ecc

Please sign in to comment.