From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 893BA3858C83; Sun, 27 Mar 2022 06:23:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 893BA3858C83 From: "eliz at gnu dot org" To: gdb-prs@sourceware.org Subject: [Bug mi/29002] Console input broken in MI mode Date: Sun, 27 Mar 2022 06:23:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eliz at gnu dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 12.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2022 06:23:51 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29002 --- Comment #2 from Eli Zaretskii --- The culprit is this commit: commit d08cbc5d3203118da5583296e49273cf82378042 Author: Andrew Burgess AuthorDate: Wed Dec 22 12:57:44 2021 +0000 Commit: Andrew Burgess CommitDate: Mon Feb 7 10:24:27 2022 +0000 gdb: unbuffer all input streams when not using readline I guess the detailed analysis in that commit, which describes the behavior = of glibc and the Linux kernel, doesn't fully apply to MS-Windows and its C runtime... The patch I proposed, which partially reverts that commit, fixes the issue = for me on MS-Windows. But if we want to keep the current code for GNU/Linux and other platforms, I guess the actual fix will need to be more complex. --=20 You are receiving this mail because: You are on the CC list for the bug.=