This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: offset of a struct field (qSymbol)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: Mukesh Rathor <todfod at hotmail dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 1 Oct 2008 18:25:10 -0400
- Subject: Re: offset of a struct field (qSymbol)
- References: <BAY144-W3E14B48A02AE2C2C2DE6EDD420@phx.gbl> <48E3F758.6070701@vmware.com>
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