From patchwork Tue Sep 10 19:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34482 Received: (qmail 26100 invoked by alias); 10 Sep 2019 19:09:11 -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 25732 invoked by uid 89); 10 Sep 2019 19:09:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.0 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=HX-Languages-Length:1100, H*r:esmtpa, HX-Spam-Relays-External:esmtpa, H*RU:esmtpa X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Sep 2019 19:09:06 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 3BC2E1C2F64 for ; Tue, 10 Sep 2019 14:09:05 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 7lVhiV36Q4FKp7lVhiWg0i; Tue, 10 Sep 2019 14:09:05 -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=ZjSAXl+Spntpx4de5nhiR5DGBH6JtsYtZ2WF7Rh7Q3o=; b=OXdd9UEPuVrQfXhpeTDhwz9x9t hLSVkQlmsYZ59etgHQNihVWZGYDY3T/qN22iD3brYi5X3BUpzDM3ff6yebtV6/XkkooI6dqYndZ06 s52sm1lHmAr2g2aNr8lz+1/0H; Received: from 71-218-73-27.hlrn.qwest.net ([71.218.73.27]:51788 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1i7lVg-000EcZ-T6; Tue, 10 Sep 2019 14:09:05 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 13/20] Remove a call to tui_locator_win_info_ptr Date: Tue, 10 Sep 2019 13:08:50 -0600 Message-Id: <20190910190857.6562-14-tom@tromey.com> In-Reply-To: <20190910190857.6562-1-tom@tromey.com> References: <20190910190857.6562-1-tom@tromey.com> Commit e594a5d1 ("Turn two locator functions into methods") turned set_locator_fullname into a method on tui_locator_window. I missed it at the time, but this change allows for the removal of a call to tui_locator_win_info_ptr. gdb/ChangeLog 2019-09-10 Tom Tromey * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Don't call tui_locator_win_info_ptr. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-stack.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 6bfbb0e5ea6..830187995be 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -250,10 +250,8 @@ tui_locator_window::rerender () void tui_locator_window::set_locator_fullname (const char *fullname) { - struct tui_locator_window *locator = tui_locator_win_info_ptr (); - - locator->full_name[0] = 0; - strcat_to_buf (locator->full_name, MAX_LOCATOR_ELEMENT_LEN, fullname); + full_name[0] = 0; + strcat_to_buf (full_name, MAX_LOCATOR_ELEMENT_LEN, fullname); rerender (); }