[exceptions] introduce suspend-on-native-crash that suspends on every native crash
[mono.git] / mono / mini / mini-exceptions.c
index c390ee9ea6cae9ccd31f5ebf2f3a2e1e5075838b..1813122d609def11d098566043de73514a44e3ae 100644 (file)
@@ -2482,7 +2482,7 @@ mono_handle_native_crash (const char *signal, void *ctx, MONO_SIG_HANDLER_INFO_T
        if (handling_sigsegv && is_sigsegv)
                return;
 
-       if (mini_get_debug_options ()->suspend_on_sigsegv && is_sigsegv) {
+       if (mini_get_debug_options ()->suspend_on_native_crash) {
                mono_runtime_printf_err ("Received %s, suspending...", signal);
 #ifdef HOST_WIN32
                while (1)