This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]