This is the mail archive of the gdb@sources.redhat.com 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]

how to examine the value in this compicated class


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/



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