* pthread_stop_world.c
(GC_mono_debugger_add_all_threads): Removed.
(GC_mono_debugger_get_stack_ptr): New public function.
svn path=/trunk/mono/; revision=84647
+2007-08-22 Martin Baulig <martin@ximian.com>
+
+ * pthread_stop_world.c
+ (GC_mono_debugger_add_all_threads): Removed.
+ (GC_mono_debugger_get_stack_ptr): New public function.
Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
extern GCThreadFunctions *gc_thread_vtable;
-extern void
-GC_mono_debugger_add_all_threads (void);
+extern void *
+GC_mono_debugger_get_stack_ptr (void);
#else
#error "This header is only intended to be used by the Mono Debugger"
GCThreadFunctions *gc_thread_vtable = NULL;
-void
-GC_mono_debugger_add_all_threads (void)
+void *
+GC_mono_debugger_get_stack_ptr (void)
{
- GC_thread p;
- int i;
+ GC_thread me;
- if (gc_thread_vtable && gc_thread_vtable->thread_created) {
- for (i = 0; i < THREAD_TABLE_SZ; i++) {
- for (p = GC_threads[i]; p != 0; p = p -> next) {
- gc_thread_vtable->thread_created (p->id, &p->stop_info.stack_ptr);
- }
- }
- }
+ me = GC_lookup_thread (pthread_self ());
+ return &me->stop_info.stack_ptr;
}
#endif