This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]