Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ricard Wanderlof <ricard.wanderlof@axis.com>
To: Pedro Alves <palves@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/2][CRIS/CRISv32] Remove host system dependency in cris-tdep.c
Date: Fri, 06 Sep 2013 08:17:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1309061014400.3022@lnxricardw.se.axis.com> (raw)
In-Reply-To: <5225F6B0.3020208@redhat.com>


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


      parent reply	other threads:[~2013-09-06  8:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Ricard Wanderlof [this message]

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.1309061014400.3022@lnxricardw.se.axis.com \
    --to=ricard.wanderlof@axis.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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