OSDN Git Service

* monitor (monitor_ptid): New global.
authorpalves <palves>
Wed, 9 Jul 2008 10:58:40 +0000 (10:58 +0000)
committerpalves <palves>
Wed, 9 Jul 2008 10:58:40 +0000 (10:58 +0000)
commitd823ad35c93a7f76009e030160ae6dfaa21bace8
tree331a111adf3e1a325273995b539e79da3bf5abd6
parent35c7d2313b657ccf6877785778b035bd51207209
* 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