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]

Re: Displaying structure members if only structure address is available


> 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


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