diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-04 22:50:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-04 22:50:59 +0000 |
commit | 1941c569e4194f66d980d62eb3ab534d8011c3ce (patch) | |
tree | 1b190f2c2c066a4cb4af981b1e7cdb0bf1209f9b /gdb/inferior.h | |
parent | 9bde073247a88977fb7cb88974f0b0310f86ebeb (diff) | |
download | gdb-1941c569e4194f66d980d62eb3ab534d8011c3ce.zip gdb-1941c569e4194f66d980d62eb3ab534d8011c3ce.tar.gz gdb-1941c569e4194f66d980d62eb3ab534d8011c3ce.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |