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 2013-09-03 Ricard Wanderlof * 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 . */ -typedef unsigned long elf_greg_t; +typedef unsigned char elf_greg_t[4]; /* Same as user_regs_struct struct in . */ #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