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: MIPS: 64-bit DWARF


>>>>> "Maciej" == Maciej W Rozycki <macro@codesourcery.com> writes:

I trimmed the CCs.

Maciej> GDB as of 6.8 didn't cope at all with 64-bit DWARF records that
Maciej> were generated for n64 binaries before the switch (for the MIPS
Maciej> platform, that is -- I'd expect it to work for some others,
Maciej> especially ones that have always been 64-bit like the Alpha) --
Maciej> the usual symptom was a complete exhaustion of the stack space
Maciej> followed by a crash (tested natively only).

Could you try a newer gdb?  And, if it still fails, file a bug report?

gdb isn't fully ready for 64 bit DWARF (e.g., CU offsets are still just
unsigned ints), but it shouldn't crash.

Maciej>  TE_IRIX refers to the original 64-bit DWARF stuff invented by
Maciej> SGI that predates DWARF-3 and differs slightly from the latter.
Maciej> This may perhaps be the reason of the GDB crash -- it may have
Maciej> this SGI variant hardcoded for the MIPS target or suchlike.

gdb's dwarf reader doesn't use the target for this.  It just recognizes
the SGI approach unconditionally.  See dwarf2read.c:read_initial_length.

Tom


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