From: Baruch Siach <baruch@tkos.co.il>
To: gdb-patches@sourceware.org
Cc: Baruch Siach <baruch@tkos.co.il>
Subject: [PATCH] gdb: xtensa: fix on 64 bit hosts
Date: Thu, 16 Jan 2014 13:03:00 -0000 [thread overview]
Message-ID: <db6eeeae015d93276f85b4323903afb804cb255d.1389877349.git.baruch@tkos.co.il> (raw)
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
next reply other threads:[~2014-01-16 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 13:03 Baruch Siach [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=db6eeeae015d93276f85b4323903afb804cb255d.1389877349.git.baruch@tkos.co.il \
--to=baruch@tkos.co.il \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox