From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id BFDDE3858D32 for ; Thu, 1 Dec 2022 21:22:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BFDDE3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x12b.google.com with SMTP id bp12so1314788ilb.9 for ; Thu, 01 Dec 2022 13:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=KJ8sBhG1UB2pV7Edv7O3djz5KpioaFKY+B8DNSB9W3c=; b=fSrBUUlgchZ/QN6Z82wrzgTUfzzqyZcJVNA2tayeZVwgid2uzjfLh7mAflWHJsORcr t2tY4bE2EUTlY9Iap8Exgfphv98J4ka71E6bnOHIvvMhI7/HSb8N0pnkbp665QIHNyEC zZOltF4/c2FLvNP7oe3yyiECjS6eTf7PKKToEU4pJMIa+Tau+D7LbZuWo5gmdraS2eXj ac7DTlCfr416aHwjKesAnM/2VXWkrJp2nHM/nXQ4qrkQXlxg11LgzCFkTwZYW7H4eZLl oEIucjDmrmDPV5sJzM3jM4ala79r8MLmRYk1Nuhk9MpWROlpEyyvo5F9Ev7njR3p53xJ 4EfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KJ8sBhG1UB2pV7Edv7O3djz5KpioaFKY+B8DNSB9W3c=; b=JqSj5iwXL+2Wgjpc+4gq8bqspaDmLOwbspXruO6kVBMZQCeakPhQ5dSx+Ns+V+QrnQ LXRKJBjVBljZh5x10RN1YVA1oP10DODtfYOEjIt2aIAlXazNzMVO9uv7iaY++cjvAbrA tA7FzdjmZtg1HcStM3QJYjH3iEe1wiSof1JADj9G0evIXdPgsrQhntNj3sPMAvY99yl2 P1YvVc+wGB9vdEE5OiBVzGnwS+pNQIq1sgvkliQntw/+oYgp7Vs/L84ORqKQDLlmbVXa noCx/lzhA23msnK/qB5saBTIIiM56yUvZeqg02Cdvsw9P0erQWoNSplWAH/qBb/JaNUI gNNQ== X-Gm-Message-State: ANoB5playb14i/lpTQH7L9BthUE9EBXdf1qoI9T431PxlHUhctvSCHST WqsWVHsEF2aNXNwQ9BJm/49nJg== X-Google-Smtp-Source: AA0mqf46maBKAgllc9QcSPIQA7wnUgb6N2a21F+8wA2lQKahaiAP5fQGJR3dWmiGNb6NZ/VhBw9org== X-Received: by 2002:a92:3603:0:b0:302:f382:3652 with SMTP id d3-20020a923603000000b00302f3823652mr17737742ila.110.1669929726038; Thu, 01 Dec 2022 13:22:06 -0800 (PST) Received: from murgatroyd (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id f3-20020a02a103000000b003738c0a80b4sm2043942jag.144.2022.12.01.13.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 13:22:05 -0800 (PST) From: Tom Tromey To: Hannes Domani Cc: Hannes Domani via Gdb-patches , Tom Tromey Subject: Re: [PATCH] [RFC] Move SetConsoleCtrlHandler calls to async thread References: <20221128191526.1426-1-ssbssa.ref@yahoo.de> <20221128191526.1426-1-ssbssa@yahoo.de> <87edtjm3pm.fsf@tromey.com> <1754067492.12464828.1669921602659@mail.yahoo.com> X-Attribution: Tom Date: Thu, 01 Dec 2022 14:22:04 -0700 In-Reply-To: <1754067492.12464828.1669921602659@mail.yahoo.com> (Hannes Domani's message of "Thu, 1 Dec 2022 19:06:42 +0000 (UTC)") Message-ID: <87zgc6lszn.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.0 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 List-Id: >>>>> Hannes Domani writes: >> Anyway, I managed to test C-c by using remmina (RDP client) and then >> running gdb in the console provided there.=C2=A0 I used conemu which I g= ather >> opened some kind of Cygwin shell. > I'm not sure if C-c works the same inside of Cygwin. Me neither. I'll see if I can try a different console tomorrow. > Note that it also makes a difference if you started a process with > 'set new-console on' enabled (which is what I always have set). Ok, I wasn't even aware of this. And, I see there's also "new-group", which defaults to true. Looking into this, first, when would anyone want to disable new-group? Second, new-console disables new-group. From the MS docs: CREATE_NEW_PROCESS_GROUP [...] This flag is ignored if specified with CREATE_NEW_CONSOLE. So this may help explain the differences. I'll also experiment with new-console tomorrow. Tom