Thread overview
[Issue 11660] use newer DWARF version?
Dec 30, 2014
Martin Nowak
May 01, 2020
Mathias LANG
Dec 17, 2022
Iain Buclaw
December 30, 2014
https://issues.dlang.org/show_bug.cgi?id=11660

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
Looks like DW_TAG_array_type and DW_AT_data_location are already present in DWARF3.

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=11660

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
May 01, 2020
https://issues.dlang.org/show_bug.cgi?id=11660

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

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

--- Comment #5 from Mathias LANG <pro.mathias.lang@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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11660

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--