This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
what's a "virtual baseclass botch"?
- To: gdb at sourceware dot cygnus dot com
- Subject: what's a "virtual baseclass botch"?
- From: Maciej Kalisiak <mac at cs dot toronto dot edu>
- Date: Tue, 16 Jan 2001 12:13:16 -0500
- Reply-To: mac at dgp dot toronto dot edu
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