aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsv4-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-30 22:36:34 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-30 22:36:34 +0000
commit613e114ff9d8c0f2bbe5177ef94f702123bb8885 (patch)
tree0430c3bc647f9b87f9b1b8867b9f74b36dfd8db1 /gdb/mipsv4-nat.c
parentd37cca3d684da261b7982e9b854d532048a355e2 (diff)
downloadgdb-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/mipsv4-nat.c')
-rw-r--r--gdb/mipsv4-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mipsv4-nat.c b/gdb/mipsv4-nat.c
index 53e286a..75956c1 100644
--- a/gdb/mipsv4-nat.c
+++ b/gdb/mipsv4-nat.c
@@ -68,7 +68,7 @@ supply_gregset (gregset_t *gregsetp)
mips_regnum (current_gdbarch)->badvaddr,
zerobuf);
regcache_raw_supply (current_regcache, DEPRECATED_FP_REGNUM, zerobuf);
- regcache_raw_supply (current_regcache, UNUSED_REGNUM, zerobuf);
+ regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
for (regi = FIRST_EMBED_REGNUM; regi <= LAST_EMBED_REGNUM; regi++)
regcache_raw_supply (current_regcache, regi, zerobuf);
}
@@ -161,7 +161,7 @@ get_longjmp_target (CORE_ADDR *pc)
CORE_ADDR jb_addr;
buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT);
- jb_addr = read_register (A0_REGNUM);
+ jb_addr = read_register (MIPS_A0_REGNUM);
if (target_read_memory (jb_addr + _JB_PC * JB_ELEMENT_SIZE, buf,
TARGET_PTR_BIT / TARGET_CHAR_BIT))