about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-12-15 13:18:59 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-12-15 13:18:59 +0100
commit7c0180c3b9cf1e71e7b778166d81b3d4aa6c1f6d (patch)
tree15491b60dae92a53c51f8a2220cfee2b85a7b554 /src/main.c
parent211fee2e4e4ce1f7132660469df613df5a74ac88 (diff)
downloadbox64-7c0180c3b9cf1e71e7b778166d81b3d4aa6c1f6d.tar.gz
box64-7c0180c3b9cf1e71e7b778166d81b3d4aa6c1f6d.zip
Added lldb option to JITGDB
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 26185aeb..db33d9a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -947,11 +947,11 @@ void LoadLogEnv()
     p = getenv("BOX64_JITGDB");
     if(p) {
         if(strlen(p)==1) {
-            if(p[0]>='0' && p[0]<='0'+2)
+            if(p[0]>='0' && p[0]<='0'+3)
                 jit_gdb = p[0]-'0';
         }
         if(jit_gdb)
-            printf_log(LOG_INFO, "Launch %s on segfault\n", (jit_gdb==2)?"gdbserver":"gdb");
+            printf_log(LOG_INFO, "Launch %s on segfault\n", (jit_gdb==2)?"gdbserver":((jit_gdb==3)?"lldb":"gdb"));
     }
     p = getenv("BOX64_SHOWSEGV");
         if(p) {