aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-arm-low.c
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-05-05 09:00:56 +0100
committerYao Qi <yao.qi@linaro.org>2016-05-05 09:00:56 +0100
commitcf2ebb6e0958c9193c7c65620cd7a8b990d8b316 (patch)
treeadefb0846f2f0b5a749c398ad3dd4e1102931d43 /gdb/gdbserver/linux-arm-low.c
parentd4758f96f74225319f8cc9412acd72c228a187b9 (diff)
downloadgdb-cf2ebb6e0958c9193c7c65620cd7a8b990d8b316.zip
gdb-cf2ebb6e0958c9193c7c65620cd7a8b990d8b316.tar.gz
gdb-cf2ebb6e0958c9193c7c65620cd7a8b990d8b316.tar.bz2
Change type of cpsr in arm_sigreturn_next_pc
Variable cpsr holds the value of cpsr register, which is 32-bit. It is better to explicitly use uint32_t. gdb/gdbserver: 2016-05-05 Yao Qi <yao.qi@linaro.org> * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr to uint32_t.
Diffstat (limited to 'gdb/gdbserver/linux-arm-low.c')
-rw-r--r--gdb/gdbserver/linux-arm-low.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c
index 57826f1..952ec26 100644
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdb/gdbserver/linux-arm-low.c
@@ -763,7 +763,7 @@ arm_sigreturn_next_pc (struct regcache *regcache, int svc_number,
/* Offset of PC register. */
int pc_offset = 0;
CORE_ADDR next_pc = 0;
- CORE_ADDR cpsr;
+ uint32_t cpsr;
gdb_assert (svc_number == __NR_sigreturn || svc_number == __NR_rt_sigreturn);