This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix thinko in mips-tdep.c
- From: Eric Christopher <echristo at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 10 May 2002 18:55:10 -0700
- Subject: [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);
}
-