aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-tdep.c
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
parent3b4b0a629a972bf80fc0ac6202f89681fab1df37 (diff)
downloadfsf-binutils-gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.zip
fsf-binutils-gdb-c2508e905f956c5a5e0d2a7fff58b4c746180237.tar.gz
fsf-binutils-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/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 87a9598..8cec675 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. */