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 Use gregset_t/fpregset_t since that's what ...



details:   https://anonhg.NetBSD.org/src/rev/a560a30e5a62
branches:  trunk
changeset: 554134:a560a30e5a62
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Oct 25 18:25:42 2003 +0000

description:
Use gregset_t/fpregset_t since that's what is really wanted.

diffstat:

 gnu/dist/gdb/gdb/nbsd-thread.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (64 lines):

diff -r 9e89c1de6f4e -r a560a30e5a62 gnu/dist/gdb/gdb/nbsd-thread.c
--- a/gnu/dist/gdb/gdb/nbsd-thread.c    Sat Oct 25 18:24:58 2003 +0000
+++ b/gnu/dist/gdb/gdb/nbsd-thread.c    Sat Oct 25 18:25:42 2003 +0000
@@ -285,8 +285,8 @@
 nbsd_thread_fetch_registers (int regno)
 {
   td_thread_t *thread;
-  struct reg gregs;
-  struct fpreg fpregs;
+  gregset_t gregs;
+  fpregset_t fpregs;
   int val;
   struct cleanup *old_chain;
 
@@ -325,8 +325,8 @@
 nbsd_thread_store_registers (int regno)
 {
   td_thread_t *thread;
-  struct reg gregs;
-  struct fpreg fpregs;
+  gregset_t gregs;
+  fpregset_t fpregs;
   int val;
 
   if (nbsd_thread_active && IS_THREAD (inferior_ptid))
@@ -982,10 +982,10 @@
   switch (regset)
     {
     case 0:
-      *size = sizeof (struct reg);
+      *size = sizeof (gregset_t);
       break;
     case 1:
-      *size = sizeof (struct fpreg);
+      *size = sizeof (fpregset_t);
       break;
     default:
       return TD_ERR_INVAL;
@@ -1022,10 +1022,10 @@
   switch (regset)
     {
     case 0:
-      fill_gregset ((struct reg *)buf, -1);
+      fill_gregset ((gregset_t *)buf, -1);
       break;
     case 1:
-      fill_fpregset ((struct fpreg *)buf, -1);
+      fill_fpregset ((fpregset_t *)buf, -1);
       break;
     default: /* XXX need to handle other reg sets: SSE, AltiVec, etc. */
       ret = TD_ERR_INVAL;
@@ -1048,10 +1048,10 @@
   switch (regset)
     {
     case 0:
-      supply_gregset((struct reg *)buf);
+      supply_gregset((gregset_t *)buf);
       break;
     case 1:
-      supply_fpregset((struct fpreg *)buf);
+      supply_fpregset((fpregset_t *)buf);
       break;
     default: /* XXX need to handle other reg sets: SSE, AltiVec, etc. */
       ret = TD_ERR_INVAL;



Home | Main Index | Thread Index | Old Index