Message ID | 20221205185651.2704492-1-tromey@adacore.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 BBA793948827 for <patchwork@sourceware.org>; Mon, 5 Dec 2022 18:57:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBA793948827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670266642; bh=P3RXcUlZXpEqnlWHdkAIZpSguQxseHXMQfyeNKywf38=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=QSkE+2Cte/RsDKFfRX2eaffZEfHIeXmA5pPnJP4ohuluEIe+Q9aj+0mUOw5ferkS1 DKfgzD52C15+3ZHbCJBe2kW9yBnadjA/Ye/m5jgXd+0KmolaynNN0nlaBXsXkeIkhD 91wQu61chXSO413+5hQTPng0/UuTziGKCzggXjRo= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id DED643948462 for <gdb-patches@sourceware.org>; Mon, 5 Dec 2022 18:56:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DED643948462 Received: by mail-il1-x131.google.com with SMTP id y2so3705248ily.5 for <gdb-patches@sourceware.org>; Mon, 05 Dec 2022 10:56:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P3RXcUlZXpEqnlWHdkAIZpSguQxseHXMQfyeNKywf38=; b=kUZGZo+Auch4vHbCGX5m2YIbxJ72dkADH1cYp+lDFGyQbkBBHis4wl59v0zBrSw31f Fhk2fUnLKfKWJl/N8ocXhrQxpt0iNKIigbRvDqG9aWFAMTU2Oy81WC+uOQ8xHGtSIa3v +/QMZNygQQcMsDnqHWxkgGzFikYho8kDTif9+2Rgtb/g4OiWlaRP1+IBW68iaHry0gv2 hpGatM3mBbub58pMf02tuuXnfirezlSn6k/GFZzHxlqEoRcPtfWNA47/CnRNXcoKo74n JfB3h6SWQjY79rrZFTq70n5MFDafnPRQ5eMEnkAOxYDhR4Ue5J/iZPVVzNNfJ238uog9 N9BA== X-Gm-Message-State: ANoB5pm8f2vesn0VmgbirxJKdTXqOKzLVEyQwzl6nYyBqbtF8LTJQ/L4 f1lqKO8ara8jo2CSzxdBTXAHqkokc+sJ9qDp X-Google-Smtp-Source: AA0mqf5PPKCKHPJZzjCmPYvD8sWouz4YxTozWk/wOeO0KEqaBkKfzcf2s080TIOlpVcbwjm7TqxesA== X-Received: by 2002:a92:d0d:0:b0:303:c87:7177 with SMTP id 13-20020a920d0d000000b003030c877177mr18058449iln.308.1670266618153; Mon, 05 Dec 2022 10:56:58 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id z29-20020a027a5d000000b00389d02a032dsm2000459jad.172.2022.12.05.10.56.57 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 10:56:57 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Fix Windows C-c handling Date: Mon, 5 Dec 2022 11:56:48 -0700 Message-Id: <20221205185651.2704492-1-tromey@adacore.com> X-Mailer: git-send-email 2.34.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tom Tromey <tromey@adacore.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Fix Windows C-c handling
|
|
Message
Tom Tromey
Dec. 5, 2022, 6:56 p.m. UTC
This series attempts to fix C-c handling on Windows, which was broken by target async. I ran this series through the AdaCore test suite (I've never managed to run dejagnu on Windows), but of course that doesn't really test this area much, or else we would have seen a regression from target async. I also tested this by starting an RDP session (avoiding whatever cygwin/mingw issue affects C-c handling for me normally) and trying "run", "attach", and "run"-with-new-console; and exercising both C-c and C-break. Let me know what you think. Tom
Comments
Tom> This series attempts to fix C-c handling on Windows, which was broken Tom> by target async. Jon, would you mind testing this on Cygwin? I can't really do that, but I'd rather not break the build again. The branch is in my github as 'submit/windows-c-c', which may be more convenient than applying via email. thanks, Tom
On 05/12/2022 18:59, Tom Tromey wrote: > Tom> This series attempts to fix C-c handling on Windows, which was broken > Tom> by target async. > > Jon, would you mind testing this on Cygwin? I can't really do that, but > I'd rather not break the build again. > > The branch is in my github as 'submit/windows-c-c', which may be more > convenient than applying via email. Thanks. This compiles ok, and seems to work. I'm sure how, since my theory was that Cygwin should continue to use GenerateConsoleCtrlEvent() on the inferior, which would then experience a SIGINT in the Cygwin runtime, and gdb gets told about that emulated signal and stops the inferior. (In practice, I don't think that reliably worked before, and I have precisely zero time to look into this currently, so go ahead...)
>>>>> "Jon" == Jon Turney <jon.turney@dronecode.org.uk> writes: Jon> On 05/12/2022 18:59, Tom Tromey wrote: Tom> This series attempts to fix C-c handling on Windows, which was broken Tom> by target async. >> Jon, would you mind testing this on Cygwin? I can't really do that, >> but >> I'd rather not break the build again. >> The branch is in my github as 'submit/windows-c-c', which may be >> more >> convenient than applying via email. Jon> Thanks. Jon> This compiles ok, and seems to work. Thanks for trying it. Jon> I'm sure how, since my theory was that Cygwin should continue to use Jon> GenerateConsoleCtrlEvent() on the inferior, which would then Jon> experience a SIGINT in the Cygwin runtime, and gdb gets told about Jon> that emulated signal and stops the inferior. Jon> (In practice, I don't think that reliably worked before, and I have Jon> precisely zero time to look into this currently, so go ahead...) I don't know either :) If it works for you then that seems pretty good; and we can always change the Cygwin code paths later if need be. Tom