[OBV] Make sparc_software_single_step static
Commit Message
sparc_software_single_step is not used out of sparc-tdep.c, so this
patch makes it static.
It is obvious. I'll push it in.
gdb:
2016-03-18 Yao Qi <yao.qi@linaro.org>
* sparc-tdep.c (sparc_software_single_step): Make it static.
* sparc-tdep.h (sparc_software_single_step): Remove declaration.
---
gdb/ChangeLog | 5 +++++
gdb/sparc-tdep.c | 2 +-
gdb/sparc-tdep.h | 2 --
3 files changed, 6 insertions(+), 3 deletions(-)
@@ -1,5 +1,10 @@
2016-03-18 Yao Qi <yao.qi@linaro.org>
+ * sparc-tdep.c (sparc_software_single_step): Make it static.
+ * sparc-tdep.h (sparc_software_single_step): Remove declaration.
+
+2016-03-18 Yao Qi <yao.qi@linaro.org>
+
* spu-tdep.c (spu_software_single_step): Throw error when
target_read_memory fails.
@@ -1605,7 +1605,7 @@ sparc_step_trap (struct frame_info *frame, unsigned long insn)
return 0;
}
-int
+static int
sparc_software_single_step (struct frame_info *frame)
{
struct gdbarch *arch = get_frame_arch (frame);
@@ -198,8 +198,6 @@ extern int
-extern int sparc_software_single_step (struct frame_info *frame);
-
extern void sparc_supply_rwindow (struct regcache *regcache,
CORE_ADDR sp, int regnum);
extern void sparc_collect_rwindow (const struct regcache *regcache,