* breakpoint.c (breakpoint_thread_match break_command_1):
[binutils-gdb.git] / gdb / hppab-nat.c
index b45af8462c1660cf8f605d218a291f3456ec4ba5..5f3cdf724dc7a6d1d45d0af7971aa11a1d153d6d 100644 (file)
@@ -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.)  */