diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-02-26 20:13:18 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-02-26 20:13:18 +0000 |
commit | b6d373df1e5729606ff51f3947dd636eab6738b6 (patch) | |
tree | 4d83417c0f10a898bcd98764e03cce86189447b1 /gdb/arch-utils.c | |
parent | c74d0ad8276928d58b080ecd50eb5026aac49c5d (diff) | |
download | gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.zip gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.tar.gz gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.tar.bz2 |
* arch-utils.c (selected_byte_order): New.
* arch-utils.h (selected_byte_order): New prototype.
* remote-sim.c (gdbsim_open): Use selected_byte_order.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 1a987f3..1ec3c37 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -287,6 +287,15 @@ static const char *endian_enum[] = }; static const char *set_endian_string; +enum bfd_endian +selected_byte_order (void) +{ + if (target_byte_order_user != BFD_ENDIAN_UNKNOWN) + return TARGET_BYTE_ORDER; + else + return BFD_ENDIAN_UNKNOWN; +} + /* Called by ``show endian''. */ static void |