authorgravatar for doogie1012@gmail.comJae B <doogie1012@gmail.com> 2024-02-24 11:24:34+11:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 23:33:28-08:00
log88b3c144265b0e22250f21809bbf9329ecfcfd6f
tree742361a5cc9f97f3e15706100c8a4a542e8778f9
parent7f11c194505497998924c163d0a130031a779457

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 {

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug.zig+1-1
...@@ -2444,7 +2444,7 @@ pub const ModuleDebugInfo = switch (native_os) {...@@ -2444,7 +2444,7 @@ pub const ModuleDebugInfo = switch (native_os) {
2444 return &self.dwarf;2444 return &self.dwarf;
2445 }2445 }
2446 },2446 },
2447 .wasi => struct {2447 .wasi, .emscripten => struct {
2448 pub fn deinit(self: *@This(), allocator: mem.Allocator) void {2448 pub fn deinit(self: *@This(), allocator: mem.Allocator) void {
2449 _ = self;2449 _ = self;
2450 _ = allocator;2450 _ = allocator;