Failure to fetch FP registers from the thread debugging library isn't

necessairly a problem; the thread may in fact have no FP state.
This commit is contained in:
nathanw 2004-05-27 19:15:10 +00:00
parent 04562cac02
commit 411bc3c814
1 changed files with 2 additions and 4 deletions

View File

@ -300,11 +300,9 @@ nbsd_thread_fetch_registers (int regno)
if ((val = td_thr_getregs (thread, 0, &gregs)) != 0)
error ("nbsd_thread_fetch_registers: td_thr_getregs: %s\n",
td_err_string (val));
if ((val = td_thr_getregs (thread, 1, &fpregs)) != 0)
error ("nbsd_thread_fetch_registers: td_thr_getregs: %s\n",
td_err_string (val));
supply_gregset (&gregs);
supply_fpregset (&fpregs);
if ((val = td_thr_getregs (thread, 1, &fpregs)) == 0)
supply_fpregset (&fpregs);
}
else
{