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 thinko in mips-tdep.c


Daniel had a small thinko when writing the support for
mips_double(single)_register_type. This should fix it.

OK?

-eric

ps. I dont' think I have write after approval for gdb so someone should
check this in :)

-- 
I will not carve gods

2002-05-10  Eric Christopher  <echristo@redhat.com>

	* mips-tdep.c (mips_double_register_type): Fix thinko.
	(mips_single_register_type): Ditto.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.72
diff -u -p -w -r1.72 mips-tdep.c
--- mips-tdep.c	9 May 2002 22:26:00 -0000	1.72
+++ mips-tdep.c	11 May 2002 01:52:28 -0000
@@ -2744,7 +2744,7 @@ mips_pop_frame (void)
 static struct type *
 mips_float_register_type (void)
 {
-  if (TARGET_BYTE_ORDER == BFD_BIG_ENDIAN)
+  if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
     return builtin_type_ieee_single_big;
   else
     return builtin_type_ieee_single_little;
@@ -2753,7 +2753,7 @@ mips_float_register_type (void)
 static struct type *
 mips_double_register_type (void)
 {
-  if (TARGET_BYTE_ORDER == BFD_BIG_ENDIAN)
+  if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
     return builtin_type_ieee_double_big;
   else
     return builtin_type_ieee_double_little;
@@ -4979,4 +4979,3 @@ that would transfer 32 bits for some reg
 When non-zero, mips specific debugging is enabled.", &setdebuglist),
 		     &showdebuglist);
 }
-


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