#include "defs.h"
#include "inferior.h"
#include "target.h"
-#include "nm.h"
#include <signal.h>
#include <sys/ptrace.h>
if (wanna_store & FP_REGS)
{
if (!register_valid[FP0_REGNUM+9]) abort();
+ /* Initialize inferior_fp_registers members that gdb doesn't set
+ by reading them from the inferior. */
+ if (0 !=
+ ptrace (PTRACE_GETFPREGS, inferior_pid,
+ (PTRACE_ARG3_TYPE) &inferior_fp_registers, 0))
+ perror("ptrace_getfpregs");
memcpy (&inferior_fp_registers, ®isters[REGISTER_BYTE (FP0_REGNUM)],
sizeof inferior_fp_registers.fpu_fr);