From patchwork Mon Jul 16 18:43:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 28421 Received: (qmail 65749 invoked by alias); 16 Jul 2018 18:43:27 -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 65733 invoked by uid 89); 16 Jul 2018 18:43:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.2 spammy=regcache, *regcache X-HELO: sessmg23.ericsson.net Received: from sessmg23.ericsson.net (HELO sessmg23.ericsson.net) (193.180.251.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Jul 2018 18:43:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1531766601; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:CC: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=iinCZsrO2043XyCHtEX9EDe/+iIlqNOuXf05fUO9cJ4=; b=KC8c4/2IpMSDpPBp+UDQWCfbXHv+1yZkQQppGnhQiaCi8LhBO8C4M7ZPC+dzB+Yp unKo3FDinyyl43q6O638zv1+YigVHvegLX/PFvNCWmPqeLOxEiU6QNsh0cloorI9 8utGGWVVjdyAyZ5iLOsAsopg1IZc71s2bfCTDoQBoTo=; Received: from ESESBMB505.ericsson.se (Unknown_Domain [153.88.183.118]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 68.11.22015.947EC4B5; Mon, 16 Jul 2018 20:43:21 +0200 (CEST) Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 16 Jul 2018 20:43:21 +0200 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Mon, 16 Jul 2018 20:43:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k1wyA7iyfj5xjprAdndYvAmQQcWFoWe+GaKUpJoRTKQ=; b=QN1klO2MuigszGeXz8nzL3rmj/eaB6O4p8VFCbvyf/SafEr4BTMBTY2ZaOsAdUSpIIP4YUF5lFxoEYJ+zqHNVOYGaQ7Ot0AhhZakFDlW/fsO5xdV/QYzf92kzXA5ZaH20mEvWx/3JYPLDbSpWfJMCfMqQBOKO18xaBBrnzcHODc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; Received: from elxacz23q12.ca.am.ericsson.se (192.75.88.130) by SN6PR15MB2397.namprd15.prod.outlook.com (2603:10b6:805:24::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.17; Mon, 16 Jul 2018 18:43:19 +0000 From: Simon Marchi To: CC: Simon Marchi Subject: [pushed] Remove unused variables in ia64*tdep.c Date: Mon, 16 Jul 2018 14:43:04 -0400 Message-Id: <1531766584-16484-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Return-Path: simon.marchi@ericsson.com Received-SPF: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) X-IsSubscribed: yes gdb/ChangeLog: * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused variable. (libunwind_frame_sniffer): Likewise. (libunwind_frame_prev_register): Likewise. (libunwind_sigtramp_frame_sniffer): Likewise. * ia64-tdep.c (ia64_access_reg): Likewise. (ia64_access_rse_reg): Likewise. (ia64_libunwind_sigtramp_frame_this_id): Likewise. * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. --- gdb/ia64-libunwind-tdep.c | 11 ++++------- gdb/ia64-tdep.c | 5 ----- gdb/ia64-vms-tdep.c | 2 -- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c index b7eef4a..f6d954a 100644 --- a/gdb/ia64-libunwind-tdep.c +++ b/gdb/ia64-libunwind-tdep.c @@ -178,7 +178,7 @@ libunwind_frame_cache (struct frame_info *this_frame, void **this_cache) struct libunwind_frame_cache *cache; struct libunwind_descr *descr; struct gdbarch *gdbarch = get_frame_arch (this_frame); - int i, ret; + int ret; if (*this_cache) return (struct libunwind_frame_cache *) *this_cache; @@ -270,7 +270,7 @@ libunwind_frame_sniffer (const struct frame_unwind *self, unw_addr_space_t as; struct libunwind_descr *descr; struct gdbarch *gdbarch = get_frame_arch (this_frame); - int i, ret; + int ret; /* To test for libunwind unwind support, initialize a cursor to the current frame and try to back up. We use this same method @@ -324,12 +324,9 @@ libunwind_frame_prev_register (struct frame_info *this_frame, { struct libunwind_frame_cache *cache = libunwind_frame_cache (this_frame, this_cache); - struct gdbarch *gdbarch = get_frame_arch (this_frame); - void *ptr; - unw_cursor_t *c; unw_save_loc_t sl; - int i, ret; + int ret; unw_word_t intval; unw_fpreg_t fpval; unw_regnum_t uw_regnum; @@ -414,7 +411,7 @@ libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self, unw_addr_space_t as; struct libunwind_descr *descr; struct gdbarch *gdbarch = get_frame_arch (this_frame); - int i, ret; + int ret; /* To test for libunwind unwind support, initialize a cursor to the current frame and try to back up. We use this same method when diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 2fab60c..c7fc3c6 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2484,8 +2484,6 @@ ia64_access_reg (unw_addr_space_t as, unw_regnum_t uw_regnum, unw_word_t *val, unw_word_t bsp, sof, cfm, psr, ip; struct frame_info *this_frame = (struct frame_info *) arg; struct gdbarch *gdbarch = get_frame_arch (this_frame); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); - long new_sof, old_sof; /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); @@ -2557,8 +2555,6 @@ ia64_access_rse_reg (unw_addr_space_t as, unw_regnum_t uw_regnum, unw_word_t bsp, sof, cfm, psr, ip; struct regcache *regcache = (struct regcache *) arg; struct gdbarch *gdbarch = regcache->arch (); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); - long new_sof, old_sof; /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); @@ -3032,7 +3028,6 @@ ia64_libunwind_sigtramp_frame_this_id (struct frame_info *this_frame, gdb_byte buf[8]; CORE_ADDR bsp; struct frame_id id = outer_frame_id; - CORE_ADDR prev_ip; libunwind_frame_this_id (this_frame, this_cache, &id); if (frame_id_eq (id, outer_frame_id)) diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c index a62a66e..07419e8 100644 --- a/gdb/ia64-vms-tdep.c +++ b/gdb/ia64-vms-tdep.c @@ -34,8 +34,6 @@ ia64_vms_find_proc_info_x (unw_addr_space_t as, unw_word_t ip, int need_unwind_info, void *arg) { enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); - unw_dyn_info_t di; - int ret; gdb_byte buf[32]; const char *annex = core_addr_to_string (ip); LONGEST res;