Author: martin
Date: 2007-08-22 12:25:40 -0400 (Wed, 22 Aug 2007)
New Revision: 84647
Modified:
trunk/mono/libgc/ChangeLog
trunk/mono/libgc/include/libgc-mono-debugger.h
trunk/mono/libgc/pthread_stop_world.c
Log:
2007-08-22 Martin Baulig <[EMAIL PROTECTED]>
* pthread_stop_world.c
(GC_mono_debugger_add_all_threads): Removed.
(GC_mono_debugger_get_stack_ptr): New public function.
Modified: trunk/mono/libgc/ChangeLog
===================================================================
--- trunk/mono/libgc/ChangeLog 2007-08-22 16:12:03 UTC (rev 84646)
+++ trunk/mono/libgc/ChangeLog 2007-08-22 16:25:40 UTC (rev 84647)
@@ -1,4 +1,9 @@
+2007-08-22 Martin Baulig <[EMAIL PROTECTED]>
+ * 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 <[EMAIL PROTECTED]>
* darwin_stop_world.c: use a larger array for GC_mach_threads
Modified: trunk/mono/libgc/include/libgc-mono-debugger.h
===================================================================
--- trunk/mono/libgc/include/libgc-mono-debugger.h 2007-08-22 16:12:03 UTC
(rev 84646)
+++ trunk/mono/libgc/include/libgc-mono-debugger.h 2007-08-22 16:25:40 UTC
(rev 84647)
@@ -16,8 +16,8 @@
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"
Modified: trunk/mono/libgc/pthread_stop_world.c
===================================================================
--- trunk/mono/libgc/pthread_stop_world.c 2007-08-22 16:12:03 UTC (rev
84646)
+++ trunk/mono/libgc/pthread_stop_world.c 2007-08-22 16:25:40 UTC (rev
84647)
@@ -561,19 +561,13 @@
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
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches