OSDN Git Service

* monitor (monitor_ptid): New global.
authorPedro Alves <pedro@codesourcery.com>
Wed, 9 Jul 2008 10:58:41 +0000 (10:58 +0000)
committerPedro Alves <pedro@codesourcery.com>
Wed, 9 Jul 2008 10:58:41 +0000 (10:58 +0000)
commit003697dbb3a36e6e6247fc5464b242a5df5294a2
treedc25d1abe15a874582fddfdd24c56dbb061ed1b0
parentb9e26686976e921fd99a5a7ba06c7dfcf9d7893d
* 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