From: Yao Qi Date: Thu, 5 May 2016 08:00:56 +0000 (+0100) Subject: Change type of cpsr in arm_sigreturn_next_pc X-Git-Tag: users/hjl/linux/release/2.26.51.0.2~1^2~49^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf2ebb6e0958c9193c7c65620cd7a8b990d8b316;p=thirdparty%2Fbinutils-gdb.git 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 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr to uint32_t. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index b6748327fe6..70cd4b0b873 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2016-05-05 Yao Qi + + * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr + to uint32_t. + 2016-05-04 Ulrich Weigand * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c index 57826f17d76..952ec261088 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);