From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE
Date: Sun, 20 Jan 2002 11:18:00 -0000 [thread overview]
Message-ID: <3C4B181C.4070801@cygnus.com> (raw)
In-Reply-To: <20020120140537.A24675@nevyn.them.org>
> Nope! I'm about to delete TARGET_BYTE_ORDER_DEFAULT.
>>
>> There is this really nasty bit of code in arch-utils.c that roots around
>> the internals of BFD and uses that to determine the initial architecture
>> and byte-order. Doing this ensures that GDB's behavour is better
>> aligned with that of BINUTILS.
>> See arch-utils.c:initialize_current_architecture().
>>
>> If GDB initializes its self to the wrong byte-order then there is likely
>> a bug in BFD.
>
>
> Oh, I see. I -think- this will work correctly for my targets; I'll
> check after you do it.
BTW, the MIPS has been using this since:
Wed Jun 7 18:27:51 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Use config.bfd
to determine the default architecture / target.
* acconfig (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Add.
* configure, config.in: Regenerate.
* arch-utils.c (set_endian): Better separate multi-arch and non-
multi-arch cases.
(set_endian_from_file): Call internal_error when multi-arch.
(initialize_current_architecture): Rewrite logic selecting a byte
order. Use DEFAULT_BFD_ARCH DEFAULT_BFD_VEC.
(version.h): Include.
* config/mips/tm-mips.h, config/mips/tm-bigmips64.h,
config/mips/tm-bigmips.h: Delete definition of
TARGET_BYTE_ORDER_DEFAULT.
Andrew
next prev parent reply other threads:[~2002-01-20 19:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-18 21:59 Andrew Cagney
2002-01-19 6:47 ` Daniel Jacobowitz
2002-01-19 8:06 ` Michael Snyder
2002-01-19 8:57 ` Andrew Cagney
2002-01-19 9:00 ` Daniel Jacobowitz
2002-01-20 10:33 ` Andrew Cagney
2002-01-20 10:36 ` Daniel Jacobowitz
2002-01-20 11:00 ` Andrew Cagney
2002-01-20 11:05 ` Daniel Jacobowitz
2002-01-20 11:18 ` Andrew Cagney [this message]
2002-01-20 0:30 ` Eli Zaretskii
2002-01-20 11:32 ` Andrew Cagney
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=3C4B181C.4070801@cygnus.com \
--to=ac131313@cygnus.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.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