The behaviour expected of filter exceptions is: -> throw in a async task with a try...
commitb61db514ab601886be944f1784dc730a418b4d3b
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 3 Jan 2020 13:21:35 +0000 (3 14:21 +0100)
committerThays Grazia <thaystg@gmail.com>
Fri, 3 Jan 2020 13:21:35 +0000 (3 10:21 -0300)
tree04173bbf38670efe0bd47658f6bc27513a0c1d38
parent68a4b43536845d6c4d8b650ed2d703446b14f637
The behaviour expected of filter exceptions is: -> throw in a async task with a try catch in the caller -> don't stop -> throw in a new thread with a try catch in the caller -> stop -> throw in the main thread without any try catch -> stop (#18333)

Including a new test to test the fix of #17601.

Fixing #16588, create a while 1 to stops the program execution when an exception is thrown and no try catch is found and MONO_DEBUG=suspend-on-unhandled.

Fixes #17601
Fixes #16588

Co-authored-by: Thays Grazia <thaystg@gmail.com>
mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs
mcs/class/Mono.Debugger.Soft/Test/dtest.cs
mono/mini/debugger-agent.c
mono/mini/mini-exceptions.c