about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-05-09 16:21:41 +0800
committerGitHub <noreply@github.com>2025-05-09 10:21:41 +0200
commit22fdc90fe28171e3e7566684f60305a4f2d04dcf (patch)
tree8e0c1ded237fa62b6cf9dd56455a9338d5db5fd0 /src/libtools
parent78193c5f1acb4fd0311bbf96ed0f692016d6e350 (diff)
downloadbox64-22fdc90fe28171e3e7566684f60305a4f2d04dcf.tar.gz
box64-22fdc90fe28171e3e7566684f60305a4f2d04dcf.zip
[GDBJIT] Added a new option to register debuginfo only after trapped into signalhandler (#2614)
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/signals.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index 36e57104..de77a29c 100644
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -40,6 +40,7 @@
 #include "../dynarec/dynablock_private.h"
 #include "dynarec_native.h"
 #include "dynarec/dynarec_arch.h"
+#include "gdbjit.h"
 #endif
 
 
@@ -2064,6 +2065,9 @@ dynarec_log(/*LOG_DEBUG*/LOG_INFO, "%04d|Repeated SIGSEGV with Access error on %
             static const char* seg_name[] = {"ES", "CS", "SS", "DS", "FS", "GS"};
             int shown_regs = 0;
 #ifdef DYNAREC
+            #ifdef GDBJIT
+            if(db && BOX64ENV(dynarec_gdbjit) == 3) GdbJITBlockReady(db->gdbjit_block);
+            #endif
             uint32_t hash = 0;
             if(db)
                 hash = X31_hash_code(db->x64_addr, db->x64_size);