diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-02-16 13:47:17 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-02-16 13:47:17 +0000 |
commit | 553cb5270f28725de86636340574644e45318fe1 (patch) | |
tree | b94ccd30b826b8a2d3aaf0d52fcc6862df2bd136 /gdb/arm-linux-tdep.c | |
parent | 9406ee731d01bb34ee25280eec18167244ac6e2d (diff) | |
download | gdb-553cb5270f28725de86636340574644e45318fe1.zip gdb-553cb5270f28725de86636340574644e45318fe1.tar.gz gdb-553cb5270f28725de86636340574644e45318fe1.tar.bz2 |
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.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r-- | gdb/arm-linux-tdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index e416e28..46d54bc 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -266,8 +266,7 @@ static const gdb_byte arm_linux_thumb2_le_breakpoint[] = { 0xf0, 0xf7, 0x00, 0xa #define ARM_RT_SIGRETURN 173 static CORE_ADDR - arm_linux_get_next_pcs_syscall_next_pc (struct arm_get_next_pcs *self, - CORE_ADDR pc); + arm_linux_get_next_pcs_syscall_next_pc (struct arm_get_next_pcs *self); /* Operation function pointers for get_next_pcs. */ static struct arm_get_next_pcs_ops arm_linux_get_next_pcs_ops = { @@ -872,10 +871,10 @@ arm_linux_get_syscall_number (struct gdbarch *gdbarch, } static CORE_ADDR -arm_linux_get_next_pcs_syscall_next_pc (struct arm_get_next_pcs *self, - CORE_ADDR pc) +arm_linux_get_next_pcs_syscall_next_pc (struct arm_get_next_pcs *self) { CORE_ADDR next_pc = 0; + CORE_ADDR pc = regcache_read_pc (self->regcache); int is_thumb = arm_is_thumb (self->regcache); ULONGEST svc_number = 0; struct gdbarch *gdbarch = get_regcache_arch (self->regcache); |