authorgravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-30 10:00:28+02:00
committergravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-30 10:00:28+02:00
loga5f18c2b2ae86126e0fd0cba67676ae68ba0f1df
tree35c49202c9d3f6af29fddbf046e29f3e9c67bfd0
parent94f29ae11736bd5abb0383610b42cb7ea19f1f0c

Fix one more edge case


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

lib/std/debug.zig+1
......@@ -131,6 +131,7 @@ pub fn dumpStackTraceFromBase(bp: usize, ip: usize) void {
131131 const tty_config = detectTTYConfig();
132132 printSourceAtAddress(debug_info, stderr, ip, tty_config) catch return;
133133 const first_return_address = @intToPtr(*const usize, bp + @sizeOf(usize)).*;
134 if (first_return_address == 0) return; // The whole call stack may be optimized out
134135 printSourceAtAddress(debug_info, stderr, first_return_address - 1, tty_config) catch return;
135136 var it = StackIterator{
136137 .first_addr = null,