I have auto_ptr<IFoo> where IFoo is an interface with only pure virtual methods.
Now I also have the main file after the segmentation error, where I would really like to know that there was a specific subclass behind this auto-bird. Since dynamic_cast works in the project, I think RTTI should be somehow accessible, but I donโt know how to access this information through gdb ?
The output I get is as follows:
(gdb) print this->obj._M_ptr $22 = (class martin::IFoo *) 0x7418
What I really would like to know if the pointer belongs to IBar or IBaz .
Thanks for any help!
source share