This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Walking an array of structs under gdb-Python
- From: Keith Goldberg <keith dot goldberg at actifio dot com>
- To: gdb at sourceware dot org
- Date: Fri, 18 Mar 2011 13:02:04 -0400
- Subject: Walking an array of structs under gdb-Python
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.