From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id OcyVLJshZWNvCBQAWB0awg (envelope-from ) for ; Fri, 04 Nov 2022 10:28:43 -0400 Received: by simark.ca (Postfix, from userid 112) id AB7141E124; Fri, 4 Nov 2022 10:28:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5B40F1E0D3 for ; Fri, 4 Nov 2022 10:28:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 07FF7385843E for ; Fri, 4 Nov 2022 14:28:42 +0000 (GMT) Received: from re-prd-fep-041.btinternet.com (mailomta27-re.btinternet.com [213.120.69.120]) by sourceware.org (Postfix) with ESMTPS id C03C53858285 for ; Fri, 4 Nov 2022 14:28:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C03C53858285 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from re-prd-rgout-002.btmx-prd.synchronoss.net ([10.2.54.5]) by re-prd-fep-041.btinternet.com with ESMTP id <20221104142826.ZNEX9588.re-prd-fep-041.btinternet.com@re-prd-rgout-002.btmx-prd.synchronoss.net>; Fri, 4 Nov 2022 14:28:26 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 613A8DE84104A5D5 X-Originating-IP: [81.153.98.206] X-OWM-Source-IP: 81.153.98.206 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvgedrvddugdeivdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptgfkffggfgfuvfhfhfgjsehmtderredtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeehhfeigeeukedtgfefkeelgedvgeffvdejheevgfffgfduveejffelvedtffekfeenucfkphepkedurdduheefrdelkedrvddtieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtiegnpdhinhgvthepkedurdduheefrdelkedrvddtiedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepghgusgdqphgrthgthhgvshesshhouhhrtggvfigrrhgvrdhorhhgpdhrtghpthhtohepthhrohhmvgihsegruggrtghorhgvrdgtohhm X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.106] (81.153.98.206) by re-prd-rgout-002.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 613A8DE84104A5D5; Fri, 4 Nov 2022 14:28:26 +0000 Content-Type: multipart/mixed; boundary="------------ZA3DOHhrh7M6J60nutrzHIYz" Message-ID: <02f9d01b-1a0c-a9be-6e0d-bf06ab02da74@dronecode.org.uk> Date: Fri, 4 Nov 2022 14:28:26 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 2/2] Implement target async for Windows Content-Language: en-GB To: Tom Tromey , gdb-patches@sourceware.org References: <20220803130822.735057-1-tromey@adacore.com> <20220803130822.735057-3-tromey@adacore.com> From: Jon Turney In-Reply-To: <20220803130822.735057-3-tromey@adacore.com> 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: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" This is a multi-part message in MIME format. --------------ZA3DOHhrh7M6J60nutrzHIYz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 03/08/2022 14:08, Tom Tromey via Gdb-patches wrote: > This implements target async for Windows. The basic idea is to have > the worker thread block in WaitForDebugEvent, then notify the event > loop when an event is seen. In a few situations, this blocking > behavior is undesirable, so the functions passed to do_synchronously > are changed to return a boolean indicating which behavior is needed. > --- > gdb/windows-nat.c | 123 ++++++++++++++++++++++++++++++++++++++++------ > 1 file changed, 108 insertions(+), 15 deletions(-) > > diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c > index 80cdedce7b9..9c277e9a93d 100644 > --- a/gdb/windows-nat.c > +++ b/gdb/windows-nat.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > #include > #include > #ifdef __CYGWIN__ This breaks the build on Cygwin, as including both winsock2 and Cygwin's sys/select.h is a big no-no. I'm going to suggest the attached to fix this, but from a quick reading of the patch, I just wonder if winsock2.h is actually needed at all, as I don't immediately see anything that leaps out as needing it... --------------ZA3DOHhrh7M6J60nutrzHIYz Content-Type: text/plain; charset=UTF-8; name="0001-Fix-Cygwin-build-after-d08bae3d.patch" Content-Disposition: attachment; filename="0001-Fix-Cygwin-build-after-d08bae3d.patch" Content-Transfer-Encoding: base64 RnJvbSBjNGQzNWFhMzYzYTgwMz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