Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/rfa] Exclude local symbols in somread.c
@ 2004-06-10  6:01 Randolph Chung
  2004-06-10 13:02 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2004-06-10  6:01 UTC (permalink / raw)
  To: gdb-patches

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-10 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10  6:01 [patch/rfa] Exclude local symbols in somread.c Randolph Chung
2004-06-10 13:02 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox