This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb crash when printing C++ class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]