diff options
author | qiyao <qiyao> | 2011-04-07 04:18:01 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2011-04-07 04:18:01 +0000 |
commit | fbee4dd1eb1663acd1bd6a56c917e9cfa77dd0de (patch) | |
tree | a924190bb2372d8349e4030b7f71b508923de3f4 /gdb/arm-linux-tdep.c | |
parent | f1b05c63d7ffe339a325c5d68902bad9c5f8397a (diff) | |
download | gdb-fbee4dd1eb1663acd1bd6a56c917e9cfa77dd0de.tar.gz |
2011-04-07 Yao Qi <yao@codesourcery.com>
* arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
and TO.
* arm-tdep.c (cleanup_svc): Handle variable instruction size.
(arm_copy_svc): Remove parameters INSN and TO.
(decode_svc_copro): Update caller.
* arm-tdep.h (struct displaced_step_closure): Remove parameters
from function pointer `copy_svc_os'.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r-- | gdb/arm-linux-tdep.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 9db125eecfb..b7ff5ecdb46 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -795,8 +795,8 @@ arm_linux_cleanup_svc (struct gdbarch *gdbarch, } static int -arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to, - struct regcache *regs, struct displaced_step_closure *dsc) +arm_linux_copy_svc (struct gdbarch *gdbarch, struct regcache *regs, + struct displaced_step_closure *dsc) { CORE_ADDR return_to = 0; @@ -805,10 +805,6 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to, int is_sigreturn = 0; int is_thumb; - if (debug_displaced) - fprintf_unfiltered (gdb_stdlog, "displaced: copying Linux svc insn %.8lx\n", - (unsigned long) insn); - frame = get_current_frame (); is_sigreturn = arm_linux_sigreturn_return_addr(frame, svc_number, @@ -862,7 +858,6 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to, Cleanup: if pc lands in scratch space, pc <- insn_addr + 4 else leave pc alone. */ - dsc->modinsn[0] = insn; dsc->cleanup = &arm_linux_cleanup_svc; /* Pretend we wrote to the PC, so cleanup doesn't set PC to the next |