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:
authorjonas <jonas@localhost>2009-07-02 11:59:30 +0400
committerjonas <jonas@localhost>2009-07-02 11:59:30 +0400
commit26045ec0b2807fb7f4969299be12b33b0aaf93eb (patch)
treef50c03bdc945dfa6878a7e8633329bc5f93d7235 /libgc/darwin_stop_world.c
parent3513638089d00b5c8e05cadb05755edebc0870f9 (diff)
2009-07-02 jonas echterhoff <jonas@unity3d.com>
svn path=/trunk/mono/; revision=137261
Diffstat (limited to 'libgc/darwin_stop_world.c')
-rw-r--r--libgc/darwin_stop_world.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libgc/darwin_stop_world.c b/libgc/darwin_stop_world.c
index d3b94feb258..f9ba57c02b6 100644
--- a/libgc/darwin_stop_world.c
+++ b/libgc/darwin_stop_world.c
@@ -2,6 +2,12 @@
# if defined(GC_DARWIN_THREADS)
+#include "mono/utils/mono-compiler.h"
+
+#ifdef MONO_DEBUGGER_SUPPORTED
+#include "include/libgc-mono-debugger.h"
+#endif
+
/* From "Inside Mac OS X - Mach-O Runtime Architecture" published by Apple
Page 49:
"The space beneath the stack pointer, where a new stack frame would normally
@@ -682,4 +688,17 @@ void GC_darwin_register_mach_handler_thread(mach_port_t thread) {
GC_use_mach_handler_thread = 1;
}
+#ifdef MONO_DEBUGGER_SUPPORTED
+GCThreadFunctions *gc_thread_vtable = NULL;
+
+void *
+GC_mono_debugger_get_stack_ptr (void)
+{
+ GC_thread me;
+
+ me = GC_lookup_thread (pthread_self ());
+ return &me->stop_info.stack_ptr;
+}
+#endif
+
#endif