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: offset of a struct field (qSymbol)


On Wed, Oct 01, 2008 at 03:19:04PM -0700, Michael Snyder wrote:
> There is a syntax for gdb to send an expression to the
> server, and have the server evaluate it.  Perhaps we could
> simply reverse that syntax, so that the server could send
> an expression to gdb, and have gdb evaluate it and send
> back the answer?

IMO this is a bad idea.  It's too ambiguous, and it will breed remote
servers that rely on quirks in a particular version of the GDB
expression parser.

I've worked with some other debug tools that worked this way and it
was a terrible headache.

-- 
Daniel Jacobowitz
CodeSourcery


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