From 54bff650843cacd3c17a0afdb0fe32e15e1b65b0 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Wed, 22 Jan 2014 15:02:29 +0200 Subject: [PATCH] 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 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t. --- gdb/ChangeLog | 4 ++++ gdb/xtensa-tdep.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 107ed9896a7..10aaefe6a18 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-22 Baruch Siach + + * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t. + 2014-01-22 Pedro Alves * xtensa-config.c: Include defs.h. diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h index 968b9d2916b..d7ba5628e42 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 . */ -typedef unsigned long xtensa_elf_greg_t; +typedef uint32_t xtensa_elf_greg_t; typedef struct {