Internal Error in GDB (was: ld includes entire archive (.a) when compiling .elf file)
Dave Korn
dave.korn@artimi.com
Fri Apr 7 14:59:00 GMT 2006
On 07 April 2006 15:35, Daniel Jacobowitz wrote:
> On Fri, Apr 07, 2006 at 10:33:46AM -0400, Josh Keller wrote:
>> Is there any way that I can disable these messages so that I can debug
>> more easily?
>
> I don't think so.
:) Why, are you saying that building gdb from source isn't easy?
/src/gdb/symtab.c, line 1919:
---------------------------------------<snip>
s = NULL;
ps = find_pc_sect_psymtab (pc, section);
if (ps)
{
if (ps->readin)
/* Might want to error() here (in case symtab is corrupt and
will cause a core dump), but maybe we can successfully
continue, so let's not. */
warning (_("\
(Internal error: pc 0x%s in read in psymtab, but not in symtab.)\n"),
paddr_nz (pc));
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);
---------------------------------------<snip>
Yow. If you delete the warning() call, watch out for the un-braced if
conditional, it's easy to miss one of those when there's a comment in the way
like that.
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Binutils
mailing list