Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gdb/gdb Failure to fetch FP registers from the thre...



details:   https://anonhg.NetBSD.org/src/rev/fb003d5f9e20
branches:  trunk
changeset: 567010:fb003d5f9e20
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Thu May 27 19:15:10 2004 +0000

description:
Failure to fetch FP registers from the thread debugging library isn't
necessairly a problem; the thread may in fact have no FP state.

diffstat:

 gnu/dist/gdb/gdb/nbsd-thread.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (17 lines):

diff -r 79a13fa2989b -r fb003d5f9e20 gnu/dist/gdb/gdb/nbsd-thread.c
--- a/gnu/dist/gdb/gdb/nbsd-thread.c    Thu May 27 18:41:11 2004 +0000
+++ b/gnu/dist/gdb/gdb/nbsd-thread.c    Thu May 27 19:15:10 2004 +0000
@@ -300,11 +300,9 @@
       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
     {



Home | Main Index | Thread Index | Old Index