This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Internal Error in GDB (was: ld includes entire archive (.a) when compiling .elf file)
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Daniel Jacobowitz'" <drow at false dot org>, "'Josh Keller'" <jkeller at keytechinc dot com>
- Cc: <binutils at sourceware dot org>, "'Reuben Johnston'" <rjohnston at keytechinc dot com>, <gdb at sourceware dot org>
- Date: Fri, 7 Apr 2006 15:56:54 +0100
- Subject: RE: Internal Error in GDB (was: ld includes entire archive (.a) when compiling .elf file)
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....