summaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-07-09 10:58:41 +0000
committerPedro Alves <pedro@codesourcery.com>2008-07-09 10:58:41 +0000
commit003697dbb3a36e6e6247fc5464b242a5df5294a2 (patch)
treedc25d1abe15a874582fddfdd24c56dbb061ed1b0 /gdb/gdbthread.h
parentb9e26686976e921fd99a5a7ba06c7dfcf9d7893d (diff)
downloadgdb-003697dbb3a36e6e6247fc5464b242a5df5294a2.tar.gz
* monitor (monitor_ptid): New global.
(monitor_open): Silently add the main task to GDB's thread list. (monitor_close, monitor_mourn_inferior): Silently delete the main task from GDB's thread list. (monitor_thread_alive, monitor_pid_to_str): New. (init_base_monitor_ops): Register monitor_thread_alive and monitor_pid_to_str. (_initialize_remote_monitors): Initialize monitor_ptid. * gdbthread.h (delete_thread_silent): Declare. * thread.c (delete_thread): Rename to ... (delete_thread_1): ... this. Add "silent" parameter. If silent, don't do exit notifications. (delete_thread, delete_thread_silent): New, as wrappers to delete_thread_1.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 9ce27538fb7..2ed3cb6444f 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -91,6 +91,11 @@ extern struct thread_info *add_thread_with_info (ptid_t ptid,
/* Delete an existing thread list entry. */
extern void delete_thread (ptid_t);
+/* Delete an existing thread list entry, and be quiet about it. Used
+ after the process this thread having belonged to having already
+ exited, for example. */
+extern void delete_thread_silent (ptid_t);
+
/* Delete a step_resume_breakpoint from the thread database. */
extern void delete_step_resume_breakpoint (void *);