GDB and Java

Tom Tromey tromey@redhat.com
Fri Jul 18 18:38:00 GMT 2003


Tom> I'll send more info after I debug gdb a bit.

It is definitely an anonymous objfile causing the crash.

I added this just before the use of SECT_OFF_TEXT in
dwarf2_frame_find_fde:

      if (objfile->sect_index_text == -1)
	continue;

With this gdb stops crashing.  It still isn't all that usable --
sometimes "next" will act like "cont".  I'm sure this change is pretty
bogus...

I can debug ok if I just remember to set a breakpoint whenever I
would usually type "n".  Pretty painful though.

Tom



More information about the Gdb mailing list