This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c
- From: Ricard Wanderlof <ricard dot wanderlof at axis dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 6 Sep 2013 10:17:31 +0200
- Subject: Re: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 00 dot 1309031616250 dot 10770 at lnxricardw dot se dot axis dot com> <5225F6B0 dot 3020208 at redhat dot com>
On Tue, 3 Sep 2013, Pedro Alves wrote:
On 09/03/2013 03:17 PM, Ricard Wanderlof wrote:
2013-09-03 Ricard Wanderlof <ricardw@axis.com>
* cris-tdep.c: Use host independent typedef for elf_greg_t.
Write, e.g.:
* cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4].
OK with that change.
Comitted now.
/Ricard
Trivial patch to remove dependency on host unsigned long type
from cris-tdep.c.
2013-09-06 Ricard Wanderlof <ricardw@axis.com>
* cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 03041e4..80ab1b8 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3820,7 +3820,7 @@ cris_delayed_get_disassembler (bfd_vma addr, struct disassemble_info *info)
}
/* Copied from <asm/elf.h>. */
-typedef unsigned long elf_greg_t;
+typedef unsigned char elf_greg_t[4];
/* Same as user_regs_struct struct in <asm/user.h>. */
#define CRISV10_ELF_NGREG 35
--
Ricard Wolf WanderlÃf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30