Small remote file transfer protocol adition

Pedro Alves pedro_alves@portugalmail.pt
Tue Jan 29 17:52:00 GMT 2008


Daniel Jacobowitz wrote:
> On Tue, Jan 29, 2008 at 03:20:54PM +0000, Pedro Alves wrote:
>> Would a patch that implements support for the attachment
>> field in an error reply be accepted, in principle?
>> I'll give it a try.
> 

> Well, do you think it's a good idea?  I can't see anything wrong with
> it, but then, I just made it up.
> 

Well, since you ask :-)  I'd prefer my first suggestion, just
because it's simpler.  No worries about buffer size
limits, and the message being truncated.  If passing a message,
I'd have to be careful with what I'd say there, so it
doesn't confuse the user (strerror says one thing, native
error says something similar but not the same, possibly in
different locales).  This probably means I'd just pass the error
number anyway.

-- 
Pedro Alves



More information about the Gdb mailing list