what's a "virtual baseclass botch"?
Maciej Kalisiak
mac@cs.toronto.edu
Tue Jan 16 09:13:00 GMT 2001
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
More information about the Gdb
mailing list