From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26328 invoked by alias); 10 Jun 2004 06:01:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26069 invoked from network); 10 Jun 2004 06:01:06 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sourceware.org with SMTP; 10 Jun 2004 06:01:06 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 7E9A6CD29F; Wed, 9 Jun 2004 23:01:08 -0700 (PDT) Date: Thu, 10 Jun 2004 06:01:00 -0000 From: Randolph Chung To: gdb-patches@sources.redhat.com Subject: [patch/rfa] Exclude local symbols in somread.c Message-ID: <20040610060108.GD561@tausq.org> Reply-To: Randolph Chung Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00217.txt.bz2 This adds one more label prefix to the exclusion list -- gcc generates these local symbols that are not really meaningful to the end user. ok to apply? randolph 2004-06-09 Randolph Chung * somread.c (som_symtab_read): Exclude gcc local symbols. Index: somread.c =================================================================== RCS file: /cvs/src/src/gdb/somread.c,v retrieving revision 1.22 diff -u -p -r1.22 somread.c --- somread.c 7 Feb 2004 18:29:54 -0000 1.22 +++ somread.c 10 Jun 2004 05:30:40 -0000 @@ -219,6 +219,7 @@ som_symtab_read (bfd *abfd, struct objfi if ((symname[0] == 'L' && symname[1] == '$') || (symname[0] == '$' && symname[strlen (symname) - 1] == '$') || (symname[0] == 'D' && symname[1] == '$') + || (strncmp (symname, "L0\001", 3) == 0) || (strncmp (symname, "$PIC", 4) == 0)) continue; break; -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/