Fix when() clause cutting stack traces when filtering doesn't succeed (fix for 46661...
authormathieubourgeois <mathieu.bourgeois@gameloft.com>
Tue, 14 Feb 2017 02:53:05 +0000 (21:53 -0500)
committerZoltan Varga <vargaz@gmail.com>
Tue, 14 Feb 2017 02:53:05 +0000 (21:53 -0500)
commit516e1cf79367c22caea1ae897511ab763a616a09
tree839e4dac70a5bb68f14bce2e603a6376478bf1b9
parent4e54ac3d4beb51533f7f66917b77fabfa61f9fe8
Fix when() clause cutting stack traces when filtering doesn't succeed (fix for 46661) (#4328)

* * [exceptions] When encountering a filter (when) clause, don't setup the stack trace before we know if the filter is going to work. Otherwise, any exception that isn't blocked by the when clause will have its stack trace cut at the point of the parent of the function containing the when clause
* Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=46661

* + Added test case for bug 46661
mono/mini/mini-exceptions.c
mono/tests/Makefile.am
mono/tests/bug-46661.cs [new file with mode: 0644]