| author | |
| committer | |
| log | 62a8cfd5fed1380331b10d20fbb7b08f206cf541 |
| tree | f3dd6af5e91291d0a410888d20afdb56d6dd202e |
| parent | a36dab2f90020c5544fddf68520c2057edc2ec00 |
| signature |
We're overwriting the memory that unwind_context sits in, so we need to do the
getFp() call earlier.1 files changed, 2 insertions(+), 1 deletions(-)
lib/std/debug.zig+2-1| ... | ... | @@ -925,7 +925,8 @@ const StackIterator = union(enum) { |
| 925 | 925 | const di_gpa = getDebugInfoAllocator(); |
| 926 | 926 | const ret_addr = di.unwindFrame(di_gpa, unwind_context) catch |err| { |
| 927 | 927 | const pc = unwind_context.pc; |
| 928 | it.* = .{ .fp = unwind_context.getFp() }; | |
| 928 | const fp = unwind_context.getFp(); | |
| 929 | it.* = .{ .fp = fp }; | |
| 929 | 930 | return .{ .switch_to_fp = .{ |
| 930 | 931 | .address = pc, |
| 931 | 932 | .err = err, |