From 802b983480609a1e3c6bd01cf505fc1b856fae58 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 28 Jun 2008 09:42:15 +0000 Subject: * 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. --- gdb/infrun.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 73b92be5ae2..2c4ebc8fc44 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1705,6 +1705,8 @@ handle_inferior_event (struct execution_control_state *ecs) int stopped_by_watchpoint; int stepped_after_stopped_by_watchpoint = 0; + breakpoint_retire_moribund (); + /* Cache the last pid/waitstatus. */ target_last_wait_ptid = ecs->ptid; target_last_waitstatus = *ecs->wp; -- cgit v1.2.1