2003-11-21 Andrew Cagney * remote-rdp.c (rdp_init): Warn the user when there is a conflict between GDB's and the target's byte-order. Index: remote-rdp.c =================================================================== RCS file: /cvs/src/src/gdb/remote-rdp.c,v retrieving revision 1.34 diff -u -r1.34 remote-rdp.c --- remote-rdp.c 11 Jun 2003 13:16:28 -0000 1.34 +++ remote-rdp.c 21 Nov 2003 18:00:53 -0000 @@ -352,11 +352,17 @@ case SERIAL_TIMEOUT: break; case RDP_RES_VALUE_LITTLE_ENDIAN: - target_byte_order = BFD_ENDIAN_LITTLE; + if (TARGET_BYTE_ORDER != BFD_ENDIAN_LITTLE) + warning ("\ +little-endian remote target conflicts with GDB's current (big-endian) byte order,\n\ +see \"set endian\" for how to set the byte order"); sync = 1; break; case RDP_RES_VALUE_BIG_ENDIAN: - target_byte_order = BFD_ENDIAN_BIG; + if (TARGET_BYTE_ORDER != BFD_ENDIAN_BIG) + warning ("\ +big-endian remote target conflicts with GDB's current (little-endian) byte order,\n\ +see \"set endian\" how to set the byte order"); sync = 1; break; default: