This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb crash when printing C++ class
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kris Warkentin <kewarken at qnx dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 10 Dec 2004 16:46:40 -0500
- Subject: Re: gdb crash when printing C++ class
- References: <41BA0117.40407@qnx.com> <20041210202108.GA7717@nevyn.them.org> <41BA1487.8030302@qnx.com>
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