Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE

Daniel Jacobowitz
2002-01-19T17:00:55Z

On Sat, Jan 19, 2002 at 11:57:10AM -0500, Andrew Cagney wrote:
>
>
> Ah, but we live in dangerous times :-)
>
> TARGET_BYTE_ORDER_SELECTABLE, TARGET_BYTE_ORDER_SELECTABLE_P and even
> TARGET_BYTE_ORDER_DEFAULT are all there just to prop up old pre-
> multi-arch targets. They are not used by a multi-arch GDB.
>
> All multi-arch architectures allow both big and little byte orders
> (regardless of what the spec says). This lets the user do things like:
>
> (gdb) print network_structure
> (gdb) set endian big
> (gdb) print network_structure

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_*.

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