This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB Remote protocol error codes
- From: Daniel Jacobowitz <drow at false dot org>
- To: David Howells <dhowells at redhat dot com>
- Cc: gdb at sourceware dot org, Roel Kluin <roel dot kluin at gmail dot com>
- Date: Thu, 12 Feb 2009 10:53:27 -0500
- Subject: Re: GDB Remote protocol error codes
- References: <31615.1234451921@redhat.com>
On Thu, Feb 12, 2009 at 03:18:41PM +0000, David Howells wrote:
>
> Hi,
>
> Is there a general scheme for error reply codes ('Exx') in the GDB remote
> protocol? The documentation is unclear on this point. _Some_ of the commands
> mandate an errno return, but not all, and from whose set of errnos? And does
> this apply to all commands?
>
> Can the gdb.info file be updated to make this more clear please?
>
> I need to know this so that I can fix up the error returns made by the FRV
> arch gdbstub in the Linux kernel.
Fix up relative to what? As Jeremy said, the numbers are mostly
ignored.
Jim added protocol support for more precise errors and verbose
messages a while ago, but no one's had the interest to define error
codes; also GDB needs work to not just discard them.
--
Daniel Jacobowitz
CodeSourcery