aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-06-03 02:08:06 +0000
committerMark Alexander <marka@cygnus>1998-06-03 02:08:06 +0000
commitcda8a2bb4f6077730e8b507a98e84a0162736c4e (patch)
tree5bf340d6968849520ff30608f68624a7585ffc20 /gdb/sparc-tdep.c
parent5fed43aae9572d6a0e2383643795c04d4da46ef6 (diff)
downloadgdb-cda8a2bb4f6077730e8b507a98e84a0162736c4e.zip
gdb-cda8a2bb4f6077730e8b507a98e84a0162736c4e.tar.gz
gdb-cda8a2bb4f6077730e8b507a98e84a0162736c4e.tar.bz2
* sparc-tdep.c (sparc_target_architecture_hook): Set target
byte order only when it's selectable.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 25d92cf..2ea0c1b 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1872,8 +1872,10 @@ sparc_target_architecture_hook (ap)
{
int i, j;
+#ifdef TARGET_BYTE_ORDER_SELECTABLE
if (ap->mach == bfd_mach_sparc_sparclite_le)
target_byte_order = LITTLE_ENDIAN;
+#endif
return 1;
}