diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-28 01:15:13 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-28 01:15:13 +0000 |
commit | f91d3df5c6156218eb413f35b2b06c1d77103a5e (patch) | |
tree | dfadbb0ee496a988e42f86c671f38a3b7e232d21 /gdb/remote.c | |
parent | 7b0e8051319071c234fd682d459148922622c35d (diff) | |
download | gdb-f91d3df5c6156218eb413f35b2b06c1d77103a5e.zip gdb-f91d3df5c6156218eb413f35b2b06c1d77103a5e.tar.gz gdb-f91d3df5c6156218eb413f35b2b06c1d77103a5e.tar.bz2 |
* 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"
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index d4cf72c..4173aaa 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)) |