You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "defs.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
-#include <string.h>
+#include "gdb_string.h"
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
PTRACE_SETFPREGS);
}
}
-
-/* Convert from an extended float to a double.
- The extended float is stored as raw data pointed to by FROM.
- Return the converted value as raw data in the double pointed to by TO. */
-
-void
-vx_convert_to_virtual (regno, from, to)
- int regno;
- char *from;
- char *to;
-{
- if (REGISTER_CONVERTIBLE (regno))
- {
- if (target_has_fp)
- ieee_extended_to_double (&ext_format_sparc, from, to);
- else
- bzero (to, sizeof (double));
- }
- else
- bcopy (from, to, REGISTER_VIRTUAL_SIZE (regno));
-}
-
-/* The converse: convert from a double to an extended float.
- The double is stored as raw data pointed to by FROM.
- Return the converted value as raw data in the extended
- float pointed to by TO. */
-
-void
-vx_convert_from_virtual (regno, from, to)
- int regno;
- char *from;
- char *to;
-{
- if (REGISTER_CONVERTIBLE (regno))
- {
- if (target_has_fp)
- double_to_ieee_extended (&ext_format_sparc, from, to);
- else
- bzero (to, REGISTER_RAW_SIZE (FP0_REGNUM));
- }
- else
- bcopy (from, to, REGISTER_VIRTUAL_SIZE (regno));
-}