From 1941c569e4194f66d980d62eb3ab534d8011c3ce Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 4 Mar 2009 22:50:59 +0000 Subject: * inferior.h (notice_new_inferior): Declare. * infcmd.c (notice_new_inferior): New. * remote.c (remote_add_inferior, remote_add_thread): New. (notice_new_inferiors): Rename to... (remote_notice_new_inferior): ... this. Add RUNNING argument. Use remote_add_thread instead of add_thread, passing it the RUNNING argument. Add an inferior with remote_add_inferior. If we just learned about an inferior, call notice_new_inferior. (record_currthread): Adjust. (remote_threads_info): Adjust to use remote_notice_new_inferior. (remote_start_remote, extended_remote_attach_1): Use remote_add_inferior. (process_stop_reply): Adjust. Call remote_notice_new_inferior after handling expedited registers and watchpoint state. (extended_remote_create_inferior_1): Use remote_add_inferior. --- gdb/inferior.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/inferior.h') diff --git a/gdb/inferior.h b/gdb/inferior.h index c459411..6a1c01a 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -281,6 +281,8 @@ extern void interrupt_target_1 (int all_threads); extern void detach_command (char *, int); +extern void notice_new_inferior (ptid_t, int, int); + /* Address at which inferior stopped. */ extern CORE_ADDR stop_pc; -- cgit v1.1