This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error codes in Remote Serial Protocol


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]