2004-10-30 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / mips-linux-nat.c
index f5071ad62e824372d3f9831f0e0eec666d440d2b..835ba58785b9f88abf37376a8619438d845a6941 100644 (file)
 #include "mips-tdep.h"
 
 /* Pseudo registers can not be read.  ptrace does not provide a way to
-   read (or set) PS_REGNUM, and there's no point in reading or setting
-   ZERO_REGNUM.  We also can not set BADVADDR, CAUSE, or FCRIR via
-   ptrace().  */
+   read (or set) MIPS_PS_REGNUM, and there's no point in reading or
+   setting MIPS_ZERO_REGNUM.  We also can not set BADVADDR, CAUSE, or
+   FCRIR via ptrace().  */
 
 int
 mips_linux_cannot_fetch_register (int regno)
 {
-  if (regno > ZERO_REGNUM && regno < ZERO_REGNUM + 32)
+  if (regno > MIPS_ZERO_REGNUM && regno < MIPS_ZERO_REGNUM + 32)
     return 0;
   else if (regno >= mips_regnum (current_gdbarch)->fp0
           && regno <= mips_regnum (current_gdbarch)->fp0 + 32)
@@ -50,7 +50,7 @@ mips_linux_cannot_fetch_register (int regno)
 int
 mips_linux_cannot_store_register (int regno)
 {
-  if (regno > ZERO_REGNUM && regno < ZERO_REGNUM + 32)
+  if (regno > MIPS_ZERO_REGNUM && regno < MIPS_ZERO_REGNUM + 32)
     return 0;
   else if (regno >= FP0_REGNUM && regno <= FP0_REGNUM + 32)
     return 0;
This page took 0.024533 seconds and 4 git commands to generate.