This is the mail archive of the gdb@sourceware.org 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: Small remote file transfer protocol adition


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


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