This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE
- From: Michael Snyder <msnyder at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 19 Jan 2002 08:02:07 -0800
- Subject: Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE
- References: <3C490B0C.6090601@cygnus.com> <20020119094718.A1404@nevyn.them.org>
Daniel Jacobowitz wrote:
>
> On Sat, Jan 19, 2002 at 12:58:36AM -0500, Andrew Cagney wrote:
> > Hello,
> >
> > All multi-arch targets (yep, including the i386) allow the byte order to
> > be selected at run time. This means that the macro
> > TARGET_BYTE_ORDER_SELECTABLE which was used by non-multi-arch targets is
> > obsolete.
> >
> > The attached patch eliminates that macro. I've tested it on a
> > multi-arch target and I don't think it breaks non-multi-arch targets.
> >
> > Anyway, I intend committing this in a few days.
> > Andrew
>
> Hmm, I don't know. Do we really want to do this? This allows, for
> instance, 'set endian big' on i386. That may someday make someone
> think that GDB supports such a beast, on the off chance one is ever
> made.
There's a fairly good chance that gdb WOULD support such a
beast (on the off chance that one is ever made). If we've
done our jobs and used "extract_unsigned_integer" etc.
instead of reading things directly from memory...