Skip to content

Commit 447afa5

Browse files
author
Jo Shields
committed
Enable debug features in release build
1 parent 4aa81c9 commit 447afa5

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/monodroid/jni/monodroid-glue-internal.hh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,13 @@ namespace xamarin::android::internal
177177
static void thread_start (MonoProfiler *prof, uintptr_t tid);
178178
static void thread_end (MonoProfiler *prof, uintptr_t tid);
179179

180-
#if defined (DEBUG)
181180
void set_debug_env_vars (void);
182181

183182
#if !defined (WINDOWS)
184183
int parse_runtime_args (char *runtime_args, RuntimeOptions *options);
185184
int monodroid_debug_connect (int sock, struct sockaddr_in addr);
186185
int monodroid_debug_accept (int sock, struct sockaddr_in addr);
187186
#endif // !WINDOWS
188-
#endif // DEBUG
189187

190188
#if !defined (RELEASE)
191189
static MonoAssembly* open_from_update_dir (MonoAssemblyName *aname, char **assemblies_path, void *user_data);

src/monodroid/jni/monodroid-glue.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,6 @@ MonodroidRuntime::propagate_uncaught_exception (MonoDomain *domain, JNIEnv *env,
10191019
utils.monodroid_runtime_invoke (domain, method, nullptr, args, nullptr);
10201020
}
10211021

1022-
#if DEBUG
10231022
static void
10241023
setup_gc_logging (void)
10251024
{
@@ -1028,7 +1027,6 @@ setup_gc_logging (void)
10281027
log_categories |= LOG_GC;
10291028
}
10301029
}
1031-
#endif
10321030

10331031
inline int
10341032
MonodroidRuntime::convert_dl_flags (int flags)
@@ -1142,7 +1140,6 @@ MonodroidRuntime::create_xdg_directories_and_environment (JNIEnv *env, jstring_w
11421140
create_xdg_directory (homeDir, ".config", "XDG_CONFIG_HOME");
11431141
}
11441142

1145-
#if DEBUG
11461143
void
11471144
MonodroidRuntime::set_debug_env_vars (void)
11481145
{
@@ -1169,7 +1166,6 @@ MonodroidRuntime::set_debug_env_vars (void)
11691166
}
11701167
utils.monodroid_strfreev (args);
11711168
}
1172-
#endif /* DEBUG */
11731169

11741170
inline void
11751171
MonodroidRuntime::set_trace_options (void)
@@ -1422,10 +1418,8 @@ MonodroidRuntime::Java_mono_android_Runtime_initInternal (JNIEnv *env, jclass kl
14221418
init_reference_logging (androidSystem.get_primary_override_dir ());
14231419
androidSystem.create_update_dir (androidSystem.get_primary_override_dir ());
14241420

1425-
#if DEBUG
14261421
setup_gc_logging ();
14271422
set_debug_env_vars ();
1428-
#endif
14291423

14301424
#ifndef RELEASE
14311425
jstr = env->GetObjectArrayElement (externalStorageDirs, 0);

0 commit comments

Comments
 (0)