This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix the s/BIG_ENDIAN/BFD_ENDIAN_BIG/ that I missed


Sigh,

After all that checking one still snuck through.  This fixes it.  (and I 
was even testing on PPC).

Andrew
2002-01-05  Andrew Cagney  <ac131313@redhat.com>

	* rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
	with BFD_ENDIAN_BIG.

Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.34
diff -p -r1.34 rs6000-tdep.c
*** rs6000-tdep.c	2002/01/05 04:30:19	1.34
--- rs6000-tdep.c	2002/01/06 04:41:48
*************** rs6000_do_registers_info (int regnum, in
*** 1774,1780 ****
            printf_filtered ("\t(raw 0x");
            for (j = 0; j < REGISTER_RAW_SIZE (i); j++)
              {
!               register int idx = TARGET_BYTE_ORDER == BIG_ENDIAN ? j
  		: REGISTER_RAW_SIZE (i) - 1 - j;
                printf_filtered ("%02x", (unsigned char) raw_buffer[idx]);
              }
--- 1774,1780 ----
            printf_filtered ("\t(raw 0x");
            for (j = 0; j < REGISTER_RAW_SIZE (i); j++)
              {
!               register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
  		: REGISTER_RAW_SIZE (i) - 1 - j;
                printf_filtered ("%02x", (unsigned char) raw_buffer[idx]);
              }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]