Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* cast in gdb python results in virtual baseclass botch
@ 2011-04-13 14:59 Christoph Mathys
  2011-04-13 15:27 ` André Pönitz
  2011-04-14 16:03 ` Tom Tromey
  0 siblings, 2 replies; 7+ messages in thread
From: Christoph Mathys @ 2011-04-13 14:59 UTC (permalink / raw)
  To: gdb

I try to cast a gdb.Value to another type. There are cases where it
works, and others where it doesn't, and I don't really know why. If it
doesn't work, I get the following exception when I call cast():
RuntimeError: virtual baseclass botch

I use gdb 7.2, which apparently does not yet support dynamic_cast().

Both variables are stored inside a boost::shared_ptr, and I try to
cast to contained interface pointer to a specific implementation
pointer.

Christoph


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-14 16:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-13 14:59 cast in gdb python results in virtual baseclass botch Christoph Mathys
2011-04-13 15:27 ` André Pönitz
2011-04-13 17:08   ` Christoph Mathys
2011-04-13 17:09     ` Christoph Mathys
2011-04-13 17:29     ` André Pönitz
2011-04-14 13:45       ` Christoph Mathys
2011-04-14 16:03 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox