DWARF4 adds some improvements to allow richer debug information and better compression.
If it's properly supported by most debuggers we should consider to upgrade.
Comment #1 by ibuclaw — 2014-02-14T02:43:45Z
I'd ensure that you have complete DWARFv3 support first before jumping over to DWARFv4.
Comment #2 by code — 2014-02-14T03:09:58Z
Why? What tools can use Dwarf 3? The more interesting stuff that allows D's arrays is only available with version 4.
Comment #3 by ibuclaw — 2014-02-14T03:52:23Z
As in, make sure that you at least implement types that can be represented as of DWARFv3, but for whatever reason DMD doesn't do it (eg: enums)
I'm not sure how you would represent D arrays differently from a DW_TAG_structure_type.
Comment #4 by code — 2014-12-30T15:46:03Z
Looks like DW_TAG_array_type and DW_AT_data_location are already present in DWARF3.
Comment #5 by pro.mathias.lang — 2020-05-01T07:44:12Z