* 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:
Vladimir Prus
2008-06-28 09:42:15 +00:00
parent 2a9bd7a88c
commit 20874c92f8
6 changed files with 131 additions and 19 deletions

View File

@@ -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)
{