* infrun.c (wait_for_inferior): When we hit a breakpoint for the
[deliverable/binutils-gdb.git] / gdb / lynx-nat.c
index f0e817e5653267b504134b6774e343bb44f7a693..1ab9cc7cc678934703198962e27f82df4c7af48c 100644 (file)
@@ -705,14 +705,16 @@ child_resume (pid, step, signal)
 
   errno = 0;
 
+  /* If pid == -1, then we want to step/continue all threads, else
+     we only want to step/continue a single thread.  */
   if (pid == -1)
     {
-      /* Resume all threads.  */
-
       pid = inferior_pid;
+      func = step ? PTRACE_SINGLESTEP : PTRACE_CONT;
     }
+  else
+    func = step ? PTRACE_SINGLESTEP_ONE : PTRACE_CONT_ONE;
 
-  func = step ? PTRACE_SINGLESTEP_ONE : PTRACE_CONT;
 
   /* 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
This page took 0.023398 seconds and 4 git commands to generate.