aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-01-22 15:02:29 +0200
committerPedro Alves <palves@redhat.com>2014-01-22 12:12:24 +0000
commit54bff650843cacd3c17a0afdb0fe32e15e1b65b0 (patch)
treed6bda90bc6ea40c0831ef658b68cb4a5893c1406 /gdb
parent14e361d7aa3bbd8601b0457ee8558344e444c651 (diff)
downloadgdb-54bff650843cacd3c17a0afdb0fe32e15e1b65b0.zip
gdb-54bff650843cacd3c17a0afdb0fe32e15e1b65b0.tar.gz
gdb-54bff650843cacd3c17a0afdb0fe32e15e1b65b0.tar.bz2
gdb: xtensa: fix on 64-bit hosts
On 64-bit hosts unsigned long is 64 bit. Use uint32_t instead. gdb/ 2014-01-22 Baruch Siach <baruch@tkos.co.il> * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/xtensa-tdep.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 107ed98..10aaefe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2014-01-22 Baruch Siach <baruch@tkos.co.il>
+
+ * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
+
2014-01-22 Pedro Alves <palves@redhat.com>
* xtensa-config.c: Include defs.h.
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index 968b9d2..d7ba562 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
{