This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[obvious]: sh-tdep.c: Remove calls to deprecated floating functions
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 16 Jul 2003 11:53:46 +0200
- Subject: [obvious]: sh-tdep.c: Remove calls to deprecated floating functions
- Reply-to: gdb-patches at sources dot redhat dot com
Applied as obvious:
* sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
deprecated_store_floating by call to store_typed_floating.
(sh_sh4_register_convert_to_raw): Substitute call to
deprecated_extract_floating by call to extract_typed_floating.
Corinna
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.133
diff -u -p -r1.133 sh-tdep.c
--- sh-tdep.c 9 Jul 2003 22:23:57 -0000 1.133
+++ sh-tdep.c 16 Jul 2003 09:26:25 -0000
@@ -3405,7 +3351,7 @@ sh_sh4_register_convert_to_virtual (int
{
DOUBLEST val;
floatformat_to_doublest (&floatformat_ieee_double_littlebyte_bigword, from, &val);
- deprecated_store_floating (to, TYPE_LENGTH (type), val);
+ store_typed_floating (to, type, val);
}
else
error ("sh_register_convert_to_virtual called with non DR register number");
@@ -3446,7 +3392,7 @@ sh_sh4_register_convert_to_raw (struct t
if (regnum >= tdep->DR0_REGNUM
&& regnum <= tdep->DR_LAST_REGNUM)
{
- DOUBLEST val = deprecated_extract_floating (from, TYPE_LENGTH(type));
+ DOUBLEST val = extract_typed_floating (from, type);
floatformat_from_doublest (&floatformat_ieee_double_littlebyte_bigword, &val, to);
}
else
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com