GDB - lets make D support awesome

Iain Buclaw ibuclaw at gdcproject.org
Tue Dec 3 00:13:42 PST 2013


On 3 December 2013 00:53, Martin Nowak <code at dawg.eu> wrote:
>> I believe dmd is only compatible with gdb 7.5.  Likewise gdc-4.7 is
>> compatible with 7.5, but not 7.6 (you should use gdc-4.8 or the
>> development branch if you want gdb to work properly).
>>
>> For dmd, someone needs to fix dmd to work with gdb-7.6.
>
>
> How is that? Did they drop support for DWARF2?
> Do we have a bug report for this?

Things are never dropped in GCC - only moved into a switch!  :o)

In GCC-4.8, DWARF4 became the default when generating DWARF debug
information. Before GCC-4.8 the default used was DWARF2.  Also GDB-7.5
has DWARF4 support, I think the problem is either because distributors
turn this support off, or it is not as complete as in GDB-7.6.

For clarification (incase anyone is interested) for all platforms
except Darwin, -g will default to the following being turned on:

-gdwarf-4 -fno-debug-types-section

For Darwin, the old behaviour of GCC-4.7 is still the case:

-gdwarf-2 -gstrict-dwarf

But at last check, you guys separated out debugging for each platform,
so you can keep the dwarf debugging as-is in the machobj generation.


I don't think there is a bug report, but we can make one that says
"DMD doesn't support DWARF4 (elfobj.c)"


More information about the Digitalmars-d mailing list