From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9936 invoked by alias); 12 Jun 2003 18:07:18 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9897 invoked from network); 12 Jun 2003 18:07:17 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 12 Jun 2003 18:07:17 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19QWUU-0008Np-00; Thu, 12 Jun 2003 13:08:03 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19QWTi-0004zH-00; Thu, 12 Jun 2003 14:07:14 -0400 Date: Thu, 12 Jun 2003 18:07:00 -0000 From: Daniel Jacobowitz To: David Carlton Cc: gdb , Elena Zannoni , Jim Blandy Subject: Re: DW_AT_containing_type Message-ID: <20030612180714.GA19092@nevyn.them.org> Mail-Followup-To: David Carlton , gdb , Elena Zannoni , Jim Blandy References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00213.txt.bz2 On Thu, Jun 12, 2003 at 10:56:50AM -0700, David Carlton wrote: > What's with GDB's and GCC's use of DW_AT_containing type? As far as I > can tell, it's only supposed to be used within > DW_TAG_ptr_to_member_type, but GCC generates it and GDB uses it in > many other contexts. > > I'll try to find time to figure out how we use it later, but I wanted > to raise the issue in case anybody knows the answer or in case other > people aren't aware that we seem to be misusing it. We are misusing it. See the GCC source for a comment explaining this GNU extension. We use it to indicate which base type contains the vtable pointer for the derived class; there are a number of other ways to do it, and at one point we should switch to another way. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer