Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-05-19 11:37:19 +0400
committerMartin Baulig <martin@novell.com>2006-05-19 11:37:19 +0400
commit6820792214c23a651f5e5ff1dd57b43b4a2bb940 (patch)
tree15a4080bece828c60125cddc4d942e0063c0f061 /libgc/pthread_support.c
parenta31fef4f09f09434d96f0a133b58b395d618e784 (diff)
2006-05-19 Martin Baulig <martin@ximian.com>
* include/gc.h: Don't include "libgc-mono-debugger.h". * pthread_support.c, pthread_stop_world.c: Include it here. svn path=/trunk/mono/; revision=60857
Diffstat (limited to 'libgc/pthread_support.c')
-rw-r--r--libgc/pthread_support.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libgc/pthread_support.c b/libgc/pthread_support.c
index 92878c87c2a..ecb07ffd4e2 100644
--- a/libgc/pthread_support.c
+++ b/libgc/pthread_support.c
@@ -191,6 +191,10 @@ static __thread MONO_TLS_FAST void* GC_thread_tls;
static GC_bool keys_initialized;
+#ifdef MONO_DEBUGGER_SUPPORTED
+#include "include/libgc-mono-debugger.h"
+#endif
+
/* Recover the contents of the freelist array fl into the global one gfl.*/
/* Note that the indexing scheme differs, in that gfl has finer size */
/* resolution, even if not all entries are used. */
@@ -691,7 +695,7 @@ void GC_delete_thread(pthread_t id)
} else {
prev -> next = p -> next;
}
-#ifdef LIBGC_MONO_DEBUGGER_SUPPORTED
+#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_exited)
gc_thread_vtable->thread_exited (id, &p->stop_info.stack_ptr);
#endif
@@ -972,7 +976,7 @@ void GC_thr_init()
t -> stop_info.stack_ptr = (ptr_t)(&dummy);
# endif
t -> flags = DETACHED | MAIN_THREAD;
-#ifdef LIBGC_MONO_DEBUGGER_SUPPORTED
+#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
#endif
@@ -1281,7 +1285,7 @@ void * GC_start_routine_head(void * arg, void *base_addr,
/* This is also < 100% convincing. We should also read this */
/* from /proc, but the hook to do so isn't there yet. */
# endif /* IA64 */
-#ifdef LIBGC_MONO_DEBUGGER_SUPPORTED
+#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr);
#endif