This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] arm-tdep.c: Remove unused "to" parameters


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1254566561957d2202d61e12881b0eb40d33a64c

commit 1254566561957d2202d61e12881b0eb40d33a64c
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Tue Feb 23 13:21:10 2016 -0500

    arm-tdep.c: Remove unused "to" parameters
    
    gdb/ChangeLog:
    
    	* arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
    	(thumb_process_displaced_insn): Likewise.
    	(arm_process_displaced_insn): Adjust calls.

Diff:
---
 gdb/ChangeLog  | 6 ++++++
 gdb/arm-tdep.c | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 347173b..650b7bb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
+
+	* arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
+	(thumb_process_displaced_insn): Likewise.
+	(arm_process_displaced_insn): Adjust calls.
+
 2016-02-23  Yao Qi  <yao.qi@linaro.org>
 
 	* aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 1a3a209..17f6fc6 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -6741,7 +6741,7 @@ thumb2_decode_ext_reg_ld_st (struct gdbarch *gdbarch, uint16_t insn1,
 }
 
 static int
-arm_decode_svc_copro (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
+arm_decode_svc_copro (struct gdbarch *gdbarch, uint32_t insn,
 		      struct regcache *regs, struct displaced_step_closure *dsc)
 {
   unsigned int op1 = bits (insn, 20, 25);
@@ -7446,7 +7446,7 @@ thumb_process_displaced_32bit_insn (struct gdbarch *gdbarch, uint16_t insn1,
 
 static void
 thumb_process_displaced_insn (struct gdbarch *gdbarch, CORE_ADDR from,
-			      CORE_ADDR to, struct regcache *regs,
+			      struct regcache *regs,
 			      struct displaced_step_closure *dsc)
 {
   enum bfd_endian byte_order_for_code = gdbarch_byte_order_for_code (gdbarch);
@@ -7487,7 +7487,7 @@ arm_process_displaced_insn (struct gdbarch *gdbarch, CORE_ADDR from,
   dsc->wrote_to_pc = 0;
 
   if (!displaced_in_arm_mode (regs))
-    return thumb_process_displaced_insn (gdbarch, from, to, regs, dsc);
+    return thumb_process_displaced_insn (gdbarch, from, regs, dsc);
 
   dsc->is_thumb = 0;
   dsc->insn_size = 4;
@@ -7518,7 +7518,7 @@ arm_process_displaced_insn (struct gdbarch *gdbarch, CORE_ADDR from,
       break;
 
     case 0xc: case 0xd: case 0xe: case 0xf:
-      err = arm_decode_svc_copro (gdbarch, insn, to, regs, dsc);
+      err = arm_decode_svc_copro (gdbarch, insn, regs, dsc);
       break;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]