Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2019-10-23 00:24:07 +0300
committertherzok <marius.ungureanu@xamarin.com>2019-10-23 00:24:07 +0300
commitdc4ad691d58fa720e3a65ba04b478c1a6447cad3 (patch)
tree2add4933f8a14f01480efcbb1848ce152a393f68 /main/build
parente0ac3c6b3b1bb70703d280b75b475913f6dce778 (diff)
Add example of how to crash from a pinvoke
Diffstat (limited to 'main/build')
-rw-r--r--main/build/MacOSX/monostub.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/build/MacOSX/monostub.mm b/main/build/MacOSX/monostub.mm
index f42dd641aa..c99e2cbb8c 100644
--- a/main/build/MacOSX/monostub.mm
+++ b/main/build/MacOSX/monostub.mm
@@ -227,6 +227,12 @@ load_xammac()
}
}
+extern "C" void crash_me()
+{
+ void *p = (void*)0x12345;
+ *(int *)p = 0;
+}
+
int
main (int argc, char **argv)
{