Error codes in Remote Serial Protocol

Andrew Cagney cagney@gnu.org
Tue Nov 16 01:34:00 GMT 2004


Jon Beniston wrote:
> Hi Andrew,
> 
> 
>>Jon Beniston wrote:
>>
>>>Hi,
>>>
>>>Many of the commands in the remote serial protocol can 
>>
>>return an error 
>>
>>>code, 'ENN'. Are the values for these error codes defined anywhere?
>>
>>No.
>>
>>Perhaphs we should adopt those found in "include/gdb/fileio.h"?
> 
> 
> Are you refering to the errno codes? Do they really capture the type of
> errors we wish to return (i.e. no more breakpoint registers available).

Yes, and hopefully near enough: No space left on device

In the past it's been suggested that a local set of alternative 
messages; or or return error strings vis:

E00,<hex-encoded-string>

of course the latter has i18n problems :-(

Andrew



More information about the Gdb mailing list