From f04484802a7a2a2e0e2a9ca8fc431e6286bbb3b1 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sat, 28 Mar 2009 01:15:09 +0000 Subject: [PATCH] * 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" --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b156123ab2..679f6cdad6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2009-03-28 Pedro Alves + * 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 + * inf-loop.c (inferior_event_handler): Avoid calling is_running on null inferior_ptid. diff --git a/gdb/remote.c b/gdb/remote.c index d4cf72c45c..4173aaa54d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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)) -- 2.11.0