This is the mail archive of the gdb@sources.redhat.com 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]

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


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