Displaying structure members if only structure address is available
Joel Brobecker
brobecker@adacore.com
Fri Sep 28 19:48:00 GMT 2007
> I set "set print pretty on", but when I try "show args" some structure
> pointer parameters are not displayed like structure with members but
> only: "(soap*)0x12345678". How to display all structure members if I
> know address and gdb knows this structure ?
Is your argument really of type (struct) "soap" or actually of type
"soap *". If it is the latter, GDB is behaving as expected. I don't
think there is any command in GDB that allows you to see the value
of all arguments with pointers automatically dereferenced... So as
far as I know, you'll have to dereference it manually.
--
Joel
More information about the Gdb
mailing list