gdb tcp connection closing

Bill Morgan arthurwilliammorgan@gmail.com
Fri Sep 21 13:16:00 GMT 2018


On Fri, Sep 21, 2018 at 7:56 AM Bill Morgan <arthurwilliammorgan@gmail.com>
wrote:

>
> On Thu, Sep 20, 2018 at 11:49 PM Christo <christo.crause@gmail.com> wrote:
>
>> On Thu, 2018-09-20 at 17:48 -0500, Bill Morgan wrote:
>> > I'm trying to write a GDB stub for an embedded application
>> >
>> > For some reason the GDB host is closing the TCP connection after it
>> > requests qOffsets, and the stub sends an empty reply.
>> >
>> > Is that expected?
>>
>> Have you activated the debug remote option in gdb (set debug remote 1)?
>> This is sometimes useful
>> in pinpointing rsp problems.
>>
>
> Thanks. It is saying the remote register packet is badly formatted.
>
> Which part of the packet is wrong?
>
> gdb.error: Remote register badly formatted:
> T050b:00000000;0d:d87e2030;0f:d4523060;thread:9
>

I was missing the trailing semicolon ';'



More information about the Gdb mailing list