* Displaying structure members if only structure address is available
@ 2007-09-28 0:07 Peter Skvarka
2007-09-28 19:48 ` Joel Brobecker
0 siblings, 1 reply; 2+ messages in thread
From: Peter Skvarka @ 2007-09-28 0:07 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Displaying structure members if only structure address is available
2007-09-28 0:07 Displaying structure members if only structure address is available Peter Skvarka
@ 2007-09-28 19:48 ` Joel Brobecker
0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2007-09-28 19:48 UTC (permalink / raw)
To: Peter Skvarka; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-28 18:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-28 0:07 Displaying structure members if only structure address is available Peter Skvarka
2007-09-28 19:48 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).