aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
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/gdbthread.h
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/gdbthread.h')
-rw-r--r--gdb/gdbthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 4440417..9ce2753 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -118,6 +118,8 @@ extern struct thread_info *find_thread_pid (ptid_t ptid);
typedef int (*thread_callback_func) (struct thread_info *, void *);
extern struct thread_info *iterate_over_threads (thread_callback_func, void *);
+extern int thread_count (void);
+
/* infrun context switch: save the debugger state for the given thread. */
extern void save_infrun_state (ptid_t ptid,
CORE_ADDR prev_pc,