diff --git a/src/codegen.cpp b/src/codegen.cpp index 85d791052484c..441047d9db7a5 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -10427,6 +10427,8 @@ extern "C" void jl_init_llvm(void) // Register GDB event listener #if defined(JL_DEBUG_BUILD) jl_using_gdb_jitevents = true; +#else + jl_using_gdb_jitevents = jl_running_under_rr(0); #endif const char *jit_gdb = getenv("ENABLE_GDBLISTENER"); if (jit_gdb) {