Re: gdb tcp connection closing

Bill Morgan <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAM4wpo8HTP661k94g53yEytMwDVU2UzvDdXYBAADORSccBrZeA@mail.gmail.com>
On Fri, Sep 21, 2018 at 7:56 AM Bill Morgan <[email protected]>
wrote:

>
> On Thu, Sep 20, 2018 at 11:49 PM Christo <[email protected]> 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 ';'
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.