* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
[deliverable/binutils-gdb.git] / gdb / arm-linux-nat.c
index 06dc601a7a3db863e15ee3382bfbb16be2ed3761..4d3249167f224d67b23db6d05c36c0da78d0e08d 100644 (file)
@@ -194,7 +194,7 @@ store_nwfpe_extended (unsigned int fn, FPA11 * fpa11)
 void
 store_nwfpe_register (int regno, FPA11 * fpa11)
 {
-  if (register_valid[regno])
+  if (register_cached (regno))
     {
        unsigned int fn = regno - F0_REGNUM;
        switch (fpa11->fType[fn])
@@ -216,7 +216,7 @@ store_nwfpe_register (int regno, FPA11 * fpa11)
 
 
 /* Get the value of a particular register from the floating point
-   state of the process and store it into registers[].  */
+   state of the process and store it into regcache.  */
 
 static void
 fetch_fpregister (int regno)
@@ -265,7 +265,7 @@ fetch_fpregister (int regno)
 }
 
 /* Get the whole floating point state of the process and store it
-   into registers[].  */
+   into regcache.  */
 
 static void
 fetch_fpregs (void)
@@ -313,7 +313,7 @@ fetch_fpregs (void)
 }
 
 /* Save a particular register into the floating point state of the
-   process using the contents from registers[].  */
+   process using the contents from regcache.  */
 
 static void
 store_fpregister (int regno)
@@ -333,7 +333,7 @@ store_fpregister (int regno)
     }
 
   /* Store fpsr.  */
-  if (FPS_REGNUM == regno && register_valid[FPS_REGNUM])
+  if (FPS_REGNUM == regno && register_cached (FPS_REGNUM))
     read_register_gen (FPS_REGNUM, (char *) &fp.fpsr);
 
   /* Store the floating point register.  */
@@ -351,7 +351,7 @@ store_fpregister (int regno)
 }
 
 /* Save the whole floating point state of the process using
-   the contents from registers[].  */
+   the contents from regcache.  */
 
 static void
 store_fpregs (void)
@@ -371,7 +371,7 @@ store_fpregs (void)
     }
 
   /* Store fpsr.  */
-  if (register_valid[FPS_REGNUM])
+  if (register_cached (FPS_REGNUM))
     read_register_gen (FPS_REGNUM, (char *) &fp.fpsr);
 
   /* Store the floating point registers.  */
@@ -389,13 +389,13 @@ store_fpregs (void)
 }
 
 /* Fetch a general register of the process and store into
-   registers[].  */
+   regcache.  */
 
 static void
 fetch_register (int regno)
 {
   int ret, tid;
-  struct pt_regs regs;
+  elf_gregset_t regs;
 
   /* Get the thread id for the ptrace call.  */
   tid = GET_THREAD_ID (inferior_ptid);
@@ -408,31 +408,31 @@ fetch_register (int regno)
     }
 
   if (regno >= A1_REGNUM && regno < PC_REGNUM)
-    supply_register (regno, (char *) &regs.uregs[regno]);
+    supply_register (regno, (char *) &regs[regno]);
 
   if (PS_REGNUM == regno)
     {
       if (arm_apcs_32)
-        supply_register (PS_REGNUM, (char *) &regs.uregs[CPSR_REGNUM]);
+        supply_register (PS_REGNUM, (char *) &regs[CPSR_REGNUM]);
       else
-        supply_register (PS_REGNUM, (char *) &regs.uregs[PC_REGNUM]);
+        supply_register (PS_REGNUM, (char *) &regs[PC_REGNUM]);
     }
     
   if (PC_REGNUM == regno)
     { 
-      regs.uregs[PC_REGNUM] = ADDR_BITS_REMOVE (regs.uregs[PC_REGNUM]);
-      supply_register (PC_REGNUM, (char *) &regs.uregs[PC_REGNUM]);
+      regs[PC_REGNUM] = ADDR_BITS_REMOVE (regs[PC_REGNUM]);
+      supply_register (PC_REGNUM, (char *) &regs[PC_REGNUM]);
     }
 }
 
 /* Fetch all general registers of the process and store into
-   registers[].  */
+   regcache.  */
 
 static void
 fetch_regs (void)
 {
   int ret, regno, tid;
-  struct pt_regs regs;
+  elf_gregset_t regs;
 
   /* Get the thread id for the ptrace call.  */
   tid = GET_THREAD_ID (inferior_ptid);
@@ -445,27 +445,27 @@ fetch_regs (void)
     }
 
   for (regno = A1_REGNUM; regno < PC_REGNUM; regno++)
-    supply_register (regno, (char *) &regs.uregs[regno]);
+    supply_register (regno, (char *) &regs[regno]);
 
   if (arm_apcs_32)
-    supply_register (PS_REGNUM, (char *) &regs.uregs[CPSR_REGNUM]);
+    supply_register (PS_REGNUM, (char *) &regs[CPSR_REGNUM]);
   else
-    supply_register (PS_REGNUM, (char *) &regs.uregs[PC_REGNUM]);
+    supply_register (PS_REGNUM, (char *) &regs[PC_REGNUM]);
 
-  regs.uregs[PC_REGNUM] = ADDR_BITS_REMOVE (regs.uregs[PC_REGNUM]);
-  supply_register (PC_REGNUM, (char *) &regs.uregs[PC_REGNUM]);
+  regs[PC_REGNUM] = ADDR_BITS_REMOVE (regs[PC_REGNUM]);
+  supply_register (PC_REGNUM, (char *) &regs[PC_REGNUM]);
 }
 
 /* Store all general registers of the process from the values in
-   registers[].  */
+   regcache.  */
 
 static void
 store_register (int regno)
 {
   int ret, tid;
-  struct pt_regs regs;
+  elf_gregset_t regs;
   
-  if (!register_valid[regno])
+  if (!register_cached (regno))
     return;
 
   /* Get the thread id for the ptrace call.  */
@@ -480,7 +480,7 @@ store_register (int regno)
     }
 
   if (regno >= A1_REGNUM && regno <= PC_REGNUM)
-    read_register_gen (regno, (char *) &regs.uregs[regno]);
+    read_register_gen (regno, (char *) &regs[regno]);
 
   ret = ptrace (PTRACE_SETREGS, tid, 0, &regs);
   if (ret < 0)
@@ -494,7 +494,7 @@ static void
 store_regs (void)
 {
   int ret, regno, tid;
-  struct pt_regs regs;
+  elf_gregset_t regs;
 
   /* Get the thread id for the ptrace call.  */
   tid = GET_THREAD_ID (inferior_ptid);
@@ -509,8 +509,8 @@ store_regs (void)
 
   for (regno = A1_REGNUM; regno <= PC_REGNUM; regno++)
     {
-      if (register_valid[regno])
-       read_register_gen (regno, (char *) &regs.uregs[regno]);
+      if (register_cached (regno))
+       read_register_gen (regno, (char *) &regs[regno]);
     }
 
   ret = ptrace (PTRACE_SETREGS, tid, 0, &regs);
This page took 0.025859 seconds and 4 git commands to generate.