From: Ricard Wanderlof <ricard.wanderlof@axis.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c (fwd)
Date: Tue, 03 Sep 2013 14:17:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.00.1309031616250.10770@lnxricardw.se.axis.com> (raw)
[-- 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
next reply other threads:[~2013-09-03 14:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 14:17 Ricard Wanderlof [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.00.1309031616250.10770@lnxricardw.se.axis.com \
--to=ricard.wanderlof@axis.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox