From c262cb4d829dc06a7cbfbe3226ba4759f9ec2bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= Date: Fri, 26 Aug 2016 17:51:27 -0400 Subject: [PATCH] [libmonodroid] Allow debug options to be set when used on desktop. There is no reason debug options shouldn't be settable on desktop as it allows line numbers to be shown to the user when a custom controls triggers an exception. --- src/monodroid/jni/monodroid-glue.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/monodroid/jni/monodroid-glue.c b/src/monodroid/jni/monodroid-glue.c index df6601141a9..73ca6c7b808 100644 --- a/src/monodroid/jni/monodroid-glue.c +++ b/src/monodroid/jni/monodroid-glue.c @@ -2123,6 +2123,16 @@ load_assembly (MonoDomain *domain, JNIEnv *env, jstring assembly) mono.mono_assembly_name_free (aname); } +static void +set_debug_options (void) +{ + if (monodroid_get_namespaced_system_property (DEBUG_MONO_DEBUG_PROPERTY, NULL) == 0) + return; + + register_debug_symbols = 1; + mono.mono_debug_init (MONO_DEBUG_FORMAT_MONO); +} + #ifdef ANDROID static const char *soft_breakpoint_kernel_list[] = { "2.6.32.21-g1e30168", NULL @@ -2162,16 +2172,6 @@ enable_soft_breakpoints (void) return 1; } -static void -set_debug_options (void) -{ - if (monodroid_get_namespaced_system_property (DEBUG_MONO_DEBUG_PROPERTY, NULL) == 0) - return; - - register_debug_symbols = 1; - mono.mono_debug_init (MONO_DEBUG_FORMAT_MONO); -} - void set_world_accessable (const char *path) { @@ -2397,11 +2397,6 @@ enable_soft_breakpoints (void) return 0; } -static void -set_debug_options (void) -{ -} - void set_world_accessable (const char *path) {