diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-12 21:42:05 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-12 21:42:23 -0400 |
commit | c2508e905f956c5a5e0d2a7fff58b4c746180237 (patch) | |
tree | 31a2a35c6afeb25b60dddcbc94716cc1165d218e /gdb/arch-utils.c | |
parent | 3b4b0a629a972bf80fc0ac6202f89681fab1df37 (diff) | |
download | gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.zip gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.tar.gz gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.tar.bz2 |
Remove simple_displaced_step_copy_insn
Nothing uses this function. Remove it, and adjust comments referring to
it.
gdb/ChangeLog:
* arch-utils.h (simple_displaced_step_copy_insn): Remove.
* arch-utils.c (simple_displaced_step_copy_insn): Remove.
* gdbarch.sh (displaced_step_copy_insn): Adjust comment.
* gdbarch.h: Regenerate.
* i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
Adjust comment.
* i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
(i386_displaced_step_fixup): Adjust comment.
* rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 02ffd6b..6bdcc01 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -39,27 +39,6 @@ #include "dis-asm.h" -struct displaced_step_closure * -simple_displaced_step_copy_insn (struct gdbarch *gdbarch, - CORE_ADDR from, CORE_ADDR to, - struct regcache *regs) -{ - size_t len = gdbarch_max_insn_length (gdbarch); - gdb_byte *buf = (gdb_byte *) xmalloc (len); - - read_memory (from, buf, len); - write_memory (to, buf, len); - - if (debug_displaced) - { - fprintf_unfiltered (gdb_stdlog, "displaced: copy %s->%s: ", - paddress (gdbarch, from), paddress (gdbarch, to)); - displaced_step_dump_bytes (gdb_stdlog, buf, len); - } - - return (struct displaced_step_closure *) buf; -} - int default_displaced_step_hw_singlestep (struct gdbarch *gdbarch, struct displaced_step_closure *closure) |