[Issue 11660] use newer DWARF version?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 1 07:44:12 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=11660

Mathias LANG <pro.mathias.lang at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |pro.mathias.lang at gmail.com

--- Comment #5 from Mathias LANG <pro.mathias.lang at gmail.com> ---
It's 2020, DWARF3 was released 2005-12-05, DWARF4 was released 2010-06-10, and
DWARF5 was released 2017-02-13.

DMD still emits DWARF3
(https://github.com/dlang/dmd/blob/0d7e5ba824b6977862c9e9587e70aab0a52b6d82/src/dmd/backend/dwarf.d#L19),
and the druntime stack unwinder is able to consume up to DWARF4
(https://github.com/dlang/druntime/blob/fa3eeed29b5d892da921c585e6526635475059a4/src/rt/backtrace/dwarf.d#L525-L527)
although I don't think it would handle DWARF1/2 correctly from a quick look.

LDC / GDC should be able to emit newer DWARF infos thanks to support being
implemented in their backend, but it would be nice if someone could freshen up
the DMD debug infos.

Since it's an "easy" (as in, no need for design, only understanding how DWARF
works) issue, adding the "bootcamp" label.

--


More information about the Digitalmars-d-bugs mailing list