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]

what's a "virtual baseclass botch"?


I am debugging a program which makes use of a dynamic_cast, roughly like this:

620         Derived* pDerived = dynamic_cast<Derived*>(pBase);

Base class is an ADT.  

Then I do this:

(gdb) print pDerived
$1 = (Derived *) 0x8176e74
(gdb) print *pDerived
virtual baseclass botch
(gdb)

What does that mean?  How can I otherwise see *pDerived?

BTW, using gdb 5.0

-- 
Maciej Kalisiak		mac@dgp.toronto.edu	www.dgp.toronto.edu/~mac

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