diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-30 22:36:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-30 22:36:34 +0000 |
commit | 613e114ff9d8c0f2bbe5177ef94f702123bb8885 (patch) | |
tree | 0430c3bc647f9b87f9b1b8867b9f74b36dfd8db1 /gdb/mips-linux-nat.c | |
parent | d37cca3d684da261b7982e9b854d532048a355e2 (diff) | |
download | gdb-613e114ff9d8c0f2bbe5177ef94f702123bb8885.zip gdb-613e114ff9d8c0f2bbe5177ef94f702123bb8885.tar.gz gdb-613e114ff9d8c0f2bbe5177ef94f702123bb8885.tar.bz2 |
2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h: Add comments on registers.
(MIPS_UNUSED_REGNUM): Define.
* config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
(T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
* irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
* mips-linux-nat.c, remote-mips.c: Update.
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index f5071ad..6cd9e87 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -24,13 +24,13 @@ /* 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(). */ + 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; |