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: Mukesh Rathor <todfod at hotmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 1 Oct 2008 07:54:34 -0400
- Subject: Re: offset of a struct field (qSymbol)
- References: <BAY144-W3E14B48A02AE2C2C2DE6EDD420@phx.gbl>
On Wed, Oct 01, 2008 at 01:50:48AM +0000, Mukesh Rathor wrote:
>
> Hi,
> I've written a gdbserver (gdbsx) for xen to debug guests. I'm trying to figure out if there's a way to figure offset of a field from gdbserver.
>
> Thus, init_mm is a struct, and I can do qSymbol on init_mm, but not
> init_mm.pgd. I am wondering if there's anyway to do that at present,
> or get gdb to do "print &(init_mm.pgd) somehow and send me the
> value.
No, not presently.
--
Daniel Jacobowitz
CodeSourcery