From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [PATCH 1/2] arm-tdep.c: Remove unused arm_displaced_step_copy_insn
Date: Wed, 10 Feb 2016 18:19:00 -0000 [thread overview]
Message-ID: <1455128356-4483-1-git-send-email-simon.marchi@ericsson.com> (raw)
This function is never used, since it is superseded by
arm_linux_displaced_step_copy_insn.
gdb/ChangeLog:
* arm-tdep.c (arm_displaced_step_copy_insn): Remove.
* arm-tdep.h (arm_displaced_step_copy_insn): Remove.
---
gdb/arm-tdep.c | 16 ----------------
gdb/arm-tdep.h | 3 ---
2 files changed, 19 deletions(-)
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 6ac05f0..45b5a53 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -7601,22 +7601,6 @@ arm_displaced_init_closure (struct gdbarch *gdbarch, CORE_ADDR from,
paddress (gdbarch, from), paddress (gdbarch, to));
}
-/* Entry point for copying an instruction into scratch space for displaced
- stepping. */
-
-struct displaced_step_closure *
-arm_displaced_step_copy_insn (struct gdbarch *gdbarch,
- CORE_ADDR from, CORE_ADDR to,
- struct regcache *regs)
-{
- struct displaced_step_closure *dsc = XNEW (struct displaced_step_closure);
-
- arm_process_displaced_insn (gdbarch, from, to, regs, dsc);
- arm_displaced_init_closure (gdbarch, from, to, dsc);
-
- return dsc;
-}
-
/* Entry point for cleaning things up after a displaced instruction has been
single-stepped. */
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index 1306cbb..e5d13bb 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -265,9 +265,6 @@ int arm_software_single_step (struct frame_info *);
int arm_is_thumb (struct regcache *regcache);
int arm_frame_is_thumb (struct frame_info *frame);
-extern struct displaced_step_closure *
- arm_displaced_step_copy_insn (struct gdbarch *, CORE_ADDR, CORE_ADDR,
- struct regcache *);
extern void arm_displaced_step_fixup (struct gdbarch *,
struct displaced_step_closure *,
CORE_ADDR, CORE_ADDR, struct regcache *);
--
2.5.1
next reply other threads:[~2016-02-10 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-10 18:19 Simon Marchi [this message]
2016-02-10 18:19 ` [PATCH 2/2] arm-tdep.c: Remove unused variables Simon Marchi
2016-02-11 12:10 ` Yao Qi
2016-02-11 10:54 ` [PATCH 1/2] arm-tdep.c: Remove unused arm_displaced_step_copy_insn Yao Qi
2016-02-11 19:15 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455128356-4483-1-git-send-email-simon.marchi@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox