From: Michael Snyder <msnyder@vmware.com>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: New ARI regression Fri Oct 23 01:57:01 UTC 2009
Date: Fri, 23 Oct 2009 16:07:00 -0000 [thread overview]
Message-ID: <4AE1D314.4030601@vmware.com> (raw)
In-Reply-To: <006301ca53be$eedd1b80$cc975280$@u-strasbg.fr>
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
Pierre Muller wrote:
> Is there a valid reason to use LITTLE_ENDIAN rather than
> BFD_LITTLE_ENDIAN as required by the ARI rule:
>
> LITTLE ENDIAN 3 Do not use LITTLE_ENDIAN, instead use
> BFD_ENDIAN_LITTLE
> See:
> http://sourceware.org/gdb/current/ari/
>
> Pierre Muller
> as ARI "maintainer"
Thanks Pierre. Checked in as obvious.
So let it be written -- so let it be done.
[-- Attachment #2: little.txt --]
[-- Type: text/plain, Size: 1169 bytes --]
2009-10-23 Michael Snyder <msnyder@vmware.com>
* record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN.
(netorder32): Ditto.
(netorder16): Ditto.
Index: record.c
===================================================================
RCS file: /cvs/src/src/gdb/record.c,v
retrieving revision 1.30
diff -u -p -r1.30 record.c
--- record.c 22 Oct 2009 19:36:06 -0000 1.30
+++ record.c 23 Oct 2009 16:05:47 -0000
@@ -1955,7 +1955,7 @@ bfdcore_read (bfd *obfd, asection *osec,
static inline uint64_t
netorder64 (uint64_t fromfile)
{
- return (BYTE_ORDER == LITTLE_ENDIAN)
+ return (BYTE_ORDER == BFD_ENDIAN_LITTLE)
? bswap_64 (fromfile)
: fromfile;
}
@@ -1963,7 +1963,7 @@ netorder64 (uint64_t fromfile)
static inline uint32_t
netorder32 (uint32_t fromfile)
{
- return (BYTE_ORDER == LITTLE_ENDIAN)
+ return (BYTE_ORDER == BFD_ENDIAN_LITTLE)
? bswap_32 (fromfile)
: fromfile;
}
@@ -1971,7 +1971,7 @@ netorder32 (uint32_t fromfile)
static inline uint16_t
netorder16 (uint16_t fromfile)
{
- return (BYTE_ORDER == LITTLE_ENDIAN)
+ return (BYTE_ORDER == BFD_ENDIAN_LITTLE)
? bswap_16 (fromfile)
: fromfile;
}
next prev parent reply other threads:[~2009-10-23 16:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20091023015701.GA26378@sourceware.org>
2009-10-23 8:58 ` Pierre Muller
2009-10-23 16:07 ` Michael Snyder [this message]
2009-10-23 16:51 ` Pedro Alves
2009-10-23 17:19 ` Michael Snyder
2009-10-23 18:49 ` Pedro Alves
2009-10-23 22:37 ` Michael Snyder
2009-10-23 22:58 ` Pedro Alves
2009-10-23 23:42 ` Michael Snyder
2009-10-24 3:33 ` Hui Zhu
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=4AE1D314.4030601@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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