public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* what's a "virtual baseclass botch"?
@ 2001-01-16  9:13 Maciej Kalisiak
  0 siblings, 0 replies; only message in thread
From: Maciej Kalisiak @ 2001-01-16  9:13 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-16  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16  9:13 what's a "virtual baseclass botch"? Maciej Kalisiak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).