aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-07-09 10:58:41 +0000
committerPedro Alves <palves@redhat.com>2008-07-09 10:58:41 +0000
commit5e0b29c16aca01c2a9a8ae251ee7998d96a32124 (patch)
treee9a87376385f76ac3104fce63e1bd7b9964ed712 /gdb/gdbthread.h
parenta4a9b1c4f23dbe0165cce217f253c38e845b0030 (diff)
downloadgdb-5e0b29c16aca01c2a9a8ae251ee7998d96a32124.zip
gdb-5e0b29c16aca01c2a9a8ae251ee7998d96a32124.tar.gz
gdb-5e0b29c16aca01c2a9a8ae251ee7998d96a32124.tar.bz2
* 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 9ce2753..2ed3cb6 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 *);