diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-01-27 20:42:32 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-01-27 20:42:32 +0100 |
| commit | f9c09293bf5f8da518c995bef7d768f1f1f65e47 (patch) | |
| tree | e9556da7d0c8c44d42c54d6733244976b66280c7 /src/emu | |
| parent | cdffe2388ea2dbafd4c82e304fc228eaefe4ac94 (diff) | |
| download | box64-f9c09293bf5f8da518c995bef7d768f1f1f65e47.tar.gz box64-f9c09293bf5f8da518c995bef7d768f1f1f65e47.zip | |
Added BOX64_IGNOREINT3 env. var. to ignore INT3 in the code ([RCFILE] too)
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64int3.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index c287d18d..4a5792ff 100644 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -358,10 +358,12 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr) } return; } - if(1 && my_context->signals[SIGTRAP]) + if(!box64_ignoreint3 && my_context->signals[SIGTRAP]) emit_signal(emu, SIGTRAP, (void*)R_RIP, 128); - else - printf_log(LOG_INFO, "%04d|Warning, ignoring unsupported Int 3 call @%p\n", GetTID(), (void*)R_RIP); + else { + printf_log(LOG_DEBUG, "%04d|Warning, ignoring unsupported Int 3 call @%p\n", GetTID(), (void*)R_RIP); + R_RIP = *addr; + } //emu->quit = 1; } |