forked from Imagelibrary/binutils-gdb
* breakpoint.c (moribund_locations): New.
(bpstat_stop_status): Process moribund locations.
(update_global_location_list): Add removed
locations to moribund_locations.
(breakpoint_retire_moribund): New.
* breakpoint.h (struct bp_location): New field
events_till_retirement.
(breakpoint_retire_moribund): Declare.
* thread.c (thread_count): New.
* infrun.c (handle_inferior_event): Call
breakpoint_retire_moribund.
* gdbthread.h (thread_count): Declare.
This commit is contained in:
12
gdb/thread.c
12
gdb/thread.c
@@ -229,6 +229,18 @@ iterate_over_threads (int (*callback) (struct thread_info *, void *),
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
thread_count (void)
|
||||
{
|
||||
int result = 0;
|
||||
struct thread_info *tp;
|
||||
|
||||
for (tp = thread_list; tp; tp = tp->next)
|
||||
++result;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
int
|
||||
valid_thread_id (int num)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user