aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-06-28 09:42:15 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-06-28 09:42:15 +0000
commit20874c92f88d70f91bbc166ccb8d2f78f09d90a4 (patch)
tree4e7e123ebc40feaf8a12d48b36a7b4a6dfd19e9d /gdb/infrun.c
parent2a9bd7a88c03fc8e9fea49f9e4c09df819b4ec23 (diff)
downloadgdb-20874c92f88d70f91bbc166ccb8d2f78f09d90a4.zip
gdb-20874c92f88d70f91bbc166ccb8d2f78f09d90a4.tar.gz
gdb-20874c92f88d70f91bbc166ccb8d2f78f09d90a4.tar.bz2
* 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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 73b92be..2c4ebc8 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;