From patchwork Wed Feb 12 21:41:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 38009 Received: (qmail 59176 invoked by alias); 12 Feb 2020 21:41:48 -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 59164 invoked by uid 89); 12 Feb 2020 21:41:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.7 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=baton X-HELO: gateway30.websitewelcome.com Received: from gateway30.websitewelcome.com (HELO gateway30.websitewelcome.com) (50.116.127.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2020 21:41:46 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway30.websitewelcome.com (Postfix) with ESMTP id B3F549113 for ; Wed, 12 Feb 2020 15:41:44 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 1zlQj9AhhAGTX1zlQjLL1y; Wed, 12 Feb 2020 15:41:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=72wE4JAepSdgPLZyaCpQoQOgIPRa8dCY4Bb3KIII28Q=; b=yq5GxgX2iOcaTbSWXO0ig2BoCt 7EMcvh3rRNPHQvtBByDb37bkpk14v5VL7/LkXe6Uo2mrsSEsTEA6aLOO9gy0x5f59UsUd2FJBJhYH 1f02utmfCxKiM3B6i2TIaHTML; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:39424 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j1zlQ-001Fj2-CS; Wed, 12 Feb 2020 14:41:44 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Remove dwarf_expr_baton Date: Wed, 12 Feb 2020 14:41:42 -0700 Message-Id: <20200212214142.409-1-tom@tromey.com> The type dwarf_expr_baton is unused and can be removed. gdb/ChangeLog 2020-02-12 Tom Tromey * dwarf2/loc.c (struct dwarf_expr_baton): Remove. Change-Id: Id8342da31398b9b4b08f31be7c3d612e9590bbbf --- gdb/ChangeLog | 4 ++++ gdb/dwarf2/loc.c | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c index ad13e8920ff..7f27e453b30 100644 --- a/gdb/dwarf2/loc.c +++ b/gdb/dwarf2/loc.c @@ -423,15 +423,6 @@ dwarf2_find_location_expression (struct dwarf2_loclist_baton *baton, } } -/* This is the baton used when performing dwarf2 expression - evaluation. */ -struct dwarf_expr_baton -{ - struct frame_info *frame; - struct dwarf2_per_cu_data *per_cu; - CORE_ADDR obj_address; -}; - /* Implement find_frame_base_location method for LOC_BLOCK functions using DWARF expression for its DW_AT_frame_base. */