aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-12 21:42:05 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-12 21:42:23 -0400
commitc2508e905f956c5a5e0d2a7fff58b4c746180237 (patch)
tree31a2a35c6afeb25b60dddcbc94716cc1165d218e /gdb/i386-linux-tdep.c
parentFT32: support for FT32B processor - part 1 (diff)
downloadbinutils-gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.tar.gz
binutils-gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.tar.bz2
binutils-gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.zip
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/i386-linux-tdep.c')
-rw-r--r--gdb/i386-linux-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 87a9598f8af..8cec6753f06 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -803,13 +803,13 @@ i386_linux_displaced_step_copy_insn (struct gdbarch *gdbarch,
struct regcache *regs)
{
struct displaced_step_closure *closure;
-
+
closure = i386_displaced_step_copy_insn (gdbarch, from, to, regs);
if (i386_linux_get_syscall_number_from_regcache (regs) != -1)
{
- /* Since we use simple_displaced_step_copy_insn, our closure is a
- copy of the instruction. */
+ /* The closure returned by i386_displaced_step_copy_insn is simply a
+ buffer with a copy of the instruction. */
gdb_byte *insn = (gdb_byte *) closure;
/* Fake nop. */