From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8sY4E4S/SWKJdQAAWB0awg (envelope-from ) for ; Sun, 03 Apr 2022 11:38:44 -0400 Received: by simark.ca (Postfix, from userid 112) id 39A411F327; Sun, 3 Apr 2022 11:38:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 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 9EC061E150 for ; Sun, 3 Apr 2022 11:38:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E3A25385843E for ; Sun, 3 Apr 2022 15:38:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3A25385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649000322; bh=Pn9QfSreig4AX7IKT1lUHEMCoOe+1pf6/wE0J7BArL0=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=myG5FSJ+hOyGl2pJdE3GYUQN/Lq2s+h1cJMkiDeMuCGQuXDa9IoTmLsSZnCJdjofA 8gj4MEcTnp7a6ztOwNMe6EJMRNirPpILuxlyPjBEynNtn+SltvEun/+fdtR42SSGb7 Io0zF1d2uDa4hD78Vqwg6Z6yWUZWmyKH91i0mRrM= Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id C4D7D3858D37 for ; Sun, 3 Apr 2022 15:38:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C4D7D3858D37 Received: from [2001:470:142:3::e] (port=37594 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb2J4-00085M-RO; Sun, 03 Apr 2022 11:38:22 -0400 Received: from [87.69.77.57] (port=2777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb2J4-0007SX-9F; Sun, 03 Apr 2022 11:38:22 -0400 Date: Sun, 03 Apr 2022 18:38:21 +0300 Message-Id: <83czhyfa8i.fsf@gnu.org> To: Hannes Domani In-Reply-To: <1113857996.1779276.1648999598328@mail.yahoo.com> (message from Hannes Domani on Sun, 3 Apr 2022 15:26:38 +0000 (UTC)) Subject: Re: GDB 12.0.90 available for testing References: <83ilrzap07.fsf@gnu.org> <83mth67i8m.fsf@gnu.org> <72ad3448-0ff0-f36c-d1f3-cc194c0503b8@palves.net> <83ee2i72vl.fsf@gnu.org> <87sfqx864d.fsf@redhat.com> <83fsmx59wi.fsf@gnu.org> <83ee2h59m2.fsf@gnu.org> <87pmm096dc.fsf@redhat.com> <83zgl44w1m.fsf@gnu.org> <1379565857.1750775.1648990951974@mail.yahoo.com> <1113857996.1779276.1648999598328@mail.yahoo.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: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: pedro@palves.net, aburgess@redhat.com, gdb-patches@sourceware.org, brobecker@adacore.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Sun, 3 Apr 2022 15:26:38 +0000 (UTC) > From: Hannes Domani > Cc: Andrew Burgess , Eli Zaretskii , > "gdb-patches@sourceware.org" , > "pedro@palves.net" > > Am Sonntag, 3. April 2022, 16:02:51 MESZ hat Joel Brobecker Folgendes geschrieben: > > But I found out now that on Windows the combination of > setbuf/WaitForMultipleObjects doesn't work correctly with fgetc. > WaitForMultipleObjects is called by console_select_thread in ser-mingw.c, > so the following is a minimal reproducer of the problem (but for some reason > I always see character 'f' instead of 'g'): In general, to switch the console to unbuffered reads, shouldn't we call SetConsoleMode to force raw input from the console? > I don't really see a solution beside some "#ifdef _WIN32" code to fix this. That was my conclusion as well. Thanks.