Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/monodroid/jni/monodroid-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
#include "xamarin_getifaddrs.h"
#endif

#define MONO_API_EXPORT __attribute__ ((visibility ("default")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to add MONO_API_EXPORT? Using MONO_API should work, as is done for 18 other functions in this file.


static pthread_mutex_t process_cmd_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t process_cmd_cond = PTHREAD_COND_INITIALIZER;
static int debugging_configured;
Expand All @@ -88,9 +90,16 @@ static int attach_gdb;
* clearing monodroid_gdb_wait.
*/
static int wait_for_gdb;
static int monodroid_gdb_wait = TRUE;
static volatile int monodroid_gdb_wait = TRUE;
static int android_api_level = 0;

/* Can be called by a native debugger to break the wait on startup */
MONO_API_EXPORT void
monodroid_clear_gdb_wait (void)
{
monodroid_gdb_wait = FALSE;
}

#ifdef ANDROID64
#define SYSTEM_LIB_PATH "/system/lib64"
#elif ANDROID
Expand Down