aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-26 20:13:18 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-26 20:13:18 +0000
commitb6d373df1e5729606ff51f3947dd636eab6738b6 (patch)
tree4d83417c0f10a898bcd98764e03cce86189447b1 /gdb/remote-sim.c
parentc74d0ad8276928d58b080ecd50eb5026aac49c5d (diff)
downloadfsf-binutils-gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.zip
fsf-binutils-gdb-b6d373df1e5729606ff51f3947dd636eab6738b6.tar.gz
fsf-binutils-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/remote-sim.c')
-rw-r--r--gdb/remote-sim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index b499066..4ec63d5 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -504,9 +504,9 @@ gdbsim_open (char *args, int from_tty)
+ 50) /* slack */ ;
arg_buf = (char *) alloca (len);
strcpy (arg_buf, "gdbsim"); /* 7 */
- /* Specify the byte order for the target when it is both selectable
- and explicitly specified by the user (not auto detected). */
- switch (TARGET_BYTE_ORDER)
+ /* Specify the byte order for the target when it is explicitly
+ specified by the user (not auto detected). */
+ switch (selected_byte_order ())
{
case BFD_ENDIAN_BIG:
strcat (arg_buf, " -E big");