summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2001-04-12 19:53:09 +0000
committerNicholas Duffek <nsd@redhat.com>2001-04-12 19:53:09 +0000
commit49282387fc742e8d858ac26ef638f653db48e07f (patch)
tree780ef9093e7e36064dd09289491bd9420353c9bb
parent7f6b83a5db5f4d6ba6a953c091399910f88fc901 (diff)
downloadbinutils-gdb-49282387fc742e8d858ac26ef638f653db48e07f.tar.gz
* xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
"@".
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/xcoffread.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e026c678bd2..276b1a1d6da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-12 Nicholas Duffek <nsd@redhat.com>
+
+ * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
+ "@".
+
2001-04-12 Kevin Buettner <kevinb@redhat.com>
* config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 0b3c70726fc..586f258d90f 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2243,8 +2243,14 @@ scan_xcoff_symtab (struct objfile *objfile)
else
csect_aux = main_aux[0];
- /* If symbol name starts with ".$" or "$", ignore it. */
- if (namestring[0] == '$'
+ /* If symbol name starts with ".$" or "$", ignore it.
+
+ A symbol like "@FIX1" introduces a section for -bbigtoc jump
+ tables, which contain anonymous linker-generated code.
+ Ignore those sections to avoid "pc 0x... in read in psymtab,
+ but not in symtab" warnings from find_pc_sect_symtab. */
+
+ if (namestring[0] == '$' || namestring[0] == '@'
|| (namestring[0] == '.' && namestring[1] == '$'))
break;