authorgravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-29 21:09:00+02:00
committergravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-29 21:09:00+02:00
logb7cd60a354731d61ee3a3184fd4be610382ca1d6
tree31064a32d106da498293fef9427ff8d4e2e48c38
parent3500b41bfed159b54b951b7cee5ff404ae5fbbda

Changing stuff and seeing what happens


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

lib/std/debug.zig+2-1
......@@ -129,7 +129,7 @@ pub fn dumpStackTraceFromBase(bp: usize, ip: usize) void {
129129 return;
130130 };
131131 const tty_config = detectTTYConfig();
132 printSourceAtAddress(debug_info, stderr, ip, tty_config) catch return;
132 printSourceAtAddress(debug_info, stderr, if (builtin.os == .windows) (ip + 1) else ip, tty_config) catch return;
133133 const first_return_address = @intToPtr(*const usize, bp + @sizeOf(usize)).*;
134134 printSourceAtAddress(debug_info, stderr, first_return_address - 1, tty_config) catch return;
135135 var it = StackIterator{
......@@ -325,6 +325,7 @@ pub const StackIterator = struct {
325325 }
326326
327327 const return_address = @intToPtr(*const usize, self.fp - fp_adjust_factor + @sizeOf(usize)).*;
328 if (return_address == 0) return null;
328329 return return_address;
329330 }
330331};