This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
GDB internal error: pc in psymtab, not in symtab
- From: Michael Eager <eager at eagercon dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 11 Oct 2006 21:29:07 -0700
- Subject: GDB internal error: pc in psymtab, not in symtab
I've been bitten by this same problem:
http://sourceware.org/ml/gdb/2005-11/msg00279.html
It looks like GDB issues a warning when the ELF symbol
table contains symbols, but the DWARF data doesn't.
Assembler source with a .file will have DWARF sections,
but only a TAG_Compilation_Unit. It's legit DWARF.
There seem to be fixes for problems with similar
symptoms with mdebug and stabs, but nothing for DWARF.
Have you seen any kind of fix?
Any suggestion for a fix? It doesn't look like GDB
knows where the debug info came from. One fix is
to simply suppress the message. Another is to have
the DWARF reader tag the psym if no symbols are found,
so that symtab.c can know that it's not an error.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077