This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch/rfa] Exclude local symbols in somread.c


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]