Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mukesh Rathor <todfod@hotmail.com>
To: <gdb@sourceware.org>
Subject: offset of a struct field (qSymbol)
Date: Wed, 01 Oct 2008 01:51:00 -0000	[thread overview]
Message-ID: <BAY144-W3E14B48A02AE2C2C2DE6EDD420@phx.gbl> (raw)


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.

thanks a lot,
Mukesh

_________________________________________________________________
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008


             reply	other threads:[~2008-10-01  1:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01  1:51 Mukesh Rathor [this message]
2008-10-01 11:55 ` Daniel Jacobowitz
2008-10-01 22:20 ` Michael Snyder
2008-10-01 22:25   ` Daniel Jacobowitz
2008-10-02  0:24     ` Mukesh Rathor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY144-W3E14B48A02AE2C2C2DE6EDD420@phx.gbl \
    --to=todfod@hotmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox