public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Coalesce/aggregate (async) vCont packets/actions
@ 2016-02-17  2:44 Pedro Alves
  2016-02-17  2:44 ` [PATCH 2/5] gdb: Free inferior->priv when inferior exits Pedro Alves
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Pedro Alves @ 2016-02-17  2:44 UTC (permalink / raw)
  To: gdb-patches

Since:

 [PATCH 00/18] Remote all-stop on top of non-stop
 https://www.sourceware.org/ml/gdb-patches/2015-10/msg00213.html

The remote target supports "maint set target-non-stop on".  However
that's still not the default.

I thought I'd first try to aggregate vCont packets, because with 
"maint set target-non-stop on", we go from:

- All-stop / "maint set target-non-stop off"

 (gdb) c
 Continuing.
 (...)
 Sending packet: $vCont;c#a8..

to:

- All-stop / "maint set target-non-stop on"

 (gdb) c
 Continuing.
 (...)
 Sending packet: $vCont;c:p2c45.2c45#7c...Packet received: OK
 Sending packet: $vCont;c:p2c45.2c4f#ad...Packet received: OK
 Sending packet: $vCont;c:p2c45.2c50#78...Packet received: OK
 ... one packet per thread ...

After the series, we'll get back:

 (gdb) c
 Continuing.
 (...)
 Sending packet: $vCont;c#a8...Packet received: OK

(Note the "OK", showing that that was indeed an async vCont resume.)

along with other "wildcard" vCont packets like, "vCont;s:p1.1;c".

Also pushed to the users/palves/vcont-coalesce-actions branch.

Pedro Alves (5):
  gdb: Clean up remote.c:remote_resume
  gdb: Free inferior->priv when inferior exits
  gdb/doc: Clarify vCont packet description
  gdbserver: Leave already-vCont-resumed threads as they were
  gdb: Coalesce/aggregate (async) vCont packets/actions

 gdb/doc/gdb.texinfo       |  32 ++-
 gdb/gdbserver/linux-low.c |  27 +++
 gdb/gdbserver/server.c    |  33 ++-
 gdb/gdbserver/server.h    |   4 +
 gdb/inferior.c            |   3 +
 gdb/inferior.h            |   6 +
 gdb/infrun.c              |   8 +
 gdb/record-btrace.c       |  11 +
 gdb/record-full.c         |  11 +
 gdb/remote.c              | 566 ++++++++++++++++++++++++++++++++++++++++------
 gdb/target-delegates.c    |  26 +++
 gdb/target.c              |  29 +++
 gdb/target.h              |  46 +++-
 13 files changed, 705 insertions(+), 97 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-10-26 15:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17  2:44 [PATCH 0/5] Coalesce/aggregate (async) vCont packets/actions Pedro Alves
2016-02-17  2:44 ` [PATCH 2/5] gdb: Free inferior->priv when inferior exits Pedro Alves
2016-02-17  2:44 ` [PATCH 3/5] gdb/doc: Clarify vCont packet description Pedro Alves
2016-02-17 15:56   ` Eli Zaretskii
2016-02-17  2:44 ` [PATCH 1/5] gdb: Clean up remote.c:remote_resume Pedro Alves
2016-02-17 11:45   ` Luis Machado
2016-02-17 12:32     ` Pedro Alves
2016-02-17 13:44       ` Luis Machado
2016-02-17  2:51 ` [PATCH 4/5] gdbserver: Leave already-vCont-resumed threads as they were Pedro Alves
2016-02-17 11:46   ` Luis Machado
2016-02-17 12:32     ` Pedro Alves
2016-10-26 15:39       ` Pedro Alves
2016-02-17  2:51 ` [PATCH 5/5] gdb: Coalesce/aggregate (async) vCont packets/actions Pedro Alves
2016-02-17 13:42   ` Luis Machado
2016-10-26 15:35     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).