diff options
Diffstat (limited to 'gdb/hppab-nat.c')
-rw-r--r-- | gdb/hppab-nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c index b45af84..5f3cdf7 100644 --- a/gdb/hppab-nat.c +++ b/gdb/hppab-nat.c @@ -261,6 +261,9 @@ child_resume (pid, step, signal) { errno = 0; + if (pid == -1) + pid = inferior_pid; + /* An address of (PTRACE_ARG3_TYPE) 1 tells ptrace to continue from where it was. (If GDB wanted it to start some other way, we have already written a new PC value to the child.) */ |