mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 08:45:52 +00:00
Fix stack-trace address calculation on Windows
Let's always subtract 1 from the return address so that we're sure to be inside the callee. Fixes some edge case where the stack trace skipped the first entry.
This commit is contained in:
parent
f8e015c85f
commit
7336b750bd
@ -360,7 +360,7 @@ pub fn writeCurrentStackTraceWindows(
|
||||
return;
|
||||
} else 0;
|
||||
for (addrs[start_i..]) |addr| {
|
||||
try printSourceAtAddress(debug_info, out_stream, addr, tty_config);
|
||||
try printSourceAtAddress(debug_info, out_stream, addr - 1, tty_config);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user