This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB internal error: pc in psymtab, not in symtab
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Eager <eager at eagercon dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 12 Oct 2006 00:43:10 -0400
- Subject: Re: GDB internal error: pc in psymtab, not in symtab
- References: <452DC493.40908@eagercon.com>
On Wed, Oct 11, 2006 at 09:29:07PM -0700, Michael Eager wrote:
> 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.
Psymtabs do not come from the ELF symbol table; they come from a first
pass over the DWARF information. So, if this warning triggers, that
pass must have done something bogus.
"maint print psymbols" and "maint print symbols" might be useful;
the interesting question is, what psymtab thought it covered the
address, and why didn't the corresponding symtab?
Oh, one frequent cause is mis-estimating the range of addresses covered
by the psymtab.
--
Daniel Jacobowitz
CodeSourcery