This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
how to examine the value in this compicated class
- From: "lin q" <linq936 at hotmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Sun, 01 May 2005 20:43:48 -0600
- Subject: how to examine the value in this compicated class
- Bcc:
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/