This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Adding a GDB command..
- From: Eelco Chaudron <echaudron at extremenetworks dot com>
- To: "'gdb at sources dot redhat dot com'" <gdb at sources dot redhat dot com>
- Date: Fri, 15 Oct 2004 06:26:05 -0700
- Subject: Adding a GDB command..
Hi All,
I'm trying to add a GDB command, which seem to work. But now I would like to
get some data out of the know target data structure.
I can locate the pointer to the structure, using lookup_minimal_symbol(),
but how can a reference a value within this structure?
I know I need to copy the information from the target memory, but how do I
get the offset and size?
Hope some one can point me to some useful information....
Thanks,
Eelco