diff options
author | Doug Evans <dje@google.com> | 2009-04-30 22:21:06 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-04-30 22:21:06 +0000 |
commit | 9f767825692c9376d77aa5367719217ed591f358 (patch) | |
tree | 311d7b2090c4ce32f7c5832be6a30997b42694d1 /gdb/gdbserver/server.h | |
parent | 25c2f6abe046d0ce97853334221bda452101df81 (diff) | |
download | gdb-9f767825692c9376d77aa5367719217ed591f358.zip gdb-9f767825692c9376d77aa5367719217ed591f358.tar.gz gdb-9f767825692c9376d77aa5367719217ed591f358.tar.bz2 |
* inferiors.c (started_inferior_callback): New function.
(attached_inferior_callback): New function.
(have_started_inferiors_p, have_attached_inferiors_p): New functions.
* server.c (print_started_pid, print_attached_pid): New functions.
(detach_or_kill_for_exit): New function.
(main): Call it instead of for_each_inferior (kill_inferior_callback).
* server.h (have_started_inferiors_p): Declare.
(have_attached_inferiors_p): Declare.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r-- | gdb/gdbserver/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 7a0b770..5138f1a 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -236,6 +236,8 @@ void add_thread (ptid_t ptid, void *target_data); struct process_info *add_process (int pid, int attached); void remove_process (struct process_info *process); struct process_info *find_process_pid (int pid); +int have_started_inferiors_p (void); +int have_attached_inferiors_p (void); struct thread_info *find_thread_pid (ptid_t ptid); |