Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Keith Goldberg <keith.goldberg@actifio.com>
To: gdb@sourceware.org
Subject: Walking an array of structs under gdb-Python
Date: Fri, 18 Mar 2011 17:02:00 -0000	[thread overview]
Message-ID: <AANLkTikzMH8QgAZRUEt-VNjaT4+3a_Go9BeUNSkpUL+=@mail.gmail.com> (raw)

All -

Can someone please point me to an example of how to walk through an
array of structs using python under GDB? Presuming I have malloc'd
enough space for 100 of mystruct, I would like to be able to use
"pointer math" to inspect each element and its members at will. I
appreciate any pointer to the right resource.

Thanks -

K.


             reply	other threads:[~2011-03-18 17:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 17:02 Keith Goldberg [this message]
2011-03-22 16:40 ` Tom Tromey
2011-03-23 16:36   ` kidoshisama
2011-03-23 18:15     ` Tom Tromey

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='AANLkTikzMH8QgAZRUEt-VNjaT4+3a_Go9BeUNSkpUL+=@mail.gmail.com' \
    --to=keith.goldberg@actifio.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