From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.47.163]) by sourceware.org (Postfix) with ESMTPS id EB3A3386F836 for ; Thu, 18 Jun 2020 02:16:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EB3A3386F836 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 28FB6151ED for ; Wed, 17 Jun 2020 21:15:29 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id lk5RjYQfYBb5dlk5RjrRt0; Wed, 17 Jun 2020 21:15:29 -0500 X-Authority-Reason: nr=8 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=iWRrE+UXJS4UXo/wqLULk+u89LwqosMfHFpswZ46hF8=; b=kmpihTNjz4HQDrYztdQUjigzVM Ygc14bT9wOMo9hXW5onUgfWATeou1akn8Z4OVGQldldYE3uWazP6oveu1YLBiw1bSPeCgNaMc3nQW 8VbJp9i0/HTzckGqhMXM3e1Xw; Received: from 174-16-104-48.hlrn.qwest.net ([174.16.104.48]:54316 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jlk5Q-003VvK-Tm; Wed, 17 Jun 2020 20:15:29 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 09/11] Derive tui_locator_window from tui_win_info Date: Wed, 17 Jun 2020 20:15:21 -0600 Message-Id: <20200618021523.10681-10-tom@tromey.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200618021523.10681-1-tom@tromey.com> References: <20200618021523.10681-1-tom@tromey.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.104.48 X-Source-L: No X-Exim-ID: 1jlk5Q-003VvK-Tm X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-104-48.hlrn.qwest.net (bapiya.Home) [174.16.104.48]:54316 X-Source-Auth: tom+tromey.com X-Email-Count: 11 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3037.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 18 Jun 2020 02:16:07 -0000 tui_locator_window is the last remaining concrete child class of tui_gen_win_info. It seems a bit cleaner to me to flatten the hierarchy a bit; this patch prepares for that by changing tui_locator_window to derive from tui_win_info. 2020-06-17 Tom Tromey * tui/tui-stack.h (struct tui_locator_window): Derive from tui_win_info. : New methods. : New method. --- gdb/ChangeLog | 7 +++++++ gdb/tui/tui-stack.h | 17 ++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index 0253767ad98..564ac22495c 100644 --- a/gdb/tui/tui-stack.h +++ b/gdb/tui/tui-stack.h @@ -28,7 +28,7 @@ struct frame_info; /* Locator window class. */ -struct tui_locator_window : public tui_gen_win_info +struct tui_locator_window : public tui_win_info { tui_locator_window () = default; @@ -42,6 +42,11 @@ struct tui_locator_window : public tui_gen_win_info return 1; } + bool can_box () const override + { + return false; + } + void rerender () override; /* Update the locator, with the provided arguments. @@ -62,6 +67,16 @@ struct tui_locator_window : public tui_gen_win_info /* Architecture associated with code at this location. */ struct gdbarch *gdbarch = nullptr; +protected: + + void do_scroll_vertical (int n) override + { + } + + void do_scroll_horizontal (int n) override + { + } + private: /* Create the status line to display as much information as we can -- 2.17.2