From cf4088a92f240b01e6db8f39a5a3abfa918f6f2c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 22 Jul 2018 23:23:11 -0400 Subject: Remove some unused variables Found using the newly-enabled -Wunused-variable. gdb/ChangeLog: * aarch64-linux-nat.c (aarch64_linux_nat_target::stopped_data_address): Remove unused variable. * arm-linux-nat.c (fetch_regs): Likewise. (store_regs): Likewise. (fetch_vfp_regs): Likewise. (store_vfp_regs): Likewise. (arm_linux_nat_target::insert_hw_breakpoint): Likewise. (arm_linux_nat_target::remove_hw_breakpoint): Likewise. (arm_linux_nat_target::insert_watchpoint): Likewise. (arm_linux_nat_target::remove_watchpoint): Likewise. * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): Likewise. * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): Likewise. * ppc-linux-nat.c (fetch_register): Likewise. (fetch_all_gp_regs): Likewise. (fetch_ppc_registers): Likewise. (store_all_gp_regs): Likewise. (store_ppc_registers): Likewise. (hwdebug_insert_point): Likewise. (can_use_watchpoint_cond_accel): Likewise. * remote-sim.c (gdb_os_write_stdout): Likewise. gdb/gdbserver/ChangeLog: * linux-mips-low.c (mips_collect_ptrace_register): Remove unused variable. (mips_supply_ptrace_register): Likewise. --- gdb/gdbserver/ChangeLog | 6 ++++++ gdb/gdbserver/linux-mips-low.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/gdbserver') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 23369e4..66fc16c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2018-07-22 Simon Marchi + + * linux-mips-low.c (mips_collect_ptrace_register): Remove unused + variable. + (mips_supply_ptrace_register): Likewise. + 2018-07-22 Tom Tromey * configure: Rebuild. diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c index 2194af6..393488a 100644 --- a/gdb/gdbserver/linux-mips-low.c +++ b/gdb/gdbserver/linux-mips-low.c @@ -852,7 +852,6 @@ static void mips_collect_ptrace_register (struct regcache *regcache, int regno, char *buf) { - const struct target_desc *tdesc = current_process ()->tdesc; int use_64bit = sizeof (PTRACE_XFER_TYPE) == 8; if (use_64bit && register_size (regcache->tdesc, regno) == 4) @@ -872,7 +871,6 @@ static void mips_supply_ptrace_register (struct regcache *regcache, int regno, const char *buf) { - const struct target_desc *tdesc = current_process ()->tdesc; int use_64bit = sizeof (PTRACE_XFER_TYPE) == 8; if (use_64bit && register_size (regcache->tdesc, regno) == 4) -- cgit v1.1