From 1ae3db42ef4ea616920f258b91bcc514f612fc60 Mon Sep 17 00:00:00 2001 From: Vlad Brezae Date: Thu, 15 Aug 2019 14:57:26 +0300 Subject: [PATCH] [exceptions] Don't debug hang on ThreadAbortException (mono/mono#16240) It is pretty much useless. Commit migrated from https://github.com/mono/mono/commit/6fc089bf8b253df82a04822f7a34bf0c8c59ab52 --- src/mono/mono/mini/mini-exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/mini-exceptions.c b/src/mono/mono/mini/mini-exceptions.c index 4f55329..13499d2 100644 --- a/src/mono/mono/mini/mini-exceptions.c +++ b/src/mono/mono/mini/mini-exceptions.c @@ -2641,7 +2641,7 @@ mono_handle_exception_internal (MonoContext *ctx, MonoObject *obj, gboolean resu G_BREAKPOINT (); mini_get_dbg_callbacks ()->handle_exception ((MonoException *)obj, ctx, NULL, NULL); - if (mini_debug_options.suspend_on_unhandled) { + if (mini_debug_options.suspend_on_unhandled && mono_object_class (obj) != mono_defaults.threadabortexception_class) { mono_runtime_printf_err ("Unhandled exception, suspending..."); while (1) ; -- 2.7.4