#include "defs.h"
#include "inferior.h"
+#include "floatformat.h"
#include <stdio.h>
&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)
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;
}