From: "lin q" <linq936@hotmail.com>
To: gdb@sources.redhat.com
Subject: how to examine the value in this compicated class
Date: Mon, 02 May 2005 02:43:00 -0000 [thread overview]
Message-ID: <BAY10-F3743778D9AF77910340D77E9270@phx.gbl> (raw)
Hi,
I am new to gdb, in using print and display commands I can easily examine
the value of simple data type. But how about this one:
class C2;
class C1{
char* s1;
C2* c2;
};
class C2{
char* s2;
};
Let's say in the code there is a variable, c1, whose type is C1*. Then in
GDB how I can check the value of c1->c2->s2?
Thanks?
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar  get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
next reply other threads:[~2005-05-02 2:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-02 2:43 lin q [this message]
2005-05-02 4:02 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY10-F3743778D9AF77910340D77E9270@phx.gbl \
--to=linq936@hotmail.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox