Remove PC from syscall_next_pc
authorYao Qi <yao.qi@linaro.org>
Tue, 16 Feb 2016 13:47:17 +0000 (13:47 +0000)
committerYao Qi <yao.qi@linaro.org>
Tue, 16 Feb 2016 13:47:17 +0000 (13:47 +0000)
commit553cb5270f28725de86636340574644e45318fe1
treeb94ccd30b826b8a2d3aaf0d52fcc6862df2bd136
parent9406ee731d01bb34ee25280eec18167244ac6e2d
Remove PC from syscall_next_pc

Method syscall_next_pc of struct arm_get_next_pcs_ops has an argument
PC, which is not necessary, because PC can be got from regcache in
'struct arm_get_next_pcs'.  This patch removes the PC argument of
syscall_next_pc.

gdb:

2016-02-16  Yao Qi  <yao.qi@linaro.org>

* arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
<syscall_next_pc>: Remove argument PC.  Callers updated.
* arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
Remove argument PC.  Get pc from regcache_read_pc.
* arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
argument PC.

gdb/gdbserver:

2016-02-16  Yao Qi  <yao.qi@linaro.org>

* linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
PC.  Get pc from regcache_read_pc.
gdb/ChangeLog
gdb/arch/arm-get-next-pcs.c
gdb/arch/arm-get-next-pcs.h
gdb/arm-linux-tdep.c
gdb/arm-tdep.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c