GNU Binutils with patches for OS216
修訂 | 9c3f22346dd632201807c0718d5281ed1eea329f (tree) |
---|---|
時間 | 2016-03-19 00:01:47 |
作者 | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
2 | 2 | |
3 | + * sparc-tdep.c (sparc_software_single_step): Make it static. | |
4 | + * sparc-tdep.h (sparc_software_single_step): Remove declaration. | |
5 | + | |
6 | +2016-03-18 Yao Qi <yao.qi@linaro.org> | |
7 | + | |
3 | 8 | * spu-tdep.c (spu_software_single_step): Throw error when |
4 | 9 | target_read_memory fails. |
5 | 10 |
@@ -1605,7 +1605,7 @@ sparc_step_trap (struct frame_info *frame, unsigned long insn) | ||
1605 | 1605 | return 0; |
1606 | 1606 | } |
1607 | 1607 | |
1608 | -int | |
1608 | +static int | |
1609 | 1609 | sparc_software_single_step (struct frame_info *frame) |
1610 | 1610 | { |
1611 | 1611 | struct gdbarch *arch = get_frame_arch (frame); |
@@ -198,8 +198,6 @@ extern int | ||
198 | 198 | |
199 | 199 | |
200 | 200 | |
201 | -extern int sparc_software_single_step (struct frame_info *frame); | |
202 | - | |
203 | 201 | extern void sparc_supply_rwindow (struct regcache *regcache, |
204 | 202 | CORE_ADDR sp, int regnum); |
205 | 203 | extern void sparc_collect_rwindow (const struct regcache *regcache, |