This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfa] Exclude local symbols in somread.c
- From: Randolph Chung <randolph at tausq dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 9 Jun 2004 23:01:08 -0700
- Subject: [patch/rfa] Exclude local symbols in somread.c
- Reply-to: Randolph Chung <randolph at tausq dot org>
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 <tausq@debian.org>
* 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/