public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Change type of cpsr in arm_sigreturn_next_pc
@ 2016-05-05  8:02 Yao Qi
  0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2016-05-05  8:02 UTC (permalink / raw)
  To: gdb-patches

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.
---
 gdb/gdbserver/ChangeLog       | 5 +++++
 gdb/gdbserver/linux-arm-low.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index b674832..70cd4b0 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-05  Yao Qi  <yao.qi@linaro.org>
+
+	* linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
+	to uint32_t.
+
 2016-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
 
 	* 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 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);
 
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-05  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05  8:02 [pushed] Change type of cpsr in arm_sigreturn_next_pc Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).