* remote.c (remote_stop_ns): If multi-process extensions are off,
authorPedro Alves <palves@redhat.com>
Sat, 28 Mar 2009 01:15:13 +0000 (01:15 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 28 Mar 2009 01:15:13 +0000 (01:15 +0000)
and GDB is requesting the whole process to stop, sent "vCont;t",
not "vCont;t:-1"

gdb/ChangeLog
gdb/remote.c

index b156123ab256b431f0fea07b7a2be97c0b9ff331..679f6cdad6372278ccaefb4aa25a07121f83439d 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-28  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_stop_ns): If multi-process extensions are off,
+       and GDB is requesting the whole process to stop, sent "vCont;t",
+       not "vCont;t:-1"
+
 2009-03-28  Pedro Alves  <pedro@codesourcery.com>
 
        * inf-loop.c (inferior_event_handler): Avoid calling is_running on
index d4cf72c45cbc607c961af22da4d3a30b632178b0..4173aaa54d258d7b6d727940497fc2c1ad260218 100644 (file)
@@ -3945,13 +3945,13 @@ remote_stop_ns (ptid_t ptid)
   if (!rs->support_vCont_t)
     error (_("Remote server does not support stopping threads"));
 
-  if (ptid_equal (ptid, minus_one_ptid))
+  if (ptid_equal (ptid, minus_one_ptid)
+      || (!remote_multi_process_p (rs) && ptid_is_pid (ptid)))
     p += xsnprintf (p, endp - p, "vCont;t");
   else
     {
       ptid_t nptid;
 
-      /* Step inferior_ptid.  */
       p += xsnprintf (p, endp - p, "vCont;t:");
 
       if (ptid_is_pid (ptid))