aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppah-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/hppah-nat.c')
-rw-r--r--gdb/hppah-nat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c
index 7c04593..60942df 100644
--- a/gdb/hppah-nat.c
+++ b/gdb/hppah-nat.c
@@ -212,6 +212,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.) */