aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc-tdep.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f7732d4..b2e64b2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 2 19:05:04 1998 Mark Alexander <marka@cygnus.com>
+
+ * sparc-tdep.c (sparc_target_architecture_hook): Set target
+ byte order only when it's selectable.
+
Tue Jun 2 02:01:56 1998 Mark Alexander <marka@cygnus.com>
* sparc-tdep.c (sparc_target_architecture_hook): New function to
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;
}