Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd)
@ 2013-09-03 14:17 Ricard Wanderlof
  2013-09-03 14:48 ` Pedro Alves
  0 siblings, 1 reply; 7+ messages in thread
From: Ricard Wanderlof @ 2013-09-03 14:17 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch file.patch --]
[-- Type: text/x-diff; name="cris-head-no-hostdep.patch", Size: 432 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-06  8:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 14:17 [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd) Ricard Wanderlof
2013-09-03 14:48 ` Pedro Alves
2013-09-03 15:10   ` Ricard Wanderlof
2013-09-03 15:50     ` Pedro Alves
2013-09-04  3:41       ` Hans-Peter Nilsson
2013-09-04  6:58         ` Ricard Wanderlof
2013-09-06  8:17   ` [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c Ricard Wanderlof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox