aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-23 21:09:12 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-23 21:11:02 -0700
commit60722261fa465ecff559c9903e0855d538826ed4 (patch)
tree682e4e4fac54183af02fb8286da2cb13c5d6f91a /src
parent0f01e812ff054ea83661272bf0a96af228f2ffe3 (diff)
downloadzig-60722261fa465ecff559c9903e0855d538826ed4.tar.gz
zig-60722261fa465ecff559c9903e0855d538826ed4.zip
std.debug: DWARFv5 fixes
handle str_offsets_base and addr_base correctly. handle data16 fix compilation on 32-bit hosts remove stray debug print statement closes #12120
Diffstat (limited to 'src')
-rw-r--r--src/link/MachO.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
index 91eaedc734..764e4e71b2 100644
--- a/src/link/MachO.zig
+++ b/src/link/MachO.zig
@@ -5862,8 +5862,8 @@ pub fn generateSymbolStabs(
else => |e| return e,
};
- const tu_name = try compile_unit.die.getAttrString(&debug_info, dwarf.AT.name, debug_info.debug_str);
- const tu_comp_dir = try compile_unit.die.getAttrString(&debug_info, dwarf.AT.comp_dir, debug_info.debug_str);
+ const tu_name = try compile_unit.die.getAttrString(&debug_info, dwarf.AT.name, debug_info.debug_str, compile_unit.*);
+ const tu_comp_dir = try compile_unit.die.getAttrString(&debug_info, dwarf.AT.comp_dir, debug_info.debug_str, compile_unit.*);
// Open scope
try locals.ensureUnusedCapacity(3);