* xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
authorNicholas Duffek <nsd@redhat.com>
Thu, 12 Apr 2001 19:53:09 +0000 (19:53 +0000)
committerNicholas Duffek <nsd@redhat.com>
Thu, 12 Apr 2001 19:53:09 +0000 (19:53 +0000)
"@".

gdb/ChangeLog
gdb/xcoffread.c

index e026c678bd2607dfd18bfe5236b7dfb9b3dff657..276b1a1d6dae3f7317e602ec49d018f8ac08081f 100644 (file)
@@ -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.
index 0b3c70726fce487be4a1b38b0dcf6a33f7a6f5c1..586f258d90f3d729676e9f39b33a3ad9a3d92860 100644 (file)
@@ -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;