From patchwork Wed Aug 21 02:25:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34207 Received: (qmail 29694 invoked by alias); 21 Aug 2019 02:25:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 29401 invoked by uid 89); 21 Aug 2019 02:25:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.147.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Aug 2019 02:25:43 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway33.websitewelcome.com (Postfix) with ESMTP id BFFC4D894E for ; Tue, 20 Aug 2019 21:25:41 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 0GJhiwIzW2qH70GJhiuTh2; Tue, 20 Aug 2019 21:25:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B9PNzUBd16j9bJrQ26Lw7ZolRelhKSfLVVInnlZNWGg=; b=NM/rQAEyYVVKUHHnIl07O3QcJ0 77zUXlrYedJWDuiT9Y19yj5ucTN+po7rBLNDQVQEi+OrJzmp8ZzMwPYHBco2oVUzj52vlWTSJ/EnJ IRyZ4M0KQklzALJw76hmPQ9sd; Received: from 97-122-178-82.hlrn.qwest.net ([97.122.178.82]:48672 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i0GJh-001K6n-Hn; Tue, 20 Aug 2019 21:25:41 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 09/15] Don't call tui_refresh_all from show_layout Date: Tue, 20 Aug 2019 20:25:29 -0600 Message-Id: <20190821022535.9762-10-tom@tromey.com> In-Reply-To: <20190821022535.9762-1-tom@tromey.com> References: <20190821022535.9762-1-tom@tromey.com> show_layout calls tui_refresh_all in one case. However, it doesn't need to any more, because the resize method on each window will also update the contents. gdb/ChangeLog 2019-08-20 Tom Tromey * tui/tui-layout.c (show_layout): Don't call tui_refresh_all. --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-layout.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 7ec704e52f0..df7056ae97b 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -82,7 +82,6 @@ show_layout (enum tui_layout_type layout) case SRC_DATA_COMMAND: case DISASSEM_DATA_COMMAND: show_data (layout); - tui_refresh_all (); break; /* Now show the new layout. */ case SRC_COMMAND: