Skip to content

Commit 15f8b58

Browse files
alexrpxtexx
authored andcommitted
std.debug: fix FP unwinding for LoongArch
(cherry picked from commit 3f5e782) Change-Id: I34e022264f24d47fb837da61ec0197f6e0138284 Signed-off-by: xtex <[email protected]>
1 parent 45f7c57 commit 15f8b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ pub const StackIterator = struct {
848848
}
849849

850850
// Offset of the saved BP wrt the frame pointer.
851-
const fp_offset = if (native_arch.isRISCV())
851+
const fp_offset = if (native_arch.isLoongArch() or native_arch.isRISCV())
852852
// On RISC-V the frame pointer points to the top of the saved register
853853
// area, on pretty much every other architecture it points to the stack
854854
// slot where the previous frame pointer is saved.

0 commit comments

Comments
 (0)