From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 9781D393FC2F for ; Mon, 25 Jan 2021 04:57:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9781D393FC2F X-ASG-Debug-ID: 1611550651-0c856e67e24d04a0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id eBzsq8ZdZxqvm2jG (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Jan 2021 23:57:31 -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 645DD441B21; Sun, 24 Jan 2021 23:57:31 -0500 (EST) From: Simon Marchi 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 v4 0/3] Reduce back and forth with target when threads have pending statuses Date: Sun, 24 Jan 2021 23:57:27 -0500 X-ASG-Orig-Subj: [PATCH v4 0/3] Reduce back and forth with target when threads have pending statuses Message-Id: <20210125045730.1739754-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1611550651 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: 2131 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.87494 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-15.9 required=5.0 tests=BAYES_00, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 25 Jan 2021 04:57:34 -0000 This is the v4 of patches 3 and 4 of this series: https://sourceware.org/pipermail/gdb-patches/2021-January/174786.html The "better handling of 'S' packets" part of the series was already merged. Patch 1 is new, it adds a test to cover a case that didn't seem already covered, that is running or attaching while the inferior is running. Note that this series was developped and tested on top of these other series/patches, so they can be considered prerequisites (applied in this order): Fix detach + displaced-step regression + N bugs more https://sourceware.org/pipermail/gdb-patches/2021-January/175040.html Clear target async event handlers in wait method https://sourceware.org/pipermail/gdb-patches/2020-November/173633.html gdb: remove unneeded argument in check_multi_target_resumption https://sourceware.org/pipermail/gdb-patches/2021-January/175057.html Simon Marchi (3): gdb/testsuite: add test for run/attach while program is running gdb: move commit_resume to process_stratum_target gdb: generalize commit_resume, avoid commit-resuming when threads have pending statuses gdb/infcmd.c | 490 +++++++++--------- gdb/infrun.c | 147 +++++- gdb/infrun.h | 59 +++ gdb/mi/mi-main.c | 88 ++-- gdb/process-stratum-target.c | 14 + gdb/process-stratum-target.h | 38 ++ gdb/record-full.c | 10 +- gdb/remote.c | 123 +++-- gdb/target-delegates.c | 22 - gdb/target.c | 30 +- gdb/target.h | 20 - .../gdb.base/run-attach-while-running.c | 69 +++ .../gdb.base/run-attach-while-running.exp | 131 +++++ 13 files changed, 847 insertions(+), 394 deletions(-) create mode 100644 gdb/testsuite/gdb.base/run-attach-while-running.c create mode 100644 gdb/testsuite/gdb.base/run-attach-while-running.exp -- 2.30.0