This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd)
- From: Ricard Wanderlof <ricard dot wanderlof at axis dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 3 Sep 2013 16:17:02 +0200
- Subject: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd)
- Authentication-results: sourceware.org; auth=none
This patch removes a host system dependency from cris-tdep.c . The
original version of this patch has been floating around for several years
now in our local repository so it's way overdue pushing upstream. Tested
by doing a small debugging session against a remote gdbserver running on a
target system.
Patch included inline for review and as attachement for use.
Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
2013-09-03 Ricard Wanderlof <ricardw@axis.com>
* cris-tdep.c: Use host independent typedef for elf_greg_t.
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
--
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
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