aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorJae B <doogie1012@gmail.com>2024-02-24 11:24:34 +1100
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 23:33:28 -0800
commit88b3c144265b0e22250f21809bbf9329ecfcfd6f (patch)
tree742361a5cc9f97f3e15706100c8a4a542e8778f9 /lib/std/debug.zig
parent7f11c194505497998924c163d0a130031a779457 (diff)
downloadzig-88b3c144265b0e22250f21809bbf9329ecfcfd6f.tar.gz
zig-88b3c144265b0e22250f21809bbf9329ecfcfd6f.zip
fix compilation issues
ie. C:\zig\current\lib\std\debug.zig:726:23: error: no field or member function named 'getDwarfInfoForAddress' in 'dwarf.DwarfInfo' if (try module.getDwarfInfoForAddress(unwind_state.debug_info.allocator, unwind_state.dwarf_context.pc)) |di| { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ C:\zig\current\lib\std\dwarf.zig:663:23: note: struct declared here pub const DwarfInfo = struct { ^~~~~~ referenced by: next_internal: C:\zig\current\lib\std\debug.zig:737:29 next: C:\zig\current\lib\std\debug.zig:654:31 remaining reference traces hidden; use '-freference-trace' to see all reference traces C:\zig\current\lib\std\debug.zig:970:31: error: no field or member function named 'getSymbolAtAddress' in 'dwarf.DwarfInfo' const symbol_info = module.getSymbolAtAddress(debug_info.allocator, address) catch |err| switch (err) { ~~~~~~^~~~~~~~~~~~~~~~~~~ C:\zig\current\lib\std\dwarf.zig:663:23: note: struct declared here pub const DwarfInfo = struct {
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 3b9e46be92..6801e23665 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -2444,7 +2444,7 @@ pub const ModuleDebugInfo = switch (native_os) {
return &self.dwarf;
}
},
- .wasi => struct {
+ .wasi, .emscripten => struct {
pub fn deinit(self: *@This(), allocator: mem.Allocator) void {
_ = self;
_ = allocator;