This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: cast in gdb python results in virtual baseclass botch
- From: Tom Tromey <tromey at redhat dot com>
- To: Christoph Mathys <eraserix at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 14 Apr 2011 10:03:42 -0600
- Subject: Re: cast in gdb python results in virtual baseclass botch
- References: <BANLkTini00+LMH4JjDmNOWNe+2PMi+b3Lg@mail.gmail.com>
>>>>> "Christoph" == Christoph Mathys <eraserix@gmail.com> writes:
Christoph> RuntimeError: virtual baseclass botch
Christoph> I use gdb 7.2, which apparently does not yet support dynamic_cast().
Christoph> Both variables are stored inside a boost::shared_ptr, and I try to
Christoph> cast to contained interface pointer to a specific implementation
Christoph> pointer.
Can you make a small, self-contained example program showing the bug?
That would be very helpful.
I am not sure under what circumstances "virtual baseclass botch" can
show up. The code is obscure.
Tom