Message ID | 20221128184042.3781569-1-simon.marchi@efficios.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8022B384E3A0 for <patchwork@sourceware.org>; Mon, 28 Nov 2022 18:42:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8022B384E3A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669660946; bh=njPWb0tHKnlA0JDuOQt7wNXX1C7APie0ULT1Jlro3Tw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ypwBJfq8wj6qVLxrH2iGXLkpjhZ4uVxR8SSIE+kQ6wdPOYBBcfcWboiVq9F2LSda/ atwe6zt4GhHPptym5MV8c300EbX4xalKGbX5r5Pmj2vob9wT/YGVlDxwayY1hss+We upHwp0PvmvKpayF/sJEZSU6uOgF6Mzu/+uCiHHE8= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 01039385B19F for <gdb-patches@sourceware.org>; Mon, 28 Nov 2022 18:41:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 01039385B19F X-ASG-Debug-ID: 1669660844-0c856e02a043f390001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id GvOXoocgVglxoNrp (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 Nov 2022 13:40:44 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@efficios.com X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from epycamd.internal.efficios.com (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtp.ebox.ca (Postfix) with ESMTP id 63F5F441D64; Mon, 28 Nov 2022 13:40:44 -0500 (EST) X-Barracuda-RBL-IP: 192.222.180.24 X-Barracuda-Effective-Source-IP: 192-222-180-24.qc.cable.ebox.net[192.222.180.24] X-Barracuda-Apparent-Source-IP: 192.222.180.24 To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@efficios.com> Subject: [PATCH gdb-12-branch 0/6] Backport fixes for PR 28275 to gdb-12-branch Date: Mon, 28 Nov 2022 13:40:36 -0500 X-ASG-Orig-Subj: [PATCH gdb-12-branch 0/6] Backport fixes for PR 28275 to gdb-12-branch Message-Id: <20221128184042.3781569-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1669660844 X-Barracuda-Encrypted: AES128-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: 1747 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=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.102463 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-3492.4 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Simon Marchi <simon.marchi@efficios.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Backport fixes for PR 28275 to gdb-12-branch
|
|
Message
Simon Marchi
Nov. 28, 2022, 6:40 p.m. UTC
Even though no GDB 12.2 release is planned for the moment, I thought I would backport the fixes for PR 28275 to the GDB 12 branch. This can help anybody building from the branch, or distro packages who would like to apply the patches themselves. Also, the reason for not planning a GDB 12.2 release was that there wasn't much stuff on the branch, so it's kind of a chicken and egg problem :). Andrew Burgess (2): gdb/testsuite: refactor gdb.threads/detach-step-over.exp gdb: fix assert when quitting GDB while a thread is stepping Simon Marchi (3): gdb/testsuite: remove global declarations in gdb.threads/detach-step-over.exp gdbserver: switch to right process in find_one_thread gdb: disable commit resumed in target_kill Tiezhu Yang (1): gdb: testsuite: add new gdb_attach to check "attach" command gdb/target.c | 14 + .../gdb.base/run-control-while-bg-execution.c | 33 ++ .../run-control-while-bg-execution.exp | 122 +++++++ .../gdb.multi/attach-while-running.c | 26 ++ .../gdb.multi/attach-while-running.exp | 73 ++++ .../gdb.threads/detach-step-over.exp | 322 +++++++++++------- gdb/testsuite/lib/gdb.exp | 26 ++ gdbserver/thread-db.cc | 29 +- 8 files changed, 514 insertions(+), 131 deletions(-) create mode 100644 gdb/testsuite/gdb.base/run-control-while-bg-execution.c create mode 100644 gdb/testsuite/gdb.base/run-control-while-bg-execution.exp create mode 100644 gdb/testsuite/gdb.multi/attach-while-running.c create mode 100644 gdb/testsuite/gdb.multi/attach-while-running.exp base-commit: 64849597cdb1bf17d3cc25e089ac17bd80bcee52
Comments
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> Even though no GDB 12.2 release is planned for the moment, I thought I
Simon> would backport the fixes for PR 28275 to the GDB 12 branch. This can
Simon> help anybody building from the branch, or distro packages who would like
Simon> to apply the patches themselves.
Simon> Also, the reason for not planning a GDB 12.2 release was that there
Simon> wasn't much stuff on the branch, so it's kind of a chicken and egg
Simon> problem :).
I didn't read through the patches, but the idea seems fine to me.
Tom
On 11/30/22 11:20, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes: > > Simon> Even though no GDB 12.2 release is planned for the moment, I thought I > Simon> would backport the fixes for PR 28275 to the GDB 12 branch. This can > Simon> help anybody building from the branch, or distro packages who would like > Simon> to apply the patches themselves. > > Simon> Also, the reason for not planning a GDB 12.2 release was that there > Simon> wasn't much stuff on the branch, so it's kind of a chicken and egg > Simon> problem :). > > I didn't read through the patches, but the idea seems fine to me. > > Tom Ok thanks, pushed it. Simon