[RFA] mips-tdep.c: Fix printing of floats in "info all-registers"
Kevin Buettner
kevinb@redhat.com
Tue Mar 4 17:24:00 GMT 2003
When doing "info all-registers" on 64-bit mips, floating point values are
not being displayed correctly. OTOH, the output of "info float" is correct.
Thanks to Chris Demetriou for bringing this problem to my attention.
Okay?
* mips-tdep.c (do_fp_register_row): Fix typo which caused a double
type to be used when attempting to unpack a float.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.168
diff -u -p -r1.168 mips-tdep.c
--- mips-tdep.c 3 Mar 2003 20:50:19 -0000 1.168
+++ mips-tdep.c 4 Mar 2003 17:16:24 -0000
@@ -4150,7 +4150,7 @@ do_fp_register_row (int regnum)
{
/* Eight byte registers: print each one as float AND as double. */
mips_read_fp_register_single (regnum, raw_buffer);
- flt1 = unpack_double (mips_double_register_type (), raw_buffer, &inv1);
+ flt1 = unpack_double (mips_float_register_type (), raw_buffer, &inv1);
mips_read_fp_register_double (regnum, raw_buffer);
doub = unpack_double (mips_double_register_type (), raw_buffer, &inv3);
More information about the Gdb-patches
mailing list