From a7d26d482273950d8435810b571603f1ae300082 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 19 Mar 2014 21:03:58 -0400 Subject: [jit] Add a 'check-pinvoke-callconv' MONO_DEBUG option to check for cdecl/stdcall mismatches. --- man/mono.1 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'man') diff --git a/man/mono.1 b/man/mono.1 index 74cbb7dbb8b..99be6c4f23b 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -1534,6 +1534,12 @@ after a SIGSEGV or SIGABRT in unmanaged code. This option will suspend the program when a native SIGSEGV is received. This is useful for debugging crashes which do not happen under gdb, since a live process contains more information than a core file. +.TP +\fBcheck-pinvoke-callconv\fR +This option causes the runtime to check for calling convention +mismatches when using pinvoke, i.e. mixing cdecl/stdcall. It only +works on windows. If a mismatch is detected, an +ExecutionEngineException is thrown. .ne .RE .TP -- cgit v1.2.3