From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30639 invoked by alias); 31 Jan 2015 08:59:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 30618 invoked by uid 89); 31 Jan 2015 08:59:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 31 Jan 2015 08:59:56 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NJ100600A4N3E00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 31 Jan 2015 10:59:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ10065HABR3010@a-mtaout22.012.net.il>; Sat, 31 Jan 2015 10:59:52 +0200 (IST) Date: Sat, 31 Jan 2015 21:37:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Speed up "gdb -tui" output In-reply-to: To: Doug Evans Cc: palves@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83vbjnjpfb.fsf@gnu.org> References: <83zj9v7urq.fsf@gnu.org> <83sifn7mpt.fsf@gnu.org> <83h9w278a9.fsf@gnu.org> <83bnma75yt.fsf@gnu.org> <837fwy74ny.fsf@gnu.org> <21677.44074.982761.250152@ruffy2.mtv.corp.google.com> <83iog2y7s9.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00812.txt.bz2 > Date: Mon, 19 Jan 2015 10:32:48 -0800 > From: Doug Evans > Cc: "gdb-patches@sourceware.org" > > On Mon, Jan 19, 2015 at 9:55 AM, Eli Zaretskii wrote: > >> From: Doug Evans > >> Date: Wed, 7 Jan 2015 13:59:06 -0800 > >> > >> Doug Evans writes: > >> > Seems like the main source of the problem would be gdb_stdout, > >> > so let's try to fix that first and go from there. > >> > >> Here's a prototype. > > > > Sorry for a long delay. I tried this (and Pedro's) patch today. They > > both do the job, so one of them should IMO be committed, master and > > branch. > > > >> @@ -239,6 +243,12 @@ tui_file_flush (struct ui_file *file) > >> case astring: > >> break; > >> case afile: > >> + /* There is also gdb_stdlog, gdb_stdtarg, gdb_stdtargerr, but > >> + tui_setup_io maps those to gdb_stderr. OTOH, do we need to make > >> + this conditional? */ > >> + if (file == gdb_stdout > >> + || file == gdb_stderr) > >> + tui_refresh_cmd_win (); > > > > I indeed think that the condition should be removed. I see no need > > for it: there's no reason to make any stream displayed on TUI more > > than line-buffered. > > I don't have a preference on which, with one condition. > If we're going to remove the fflush's let's do it as a separate patch. Ping! Can one of these patches be committed, please, master and the 7.9 branch?