This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix warning on AIX about missing symbols in symtab with bigtoc
- From: Paul Hilfinger <Hilfinger at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 16 Aug 2008 05:18:49 -0400 (EDT)
- Subject: [commit] Fix warning on AIX about missing symbols in symtab with bigtoc
- Reply-to: Hilfinger at adacore dot com
The following is now committed, as approved.
Paul Hilfinger
2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
* xcoffread.c (scan_xcoff_symtab): Do not include global symbols
('F' format) for @FIX names generated by the loader, retaining only
the minimal symbols (and no partial symbol tables) for these names.
Fixes warning messages about symbols that are found in partial
symbol tables, but not full symbol tables.
Index: gdb/xcoffread.c
===================================================================
RCS file: /cvs/src/src/gdb/xcoffread.c,v
retrieving revision 1.60
diff -u -p -r1.60 xcoffread.c
--- gdb/xcoffread.c 27 Mar 2008 12:28:48 -0000 1.60
+++ gdb/xcoffread.c 9 Aug 2008 22:31:09 -0000
@@ -2755,6 +2755,14 @@ scan_xcoff_symtab (struct objfile *objfi
function_outside_compilation_unit_complaint (name);
xfree (name);
}
+
+ /* We need only the minimal symbols for these
+ loader-generated definitions. Keeping the global
+ symbols leads to "in psymbols but not in symbols"
+ errors. */
+ if (strncmp (namestring, "@FIX", 4) == 0)
+ continue;
+
symbol.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
add_psymbol_to_list (namestring, p - namestring,
VAR_DOMAIN, LOC_BLOCK,