From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IDbLDqffRmILTQAAWB0awg (envelope-from ) for ; Fri, 01 Apr 2022 07:19:03 -0400 Received: by simark.ca (Postfix, from userid 112) id 2743F1F1F4; Fri, 1 Apr 2022 07:19:03 -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 838161E150 for ; Fri, 1 Apr 2022 07:19:02 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8CFA13947410 for ; Fri, 1 Apr 2022 11:19:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CFA13947410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1648811941; bh=GxHxjia2cZsEmjKND5KSC6ewu8XgFuK6OtDMc/5vkx8=; 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=hnvU68RL3W+PjaxNhTf119e+BxDcqRasqeBEeeZFOxR4GrYjArFXxrWfYBexa/Tdx 6UL7HDQBJ+wrvTmuOQCQh40mQuAHDikOupPNhvcsJNau2iKuqshcrdvCoD/wFQ7CKF RY/zQ4Rf97uqgxc94vvQzJGf2GFCYTJMr1IAlTJs= Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 614353858D28 for ; Fri, 1 Apr 2022 11:18:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 614353858D28 Received: from [2001:470:142:3::e] (port=39544 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 1naFIg-0001rF-IV; Fri, 01 Apr 2022 07:18:42 -0400 Received: from [87.69.77.57] (port=2822 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 1naFIe-0004sz-Sc; Fri, 01 Apr 2022 07:18:42 -0400 Date: Fri, 01 Apr 2022 14:18:53 +0300 Message-Id: <83fsmx59wi.fsf@gnu.org> To: Andrew Burgess In-Reply-To: <87sfqx864d.fsf@redhat.com> (message from Andrew Burgess on Fri, 01 Apr 2022 11:12:18 +0100) Subject: Re: GDB 12.0.90 available for testing References: <20220320055815.2A90FA4D6C@takamaka.home> <83sfr4a93r.fsf@gnu.org> <83pmm8a7gn.fsf@gnu.org> <83o81sa6nu.fsf@gnu.org> <83ilrzap07.fsf@gnu.org> <83mth67i8m.fsf@gnu.org> <72ad3448-0ff0-f36c-d1f3-cc194c0503b8@palves.net> <83ee2i72vl.fsf@gnu.org> <87sfqx864d.fsf@redhat.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: brobecker@adacore.com, gdb-patches@sourceware.org, pedro@palves.net Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > From: Andrew Burgess > Cc: gdb-patches@sourceware.org, brobecker@adacore.com > Date: Fri, 01 Apr 2022 11:12:18 +0100 > > Could you give the patch below a try, please. It tries to move the > setbuf calls out more so (I hope) they only get done once per stream, > and before we've started reading anything from the stream. Thanks, this fixes the case of using GDB from Emacs's gdb-mi.el front-end. But if I invoke GDB from the shell prompt with the -i=mi option, it still thinks I type "g\n" no matter what I actually type at the prompt. So I guess there are problems with making the console input stream unbuffered, at least on MS-Windows? P.S. Aren't these problems visible in the MinGW64 builds of GDB 12? IOW, is this only a problem with the MinGW flavor I'm using to build GDB?