* monitor (monitor_ptid): New global.
authorPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 10:58:41 +0000 (10:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 10:58:41 +0000 (10:58 +0000)
commit5e0b29c16aca01c2a9a8ae251ee7998d96a32124
treee9a87376385f76ac3104fce63e1bd7b9964ed712
parenta4a9b1c4f23dbe0165cce217f253c38e845b0030
* 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/ChangeLog
gdb/gdbthread.h
gdb/monitor.c
gdb/thread.c