X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=libgc%2Fpthread_stop_world.c;h=1ed16132897ef4498bc890a2544c3912c58a7c92;hb=5d29a8bf34d597c84e6543233d5c5e86b7c1a22e;hp=39e8d5d8eff33bca7037472344e25f8020c55ac7;hpb=07ec1253c277856bdbb74213e2defc8ed23cf8e3;p=mono.git diff --git a/libgc/pthread_stop_world.c b/libgc/pthread_stop_world.c index 39e8d5d8eff..1ed16132897 100644 --- a/libgc/pthread_stop_world.c +++ b/libgc/pthread_stop_world.c @@ -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