diff options
author | Yao Qi <yao@codesourcery.com> | 2011-02-18 05:01:54 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-02-18 05:01:54 +0000 |
commit | b434a28f71a481451dbd0719c6ca3fdf072d9407 (patch) | |
tree | 277a9f3183c6146713b1d9074f981af26bd0c13c /gdb/arm-linux-tdep.c | |
parent | 0bbd5bccf3e652fe5649c7cdb4548f5656e59dac (diff) | |
download | gdb-b434a28f71a481451dbd0719c6ca3fdf072d9407.zip gdb-b434a28f71a481451dbd0719c6ca3fdf072d9407.tar.gz gdb-b434a28f71a481451dbd0719c6ca3fdf072d9407.tar.bz2 |
2011-02-18 Yao Qi <yao@codesourcery.com>
* gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
(arm_process_displaced_insn): .. here. Remove parameter INSN.
(thumb_process_displaced_insn): New.
* gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
call to arm_process_displaced_insn.
* gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r-- | gdb/arm-linux-tdep.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 75b1a8d..ff649d6 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -913,18 +913,10 @@ arm_linux_displaced_step_copy_insn (struct gdbarch *gdbarch, } else { - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); - uint32_t insn = read_memory_unsigned_integer (from, 4, byte_order); - - if (debug_displaced) - fprintf_unfiltered (gdb_stdlog, "displaced: stepping insn %.8lx " - "at %.8lx\n", (unsigned long) insn, - (unsigned long) from); - /* Override the default handling of SVC instructions. */ dsc->u.svc.copy_svc_os = arm_linux_copy_svc; - arm_process_displaced_insn (gdbarch, insn, from, to, regs, dsc); + arm_process_displaced_insn (gdbarch, from, to, regs, dsc); } arm_displaced_init_closure (gdbarch, from, to, dsc); |