aboutsummaryrefslogtreecommitdiff
path: root/std/debug
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-03 13:02:46 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-03 13:46:08 -0400
commite673d865fb2dfa6588505d572765ea8c5b4470ee (patch)
tree67eeb6401b166803cb7d23b6c5cbd5501b60ede5 /std/debug
parente9530ce97bbbda9724dce3d6755217fd7880955c (diff)
downloadzig-e673d865fb2dfa6588505d572765ea8c5b4470ee.tar.gz
zig-e673d865fb2dfa6588505d572765ea8c5b4470ee.zip
fix stack traces on macos when passing absolute path to root source file
The comment added by this commit is copied here: For macOS stack traces, we want to avoid having to parse the compilation unit debug info. As long as each debug info file has a path independent of the compilation unit directory (DW_AT_comp_dir), then we never have to look at the compilation unit debug info. If we provide an absolute path to LLVM here for the compilation unit debug info, LLVM will emit DWARF info that depends on DW_AT_comp_dir. To avoid this, we pass "." for the compilation unit directory. This forces each debug file to have a directory rather than be relative to DW_AT_comp_dir. According to DWARF 5, debug files will no longer reference DW_AT_comp_dir, for the purpose of being able to support the common practice of stripping all but the line number sections from an executable. closes #2700
Diffstat (limited to 'std/debug')
0 files changed, 0 insertions, 0 deletions