This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE


On Sun, Jan 20, 2002 at 01:33:29PM -0500, Andrew Cagney wrote:
> >
> >Woah!  That's neat!  I need to remember that :)
> >
> >And I suppose I of all people shouldn't be griping about allowing more
> >endianness choices.  I have a patch here to support big-endian
> >ARM/Linux.  All I did was change TARGET_BYTE_ORDER_*.
> 
> 
> Delete it :-)  As Michael observed, if the code is written correctly it 
> works from day one.  (Problem is it has taken ~10 years to figure out 
> how to correctly write the code :-)

Well, I need to set TARGET_BYTE_ORDER_DEFAULT.  If you start a cross
debugger without giving it a binary, and attach to a random remote
target, then we need to default to the right one.  Other than that
everything is fine, though!

> Oh, if you think that is neat, just wait until someone adds byte-order 
> information to ``struct type''.  As it is, gdb knows about the byte 
> order of certain floating-point types. :-)

And GCC keeps talking about supporting data types with arbitrary byte
order... :)

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]