From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id msc/HSH8+Wm+4BYAWB0awg (envelope-from ) for ; Tue, 05 May 2026 10:18:09 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=DoEJrCJE; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 685451E067; Tue, 05 May 2026 10:18:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9D0B81E067 for ; Tue, 05 May 2026 10:18:08 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 271794BA79AE for ; Tue, 5 May 2026 14:18:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 271794BA79AE Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=DoEJrCJE Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 2DD4A4BA7989 for ; Tue, 5 May 2026 14:17:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DD4A4BA7989 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2DD4A4BA7989 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777990653; cv=none; b=E68CsR9q+RlMbzb3+JblSFNuNQ7ed5kne3/hp+2yggzxFSSNIg/Lga+HZO9+TLBr/eEUQcNoTWWs5T4FATe3oxhDCoTh2bVaREngorbyR8mCSdF+C9X1Fa4terPwjwRI/iT7HnY8XTtHyIMUhFJp1TmC96XFCpfhOwleWgoA7ls= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777990653; c=relaxed/simple; bh=nlaDjUo12raMw97k8iZPSfxaQLoBuGD2/QJfh05xWWI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Aar5CXkjGzwLAPb9MzVOV9/E8c1ufmgoxTX5rcIj8NwfGvmW8mBiD61tK2AvywsobfionVN2bWDV/PRC/yUZMfWiahoQjUtilL9dK0Yl0pH6fCg3SRW30aqEQTHfBxupoBXFdY3i5U2ZV9gkf4FJD/teLcih7OpmIa1pW1G8Ym8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DD4A4BA7989 Received: from eig-obgw-6007b.ext.cloudfilter.net ([10.0.30.166]) by cmsmtp with ESMTPS id KFlJwIXjZrDqVKGaawy5qp; Tue, 05 May 2026 14:17:32 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id KGaWwJt12YO6jKGaWwH4h5; Tue, 05 May 2026 14:17:29 +0000 X-Authority-Analysis: v=2.4 cv=ffyty1QF c=1 sm=1 tr=0 ts=69f9fbfb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=NGcC8JguVDcA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=T_Alst9gAAAA:8 a=zstS-IiYAAAA:8 a=O5Mb916wOoOljL8H1SIA:9 a=JnYJ4jFZ2tsA:10 a=zZCYzV9kfG8A:10 a=ul9cdbp4aOFLsgKbc677:22 a=DvZ5ixILWSEuw56YIEpp:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RmGag6LmZFBlmcUDPSob/qgKSF7jYpJaXAazg3hHEXU=; b=DoEJrCJEm66HxJm1tOJDHhbbQL fEm99CVqtK7mEgwqJNLlSjBmMUJQQfmpVgpQ7COM4atgCOHe47isvgUirjjAQkHqUsPDE3n5mxSdL BS83znBUEzq63z5oO+VAoXFMz; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:39476 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wKGaW-000000024JN-1aBo; Tue, 05 May 2026 08:17:28 -0600 From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Windows gdb: all-stop, interrupt with "stopped" instead of SIGTRAP In-Reply-To: <20260505122434.1444507-1-pedro@palves.net> (Pedro Alves's message of "Tue, 5 May 2026 13:24:33 +0100") References: <20260505122434.1444507-1-pedro@palves.net> X-Attribution: Tom Date: Tue, 05 May 2026 08:17:27 -0600 Message-ID: <87fr46eya0.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wKGaW-000000024JN-1aBo X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:39476 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfG6lzQoTlrxKIscr/57sbLh11X5YRCEIK+MBrhxe0NYQkReLEgkVYmGd0m/dbbBQjYrgn+8ZK4JHXClhSHWPcaLj/a/s3Gk/Y6qzrQq7Qmo5bYG7UTkl RL8Akbk3ISjbNGysO5OcG/KUm4F8hq7gU5Dwf/bWGibrVDyZ/k9k51B2sN/+1d7R4dJf9GBl84LTadjb0Q8ATmKg0zKyinT89pQ= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Pedro" == Pedro Alves writes: Pedro> Currently, "interrupt" uses DebugBreakProcess (or equivalent), which Pedro> injects a new thread in the inferior that executes an int3 instruction Pedro> (on x86), which raises a SIGTRAP. With the target backend in non-stop Pedro> mode, its easy to avoid all that and make interrupt in all-stop just Pedro> suspend a pre-existing thread and report "stopped", like "set non-stop Pedro> on" does (via target_stop). Looks reasonable to me, thanks. Approved-By: Tom Tromey Pedro> +void Pedro> +windows_nat_target::stop (ptid_t ptid) Pedro> +{ Pedro> + stop_interrupt (ptid, false); Pedro> +} I guess this didn't land: https://sourceware.org/pipermail/gdb-patches/2026-April/226456.html but OTOH I think your implementation is more precise. thanks, Tom