From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20129 invoked by alias); 2 May 2008 13:51:56 -0000 Received: (qmail 20118 invoked by uid 22791); 2 May 2008 13:51:55 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 May 2008 13:51:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id F09CF983DA; Fri, 2 May 2008 13:51:33 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9BA1F983D6; Fri, 2 May 2008 13:51:33 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jrvfg-00083V-O0; Fri, 02 May 2008 09:51:32 -0400 Date: Fri, 02 May 2008 14:01:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: GDB Patches , brobecker@adacore.com Subject: Re: [rfc] get rid of redundant data in c++ and java Message-ID: <20080502135132.GD29202@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , GDB Patches , brobecker@adacore.com References: <47AD383E.7000205@qnx.com> <20080501192532.GG22218@caradoc.them.org> <481B198F.30701@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <481B198F.30701@qnx.com> User-Agent: Mutt/1.5.17 (2007-12-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: 2008-05/txt/msg00078.txt.bz2 On Fri, May 02, 2008 at 09:39:27AM -0400, Aleksandar Ristovski wrote: > ChangeLog: > * dwarf2read.c (add_partial_symbol): Do not add new psym for > STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada > class as typedefs. See lookup_partial_symbol function. > (new_symbol): Similar to add_partial_symbol, do not create symbol for > the typedef. See lookup_block_symbol. > * symtab.c (symbol_matches_domain): New function, takes care > of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java. > (lookup_partial_symbol): Use symbol_matches_domain to see if the > found psym domain matches the given domain. > (lookup_block_symbol): Likewise. Thanks. Joel, could you give this a try with GNAT? If it works for Joel, it's OK to commit. -- Daniel Jacobowitz CodeSourcery