diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-08-21 10:22:31 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-08-21 10:22:31 +0000 |
commit | 44e757127229b9d0df974ab44d5e96c701f9acf3 (patch) | |
tree | ec1022538e03fe4e375fda725c6d58a25cccb124 | |
parent | b33d366038fdf04c3d97d1ffca6f4c26d79e04c5 (diff) | |
download | gdb-44e757127229b9d0df974ab44d5e96c701f9acf3.tar.gz |
(inf_ptrace_target): Commit the changes described but
not committed on 2006-05-13.
-rw-r--r-- | gdb/inf-ptrace.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 04e6d477d2c..69f62e38f0b 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -27,6 +27,8 @@ #include "inflow.h" #include "gdbcore.h" #include "regcache.h" +#include "inf-loop.h" +#include "async-nat-inferior.h" #include "gdb_assert.h" #include "gdb_string.h" @@ -116,6 +118,19 @@ inf_ptrace_him (int pid) target_acknowledge_created_inferior (pid); + if (target_can_async_p ()) + { + gdb_create_inferior (gdb_status, pid); + + gdb_signal_thread_create (&gdb_status->signal_status, pid); + + gdb_status->attached_in_ptrace = 1; + gdb_status->stopped_in_ptrace = 0; + gdb_status->stopped_in_softexc = 0; + + gdb_status->suspend_count = 0; + } + /* START_INFERIOR_TRAPS_EXPECTED is defined in inferior.h, and will be 1 or 2 depending on whether we're starting without or with a shell. */ |