[marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384)
authorLudovic Henry <ludovic@xamarin.com>
Thu, 17 Aug 2017 17:11:23 +0000 (19:11 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2017 17:11:23 +0000 (19:11 +0200)
commitab90246c67d5d12ec9fabae5e490a05db2c0be6b
tree06968f8f1ee4a7c39daf2ed12e1caeb0a0a2ad56
parent91288cad6a6c093ee1ca9b072219144c8bac9f75
[marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384)

* [marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=58782

* [interp] disable tests for 58782 as they rely on appdomains
mono/metadata/marshal.c
mono/metadata/object-internals.h
mono/metadata/object.c
mono/metadata/object.h
mono/mini/mini-exceptions.c
mono/mini/mini.h
mono/tests/Makefile.am
mono/tests/bug-58782-capture-and-throw.cs [new file with mode: 0644]
mono/tests/bug-58782-plain-throw.cs [new file with mode: 0644]
mono/tests/libtest.c