Browse Source

Use frame register $r22 (aliased as $fp) inside SignalToRunerror for loongarch64 CPU to fix backtrace dumps

Pierre Muller 1 năm trước cách đây
mục cha
commit
bc641cc76b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/linux/loongarch64/sighnd.inc

+ 1 - 1
rtl/linux/loongarch64/sighnd.inc

@@ -93,5 +93,5 @@ begin
   if res<>0 then
     HandleErrorAddrFrame(res,
       pointer(uContext^.uc_mcontext.pc),
-      pointer(uContext^.uc_mcontext.regs[3]));
+      pointer(uContext^.uc_mcontext.regs[22]));
 end;