Files
zig/src
Andrew Kelley a31b449b55 make LLVM and Clang emit DWARF 4 instead of 5
This reverts 6d679eb2bc and additionally
changes the command line parameters passed to Clang to match.

Clang 14 defaults to DWARFv5 which is an interesting choice. v5 has been
out for 5 years and yet Valgrind does not support it, and apparently
neither does either GDB or LLD, I haven't determined which, but I wasn't
able to use GDB to debug my LLVM-emitted dwarf 5 zig code that was linked
with LLD.

A couple years ago when I was working on the self-hosted ELF linker, I
emitted DWARFv5 but then downgraded to v4 when I realized that third
party tools were stuck in the past. Years later, they still are.

Hopefully, Clang 14's bold move will inspire third party tools to get
their shit together, however, in the meantime, everything's broken, so
we're passing `-gdwarf-4` to clang and instructing LLVM to emit DWARFv4.

Note that Zig's std.debug code *does* support DWARFv5 already as of a
previous commit that I made today.
2022-08-23 21:24:03 -07:00
..
2022-08-18 18:02:19 +02:00
2022-08-23 21:11:02 -07:00
2022-04-27 16:45:23 -07:00
2022-08-19 03:41:13 -07:00
2022-08-19 03:41:13 -07:00
2022-08-19 03:41:13 -07:00
2022-08-19 16:45:15 -07:00
2022-08-19 16:45:15 -07:00
2022-08-19 03:41:13 -07:00
2022-08-19 16:45:15 -07:00
2022-01-07 00:06:06 -05:00
2022-07-30 12:36:11 -07:00