From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14427 invoked by alias); 27 Feb 2007 16:54:17 -0000 Received: (qmail 14417 invoked by uid 22791); 27 Feb 2007 16:54:17 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 27 Feb 2007 16:54:07 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HM5aX-0007tl-5C; Tue, 27 Feb 2007 11:54:05 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HM5aW-0008W2-UW; Tue, 27 Feb 2007 11:54:04 -0500 Date: Tue, 27 Feb 2007 16:54:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA/stabs] 't' type declaration is equivalent to 'Tt' for Ada Message-ID: <20070227165404.GC31729@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sourceware.org References: <20070209225249.GK3372@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070209225249.GK3372@adacore.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00333.txt.bz2 On Fri, Feb 09, 2007 at 02:52:49PM -0800, Joel Brobecker wrote: > The problem is that we only match STRUCT_DOMAIN symbols. > However, in our case, the actual type was declared: > > system__standard_library__exception_data:t22= > > This is different from: > > system__standard_library__exception_data:Tt22= > > When we have a 't', the debugger builds a VAR_DOMAIN symbol. When we > have a 'T', the debugger also builds a STRUCT_DOMAIN symbol. In Ada, > there is no equivalent of the distinction between typedef and non-typedef. > So as a result, I modified the stabsreader such that, for Ada, a 't' > symbol would be treated as if it was defined with 'Tt'. I guess this is OK. It seems silly to rely on STRUCT_DOMAIN, but I don't want to make intrusive changes to this code now - a drawback of everything moving away from stabs is that it becomes harder to test. -- Daniel Jacobowitz CodeSourcery