This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Displaying structure members if only structure address is available
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Peter Skvarka <ps at softinengines dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 28 Sep 2007 11:34:59 -0700
- Subject: Re: Displaying structure members if only structure address is available
- References: <20070927200821.1C0DF1973AD@debian.softinengines.com>
> 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