aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-03-18 15:01:47 +0000
committerYao Qi <yao.qi@linaro.org>2016-03-18 15:01:47 +0000
commit9c3f22346dd632201807c0718d5281ed1eea329f (patch)
tree4c4cc11076002610ab3ff5dcde73e4a798634e5f
parent4c0ca98e58fc409c93b41bb6c42f3e873db47725 (diff)
downloadgdb-9c3f22346dd632201807c0718d5281ed1eea329f.zip
gdb-9c3f22346dd632201807c0718d5281ed1eea329f.tar.gz
gdb-9c3f22346dd632201807c0718d5281ed1eea329f.tar.bz2
Make sparc_software_single_step static
sparc_software_single_step is not used out of sparc-tdep.c, so this patch makes it static. 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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc-tdep.c2
-rw-r--r--gdb/sparc-tdep.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c074568..c15a6be 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index b85b15f..863ef8f 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -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);
diff --git a/gdb/sparc-tdep.h b/gdb/sparc-tdep.h
index 9e951eb..6785e01 100644
--- a/gdb/sparc-tdep.h
+++ b/gdb/sparc-tdep.h
@@ -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,