gdb crash when printing C++ class

Daniel Jacobowitz
Fri Dec 10 21:46:00 GMT 2004

On Fri, Dec 10, 2004 at 04:26:31PM -0500, Kris Warkentin wrote:
> I compared the vptr entries in the readelf -wi output from gcc vs. icc 
> and they're certainly different.  I don't have enough understanding yet 
> to know what differences are signifigant but hopefully looking at the 
> dwarf2 reader will enlighten me.  I've attached the readelf output just 
> in case someone wants to take a look for anything obvious.  Thanks.

GNU's use of DW_AT_containing_type for this is somewhat nonstandard. 
You'll have to find another way to work out where the vptr is for the
ICC output.  You may want to do it by the C++ ABI rather than by the
debug info.

Daniel Jacobowitz

More information about the Gdb mailing list