From b887c273aea58585ba34f9ff4444896e04d572a4 Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Fri, 11 Jun 2004 23:44:24 +0000 Subject: [PATCH] 2004-06-11 Randolph Chung * somread.c (som_symtab_read): Exclude gcc local symbols. --- gdb/ChangeLog | 4 ++++ gdb/somread.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e59c919ab74..d9bf0975722 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2004-06-11 Randolph Chung + + * somread.c (som_symtab_read): Exclude gcc local symbols. + 2004-06-11 Randolph Chung * infrun.c (handle_inferior_event): Handle the case when a trampoline diff --git a/gdb/somread.c b/gdb/somread.c index 4ffa4c1c9e4..13b52092a20 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -219,6 +219,7 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, 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; -- 2.30.2