* dirent.c: Fix `struct dirent' overflow on Solaris. See #82678.
[mono.git] / libgc / pthread_stop_world.c
index 39e8d5d8eff33bca7037472344e25f8020c55ac7..1ed16132897ef4498bc890a2544c3912c58a7c92 100644 (file)
@@ -561,19 +561,13 @@ void GC_stop_init()
 
 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