public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb: xtensa: fix on 64 bit hosts
@ 2014-01-16 13:03 Baruch Siach
  2014-01-16 16:50 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2014-01-16 13:03 UTC (permalink / raw)
  To: gdb-patches; +Cc: Baruch Siach

On 64 bit hosts unsigned long is 64 bit. Use uint32_t instead.

	* xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t
---
 gdb/xtensa-tdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index 968b9d2916b7..d7ba5628e42a 100644
--- a/gdb/xtensa-tdep.h
+++ b/gdb/xtensa-tdep.h
@@ -84,7 +84,7 @@ typedef enum
 /* Xtensa ELF core file register set representation ('.reg' section).
    Copied from target-side ELF header <xtensa/elf.h>.  */
 
-typedef unsigned long xtensa_elf_greg_t;
+typedef uint32_t xtensa_elf_greg_t;
 
 typedef struct
 {
-- 
1.8.5.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-22 12:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16 13:03 [PATCH] gdb: xtensa: fix on 64 bit hosts Baruch Siach
2014-01-16 16:50 ` Pedro Alves
2014-01-22  4:48   ` Baruch Siach
2014-01-22 12:16     ` xtensa-config.c: missing defs.h include Pedro Alves

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).