From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68765 invoked by alias); 17 Feb 2016 02:44:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 68714 invoked by uid 89); 17 Feb 2016 02:44:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=vCont, vcont, async, Hx-languages-length:1803 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 17 Feb 2016 02:44:53 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 5887CC0EF88C for ; Wed, 17 Feb 2016 02:44:52 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1H2ipuH016136 for ; Tue, 16 Feb 2016 21:44:51 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Coalesce/aggregate (async) vCont packets/actions Date: Wed, 17 Feb 2016 02:44:00 -0000 Message-Id: <1455677091-13683-1-git-send-email-palves@redhat.com> X-SW-Source: 2016-02/txt/msg00491.txt.bz2 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