File tree 3 files changed +12
-13
lines changed
3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change
1
+ 2007-08-22 Martin Baulig <martin@ximian.com>
2
+
3
+ * pthread_stop_world.c
4
+ (GC_mono_debugger_add_all_threads): Removed.
5
+ (GC_mono_debugger_get_stack_ptr): New public function.
1
6
2
7
Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
3
8
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ typedef struct
16
16
17
17
extern GCThreadFunctions * gc_thread_vtable ;
18
18
19
- extern void
20
- GC_mono_debugger_add_all_threads (void );
19
+ extern void *
20
+ GC_mono_debugger_get_stack_ptr (void );
21
21
22
22
#else
23
23
#error "This header is only intended to be used by the Mono Debugger"
Original file line number Diff line number Diff line change @@ -561,19 +561,13 @@ void GC_stop_init()
561
561
562
562
GCThreadFunctions * gc_thread_vtable = NULL ;
563
563
564
- void
565
- GC_mono_debugger_add_all_threads (void )
564
+ void *
565
+ GC_mono_debugger_get_stack_ptr (void )
566
566
{
567
- GC_thread p ;
568
- int i ;
567
+ GC_thread me ;
569
568
570
- if (gc_thread_vtable && gc_thread_vtable -> thread_created ) {
571
- for (i = 0 ; i < THREAD_TABLE_SZ ; i ++ ) {
572
- for (p = GC_threads [i ]; p != 0 ; p = p -> next ) {
573
- gc_thread_vtable -> thread_created (p -> id , & p -> stop_info .stack_ptr );
574
- }
575
- }
576
- }
569
+ me = GC_lookup_thread (pthread_self ());
570
+ return & me -> stop_info .stack_ptr ;
577
571
}
578
572
579
573
#endif
You can’t perform that action at this time.
0 commit comments