From: Mark Alexander Date: Wed, 3 Jun 1998 02:08:06 +0000 (+0000) Subject: * sparc-tdep.c (sparc_target_architecture_hook): Set target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cda8a2bb4f6077730e8b507a98e84a0162736c4e;p=binutils-gdb.git * sparc-tdep.c (sparc_target_architecture_hook): Set target byte order only when it's selectable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7732d463d8..b2e64b2eb7a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 2 19:05:04 1998 Mark Alexander + + * 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 * sparc-tdep.c (sparc_target_architecture_hook): New function to diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 25d92cf5d4d..2ea0c1b3da5 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; }