Fri Dec 1 22:22:40 2017 UTC ()
don't suspend other threads if we are resuming.


(christos)
diff -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

cvs diff -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c (expand / switch to context diff)
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c 2017/12/01 22:20:44 1.3
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c 2017/12/01 22:22:40 1.4
@@ -556,7 +556,12 @@
 			ptid_get_tid (ptid));
   if (ptid_lwp_p (ptid))
     {
-      /* If ptid is a specific LWP, suspend all other LWPs in the process.  */
+      /* FreeBSD: If ptid is a specific LWP, suspend all other LWPs in the
+       * process.
+       */
+      /* NetBSD, this function is about resuming so we only deal with
+       * the thread we've been asked to work with
+       */
       struct thread_info *tp;
       int request;
 
@@ -567,8 +572,10 @@
 
 	  if (ptid_get_lwp (tp->ptid) == ptid_get_lwp (ptid))
 	    request = PT_RESUME;
+#ifndef __NetBSD__
 	  else
 	    request = PT_SUSPEND;
+#endif
 
 	  if (ptrace (request, ptid_get_pid (tp->ptid), NULL,
 	      ptid_get_lwp (tp->ptid)) == -1)