diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-22 23:23:11 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-22 23:23:11 -0400 |
commit | cf4088a92f240b01e6db8f39a5a3abfa918f6f2c (patch) | |
tree | ce5b4e2027626f31d0007da344a7c7344ea1f531 /gdb/gdbserver | |
parent | 6018c5acdf8b33b8f816de4757045379485f6ad6 (diff) | |
download | gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.zip gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.tar.gz gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/linux-mips-low.c | 2 |
2 files changed, 6 insertions, 2 deletions
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 <simon.marchi@polymtl.ca> + + * linux-mips-low.c (mips_collect_ptrace_register): Remove unused + variable. + (mips_supply_ptrace_register): Likewise. + 2018-07-22 Tom Tromey <tom@tromey.com> * 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) |