offset of a struct field (qSymbol)

Mukesh Rathor
Thu Oct 2 00:24:00 GMT 2008

> Date: Wed, 1 Oct 2008 18:25:10 -0400
> From:
> To:
> CC:;
> Subject: 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.

I managed to get by. Basically, I ask the user to lookup the value manually, and then use monitor to send the info to gdbserver. The monitor cmd really helped simplify things.

> -- 
> Daniel Jacobowitz
> CodeSourcery

See how Windows Mobile brings your life together—at home, work, or on the go.

More information about the Gdb mailing list