Use PTRACE_SINGLESTEP_ONE when single-stepping one thread.
[deliverable/binutils-gdb.git] / gdb / gdbserver / lynx-low.c
index 6178e038a1bd81939f484f289895b2a75cd56152..3b8366953ecdc4be75e237721f2bc3b6265163a7 100644 (file)
@@ -320,10 +320,11 @@ lynx_attach (unsigned long pid)
 static void
 lynx_resume (struct thread_resume *resume_info, size_t n)
 {
-  /* FIXME: Assume for now that n == 1.  */
   ptid_t ptid = resume_info[0].thread;
-  const int request = (resume_info[0].kind == resume_step
-                       ? PTRACE_SINGLESTEP : PTRACE_CONT);
+  const int request
+    = (resume_info[0].kind == resume_step
+       ? (n == 1 ? PTRACE_SINGLESTEP_ONE : PTRACE_SINGLESTEP)
+       : PTRACE_CONT);
   const int signal = resume_info[0].sig;
 
   /* If given a minus_one_ptid, then try using the current_process'
This page took 0.02369 seconds and 4 git commands to generate.