Walking an array of structs under gdb-Python

Keith Goldberg keith.goldberg@actifio.com
Fri Mar 18 17:02:00 GMT 2011


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.



More information about the Gdb mailing list