[lldb-dev] update: lldb-gdbserver on x86_64 linux

Greg Clayton gclayton at apple.com
Wed Jan 15 18:22:25 PST 2014


This is actually the process ID (yes the GDB remote docs are not clear on this) of the process that lldb-gdbserver is controlling. Returning 0 means there is no process yet and LLDB till treat it as you are connected, but not yet debugging anything. So return the PID to this then you will get a '?' packet for a stop reply where you will tell LLDB why you stopped. You should respond with "$T11" which is hex 0x11 which is SIGSTOP, or SIGINT.


On Jan 15, 2014, at 5:25 PM, Todd Fiala <tfiala at google.com> wrote:

> <   6> read packet: $qC#b4
> # lgs responds with thread id 0. This might be right.
> <   7> send packet: $QC0#c4
> 

Other than that you are getting close!

Greg




More information about the lldb-dev mailing list