From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Daniel Berlin Cc: Jason Merrill , libstdc++@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: C++ debugging progress Date: Wed, 28 Nov 2001 10:49:00 -0000 Message-id: <20011128135013.A28361@nevyn.them.org> References: <20011128124118.A23447@nevyn.them.org> X-SW-Source: 2001-11/msg00318.html On Wed, Nov 28, 2001 at 01:36:28PM -0500, Daniel Berlin wrote: > > Dwarf2 first: > > <1><115>: Abbrev Number: 15 (DW_TAG_structure_type) > > DW_AT_sibling : <1c2> > > DW_AT_name : Bottom > > DW_AT_byte_size : 24 > > DW_AT_decl_file : 1 > > DW_AT_decl_line : 4 > > DW_AT_containing_type: <22e> > > <2><128>: Abbrev Number: 16 (DW_TAG_inheritance) > > DW_AT_type : <22e> > > DW_AT_data_member_location: 2 byte block: 23 0 (DW_OP_plus_uconst: 0; ) > > DW_AT_accessibility: 1 (public) > > <2><131>: Abbrev Number: 16 (DW_TAG_inheritance) > > DW_AT_type : <2df> > > DW_AT_data_member_location: 2 byte block: 23 8 (DW_OP_plus_uconst: 8; ) > > DW_AT_accessibility: 1 (public) > > <2><13a>: Abbrev Number: 3 (DW_TAG_member) > > DW_AT_name : bbb > > DW_AT_decl_file : 1 > > DW_AT_decl_line : 4 > > DW_AT_type : > > DW_AT_data_member_location: 2 byte block: 23 10 (DW_OP_plus_uconst: 16; ) > > > > Do you see it? I don't, and I'm pretty sure it's not there. > > Umm, look at type 2df and 22e. > I'm going to bet money xxx is there. You owe me some money. Both 22e and 2df are marked as inheriting from Base, which is <56> (I included 22e in the original message). They contain: <2><23f>: Abbrev Number: 22 (DW_TAG_inheritance) DW_AT_type : <56> DW_AT_data_member_location: 2 byte block: 23 8 (DW_OP_plus_uconst: 8; ) DW_AT_virtuality : 1 (virtual) DW_AT_accessibility: 1 (public) That tells me where xxx would be, inside the <56> at offset +8, if my object was of type 2df or 22e. It isn't, it's of type 115. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28119 invoked by alias); 28 Nov 2001 18:49:58 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27926 invoked from network); 28 Nov 2001 18:49:54 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 18:49:54 -0000 Received: from drow by nevyn.them.org with local (Exim 3.32 #1 (Debian)) id 1699mf-0007RH-00; Wed, 28 Nov 2001 13:50:13 -0500 Date: Wed, 21 Nov 2001 12:33:00 -0000 From: Daniel Jacobowitz To: Daniel Berlin Cc: Jason Merrill , libstdc++@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: C++ debugging progress Message-ID: <20011128135013.A28361@nevyn.them.org> Mail-Followup-To: Daniel Berlin , Jason Merrill , libstdc++@gcc.gnu.org, gdb@sources.redhat.com References: <20011128124118.A23447@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2001-11/txt/msg00211.txt.bz2 Message-ID: <20011121123300.wX3OEH4N-Nhll1W4TOdC7_zAoAXanQnSwngIbtmszFI@z> On Wed, Nov 28, 2001 at 01:36:28PM -0500, Daniel Berlin wrote: > > Dwarf2 first: > > <1><115>: Abbrev Number: 15 (DW_TAG_structure_type) > > DW_AT_sibling : <1c2> > > DW_AT_name : Bottom > > DW_AT_byte_size : 24 > > DW_AT_decl_file : 1 > > DW_AT_decl_line : 4 > > DW_AT_containing_type: <22e> > > <2><128>: Abbrev Number: 16 (DW_TAG_inheritance) > > DW_AT_type : <22e> > > DW_AT_data_member_location: 2 byte block: 23 0 (DW_OP_plus_uconst: 0; ) > > DW_AT_accessibility: 1 (public) > > <2><131>: Abbrev Number: 16 (DW_TAG_inheritance) > > DW_AT_type : <2df> > > DW_AT_data_member_location: 2 byte block: 23 8 (DW_OP_plus_uconst: 8; ) > > DW_AT_accessibility: 1 (public) > > <2><13a>: Abbrev Number: 3 (DW_TAG_member) > > DW_AT_name : bbb > > DW_AT_decl_file : 1 > > DW_AT_decl_line : 4 > > DW_AT_type : > > DW_AT_data_member_location: 2 byte block: 23 10 (DW_OP_plus_uconst: 16; ) > > > > Do you see it? I don't, and I'm pretty sure it's not there. > > Umm, look at type 2df and 22e. > I'm going to bet money xxx is there. You owe me some money. Both 22e and 2df are marked as inheriting from Base, which is <56> (I included 22e in the original message). They contain: <2><23f>: Abbrev Number: 22 (DW_TAG_inheritance) DW_AT_type : <56> DW_AT_data_member_location: 2 byte block: 23 8 (DW_OP_plus_uconst: 8; ) DW_AT_virtuality : 1 (virtual) DW_AT_accessibility: 1 (public) That tells me where xxx would be, inside the <56> at offset +8, if my object was of type 2df or 22e. It isn't, it's of type 115. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer