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.
This commit is contained in:
Simon Marchi 2018-07-16 14:27:50 -04:00
parent ec74dcd894
commit b4792091ca
3 changed files with 4 additions and 14 deletions

View File

@ -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

View File

@ -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))

View File

@ -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;