#include "defs.h"
#include "inferior.h"
+#include "floatformat.h"
#include <stdio.h>
extern void print_387_control_word (); /* i387-tdep.h */
extern void print_387_status_word ();
-extern struct ext_format ext_format_i387;
-
#define private static
\f
&stateCnt);
if (ret != KERN_SUCCESS)
- message ("fetch_inferior_registers: %s ",
+ warning ("fetch_inferior_registers: %s ",
mach_error_string (ret));
#if 0
/* It may be more effective to store validate all of them,
if (ret != KERN_SUCCESS)
{
- message ("store_inferior_registers (get): %s",
+ warning ("store_inferior_registers (get): %s",
mach_error_string (ret));
if (must_suspend_thread)
setup_thread (current_thread, 0);
i386_THREAD_STATE_COUNT);
if (ret != KERN_SUCCESS)
- message ("store_inferior_registers (set): %s",
+ warning ("store_inferior_registers (set): %s",
mach_error_string (ret));
if (must_suspend_thread)
for (i = 9; i >= 0; i--)
printf_unfiltered ("%02x", ep->regs[fpreg][i]);
- ieee_extended_to_double (&ext_format_i387, (char *)ep->regs[fpreg],
+ floatformat_to_double (&floatformat_i387_ext, (char *)ep->regs[fpreg],
&val);
printf_unfiltered (" %g\n", val);
}
if (ret != KERN_SUCCESS)
{
- message ("Can not get live floating point state: %s",
+ warning ("Can not get live floating point state: %s",
mach_error_string (ret));
return FALSE;
}
/* Clear the target then copy thread's float state there.
Make a copy of the status word, for some reason?
*/
- bzero (fstate, sizeof(struct fpstate));
+ memset (fstate, 0, sizeof (struct fpstate));
fstate->status = fsp->exc_status;
if (!valid)
{
- message("no floating point status saved");
+ warning ("no floating point status saved");
return;
}