about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-14 11:05:21 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-14 11:05:21 +0200
commitf73bbfc0afa9155c27399b22cddb1139fe8e3a64 (patch)
tree88763268c76311a888d98b4bf240b8526d5894ce
parente7478f33908793f79ca197a10744d112f707410f (diff)
downloadbox64-f73bbfc0afa9155c27399b22cddb1139fe8e3a64.tar.gz
box64-f73bbfc0afa9155c27399b22cddb1139fe8e3a64.zip
Fixed regression introduced with 27d79eddec (for #54)
-rwxr-xr-xsrc/libtools/signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index 26c13dff..86eb75ef 100755
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -490,7 +490,7 @@ void my_sigactionhandler_oldcode(int32_t sig, siginfo_t* info, void * ucntx, int
     sigcontext->uc_mcontext.gregs[X64_RBP] = R_RBP;
     sigcontext->uc_mcontext.gregs[X64_RSP] = R_RSP;
     sigcontext->uc_mcontext.gregs[X64_RBX] = R_RBX;
-    sigcontext->uc_mcontext.gregs[X64_RIP] = emu->old_ip;//R_RIP;   // old_ip is more accurate as the "current" IP
+    sigcontext->uc_mcontext.gregs[X64_RIP] = R_RIP;//emu->old_ip;   // old_ip should be more accurate as the "current" IP, but it's not always up-to-date
     // flags
     sigcontext->uc_mcontext.gregs[X64_EFL] = emu->eflags.x64;
     // get segments