This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]