warning: garbage in qC reply

Mathieu Tarral <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <bWdTrqmMk2jFk7kEDJPtTgrrgs4ndytwelgEt5nNutAmSyKCuTljS4JMr5Z-HWoKk-tlcWDGQcbrrHGWpmIayAnedLudU5xeFzL7Z51urlw=@protonmail.com>
Hi,

I'm writing a new GDB stub in Python, and while implementing
each command that is sent to me by the GDB client during
the attach phase, I'm facing an issue with the qC command:

GDB is asking me to set the current thread-id to -1, with Hc-1
and immediately after it query the current thread id, with qC
I return -1 with QC-1, and I get a warning:

Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received: QC-1
warning: garbage in qC reply

Is -1 an invalid thread-id syntax for qC ?

Thanks !
--
Mathieu Tarral

Sent with ProtonMail Secure Email.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.