Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libmonodroid] Add an exported monodroid_clear_gdb_wait () function w… #354

Closed
wants to merge 1 commit into from
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
Member

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