From b4792091ca60bd865064a501d50661f522e26636 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 16 Jul 2018 14:27:50 -0400 Subject: [PATCH] Remove unused variables in ia64*tdep.c 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 b7eef4ac644..f6d954abdca 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 2fab60c1d01..c7fc3c6f167 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 a62a66eb180..07419e86a2f 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; -- 2.39.2