diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-23 11:13:28 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-23 11:13:37 +0200 |
| commit | 49cc5eabcbcebdd6a67bfa32a82caf1723997d78 (patch) | |
| tree | 18789911b978ca0fa85a336f75cff117903c8a3f /src/emu/x86int3.c | |
| parent | bf429a1dcfdaa960857f03a6f85e0dbf83e8b1e4 (diff) | |
| download | box64-49cc5eabcbcebdd6a67bfa32a82caf1723997d78.tar.gz box64-49cc5eabcbcebdd6a67bfa32a82caf1723997d78.zip | |
Some handling of case where signal numbers differs between native and x64 archs (not complete, missing sigset conversions)
Diffstat (limited to 'src/emu/x86int3.c')
| -rwxr-xr-x | src/emu/x86int3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c index 72d218bb..15f5edc0 100755 --- a/src/emu/x86int3.c +++ b/src/emu/x86int3.c @@ -9,9 +9,9 @@ #include <sys/syscall.h> #include <sys/types.h> #include <pthread.h> -#include <signal.h> #include <inttypes.h> +#include "x64_signals.h" #include "os.h" #include "debug.h" #include "box64stack.h" @@ -484,9 +484,9 @@ void x86Int3(x64emu_t* emu, uintptr_t* addr) } return; } - if(!BOX64ENV(ignoreint3) && my_context->signals[SIGTRAP]) { + if(!BOX64ENV(ignoreint3) && my_context->signals[X64_SIGTRAP]) { R_RIP = *addr; // update RIP - EmitSignal(emu, SIGTRAP, NULL, 3); + EmitSignal(emu, X64_SIGTRAP, NULL, 3); } else { printf_log(LOG_DEBUG, "%04d|Warning, ignoring unsupported Int 3 call @%p\n", GetTID(), (void*)R_RIP); R_RIP = *addr; |