From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 1yNkLOTc919bIAAAWB0awg (envelope-from ) for ; Thu, 07 Jan 2021 23:17:40 -0500 Received: by simark.ca (Postfix, from userid 112) id 95DE11E965; Thu, 7 Jan 2021 23:17:40 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3CF3E1E519; Thu, 7 Jan 2021 23:17:40 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 79CF13971C2B; Fri, 8 Jan 2021 04:17:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79CF13971C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610079459; bh=yrwmLK9+1xYovcAbLApKJ/wBUDzcnxt3IBBciFkgBUc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=am9HRzu3JpzD+uF1N2GBXX3Q5+KIepjx8kXt3Co4s8CihdaNX43ajY3DYScU0shea Tml0pb1r0XC6RXRBeJomHyGdw+eb8t1GoO6lgFat6LZZZOJWe3td6LssE0RgCqOOAp XPLMfPBGoqgQtzbxptkP/+zqRmloEXVMepTSfviE= Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 64E763971C2B for ; Fri, 8 Jan 2021 04:17:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 64E763971C2B X-ASG-Debug-ID: 1610079455-0c856e6cd564ae10001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id Z4TQ8kK28OuDVkPv (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 07 Jan 2021 23:17:35 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id 36954441B21; Thu, 7 Jan 2021 23:17:35 -0500 (EST) X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH v3 0/5] Reduce back and forth with target when threads have pending statuses + better handling of 'S' packets Date: Thu, 7 Jan 2021 23:17:29 -0500 X-ASG-Orig-Subj: [PATCH v3 0/5] Reduce back and forth with target when threads have pending statuses + better handling of 'S' packets Message-Id: <20210108041734.3873826-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1610079455 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 2577 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.87085 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" This series is made of two set of changes. The first 4 patches are the new version of this series: https://sourceware.org/pipermail/gdb-patches/2020-December/174271.html The rationale remains the same. The main change is in patch 1. Previously, the remote target was only tracking the resume state in non-stop, now it does it even in all-stop. This was changed because it is useful for patch 5, which is the new version of this patch: https://sourceware.org/pipermail/gdb-patches/2020-December/174277.html I included patch 5 in this series because it uses the infrastructure added by patch 1. I also think that making the remote target track the resume state in all modes, as opposed to just in non-stop mode, is less confusing in the long run. Since patches 3 and 4 may be a bit more controversial and require more discussions, it would be possible to merge only 1, 2 and 5 and discuss the others separately. Or even just 1 and 5. This series is called "v3" because what's now patch 5 was already at v2, so I thought it was less confusing this way. Andrew Burgess (1): gdb: better handling of 'S' packets Simon Marchi (4): gdb: make the remote target track its own thread resume state gdb: remove target_ops::commit_resume implementation in record-{btrace,full}.c gdb: move commit_resume to process_stratum_target gdb: generalize commit_resume, avoid commit-resuming when threads have pending statuses gdb/infcmd.c | 8 + gdb/infrun.c | 126 ++++- gdb/infrun.h | 41 ++ gdb/linux-nat.c | 5 + gdb/mi/mi-main.c | 2 + gdb/process-stratum-target.c | 14 + gdb/process-stratum-target.h | 38 ++ gdb/record-btrace.c | 11 - gdb/record-full.c | 20 +- gdb/remote.c | 431 +++++++++++++----- gdb/target-delegates.c | 22 - gdb/target.c | 22 - gdb/target.h | 20 - .../gdb.server/stop-reply-no-thread-multi.c | 77 ++++ .../gdb.server/stop-reply-no-thread-multi.exp | 136 ++++++ 15 files changed, 740 insertions(+), 233 deletions(-) create mode 100644 gdb/testsuite/gdb.server/stop-reply-no-thread-multi.c create mode 100644 gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp -- 2.29.2