* 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.
This commit is contained in:
Doug Evans
2009-04-30 22:21:06 +00:00
parent 25c2f6abe0
commit 9f76782569
4 changed files with 119 additions and 5 deletions

View File

@ -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);