* defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,
authorIan Lance Taylor <ian@airs.com>
Thu, 6 Oct 1994 16:47:32 +0000 (16:47 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 6 Oct 1994 16:47:32 +0000 (16:47 +0000)
commitb8176214a5bb9810bf6d5244815e9a49c5055dce
treef85f7b264d7a3748cde6bdf99d131edcaa13da36
parent97d3151a59022d8d76fd29100052645bd8d99c6b
* defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,
define TARGET_BYTE_ORDER as target_byte_order, and declare
target_byte_order as an extern int, and define BITS_BIG_ENDIAN as
a test of TARGET_BYTE_ORDER.
* top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is
defined:
(endianlist, target_byte_order): New variables.
(set_endian, set_endian_big, set_endian_little): New functions.
(show_endian): New function.
(init_cmd_lists): Initialize endianlist.
(init_main): Add commands ``set endian big'', ``set endian
little'', and ``show endian''.
* a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and
BITS_BIG_ENDIAN to switch at run time rather than at compile time.
* coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise.
* remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise.
* values.c: Likewise.
* mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at
run time rather than at compile time.
gdb/a29k-pinsn.c
gdb/dwarfread.c
gdb/remote-os9k.c
gdb/stabsread.c
gdb/top.c
gdb/values.c