List Info

Thread: Displaying structure members if only structure address is available




Displaying structure members if only structure address is available
country flaguser name
Slovakia
2007-09-27 15:11:07
Hi,

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 ?

Thanks,
Peter


Re: Displaying structure members if only structure address is available
country flaguser name
United States
2007-09-28 13:34:59
> 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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )