From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6849 invoked by alias); 7 Jan 2015 18:12:40 -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 6837 invoked by uid 89); 7 Jan 2015 18:12:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-oi0-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 07 Jan 2015 18:12:38 +0000 Received: by mail-oi0-f43.google.com with SMTP id i138so4014200oig.2 for ; Wed, 07 Jan 2015 10:12:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BcKI01Ovh9LF4IrR/BFM+ebPwZxe0+wuib/5gc6TsSw=; b=mJWSK3CItBWoQQHTBeDHOpFLgY1NVIDcv5hgt3s1NN5x0xa4MbT/aRKgqjQRDEa/sy JfzduWWLhFrj3f78nij272r/4L/ojRJt8oi0+dme2RtdVlF1O+NIcDTD3HIT8mNYl2RH bVsPDTpjkBsD5NuxPo1SxQsoJHyNW+CyU6Jyi/xVlQy8LYacwI7eVcPY+NJQXq0xdVOl R8oaF1NNg88JVXnCXwurzobgYr542ZF7rIycJt6bnargW93yRbVDCRegh6/Z20w7I3fg RSWKVeQ86t6Olc9vsUlT574KNYDPpdicNmPhutjWuRfYlr1jQHsQ7bRPYTKuFPrysYuH m3sA== X-Gm-Message-State: ALoCoQmmuRmA0um2mlnkO7xagnRwtTJpkP/HDMIOm1OMoqxlbC9s8NAgOq6Eiwm752Wo6lIF85Dm MIME-Version: 1.0 X-Received: by 10.202.91.138 with SMTP id p132mr2726132oib.47.1420654356992; Wed, 07 Jan 2015 10:12:36 -0800 (PST) Received: by 10.182.222.98 with HTTP; Wed, 7 Jan 2015 10:12:36 -0800 (PST) In-Reply-To: References: <83zj9v7urq.fsf@gnu.org> <54AD4E22.1010106@redhat.com> Date: Wed, 07 Jan 2015 18:12:00 -0000 Message-ID: Subject: Re: [PATCH] Speed up "gdb -tui" output From: Doug Evans To: Pedro Alves Cc: Eli Zaretskii , gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00126.txt.bz2 On Wed, Jan 7, 2015 at 10:00 AM, Doug Evans wrote: > Do we need to do gdb_flush (gdb_stdout) if c == '\n'? > > Normally in curses line buffering doesn't make any sense. > One paints the window and then does a refresh. > We want to add scrolling of the command line window on > top of that, but if the intent is for that to be handled by > gdb's standard set height mechanism (which could use > some TLC w.r.t. TUI), then the screen will be refreshed > at the "Type to continue, ..." prompt. > I don't off hand know if TUI tries to give the user the > impression of scrolling if the user sets the height > to be larger than the physical command line window. > My impression is it doesn't. > And therefore, I think we don't need to do any call to > gdb_flush here. Could be missing something though. Well, there is unfiltered output which doesn't go through pagination. Fun fun fun.