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 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


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