This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: remote protocol: ambiguity of 'E*' response packets
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Tue, 7 Jul 2009 11:06:14 +0100
- Subject: Re: remote protocol: ambiguity of 'E*' response packets
- References: <20090707034946.GB25935@redhat.com>
On Tuesday 07 July 2009 04:49:46, Frank Ch. Eigler wrote:
> Hi -
>
> For the 'g' and 'm' query packets, it seems like a response packet
> starting with "$E..." is entirely valid, if the register contents or
> memory region starts with a 0xE0-0xEF byte. But remote.c:remote_send()
> seems to interpret $E... anything as an error, and send_g_packet() uses
> this one.
>
> Am I misreading the code or the specs?
Have the stub return lowercase hex digits [0-9a-z], like 0xe0-0xef
to work around it.
This is http://sourceware.org/bugzilla/show_bug.cgi?id=9665
--
Pedro Alves