From 5e0b29c16aca01c2a9a8ae251ee7998d96a32124 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 9 Jul 2008 10:58:41 +0000 Subject: * 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. --- gdb/gdbthread.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/gdbthread.h') 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 *); -- cgit v1.2.1