summaryrefslogtreecommitdiff
path: root/gdb/irix5-nat.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-09 04:41:49 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-09 04:41:49 +0000
commit4d53683024cc12c9eb396ed372566ebccecc6fe0 (patch)
tree654652e8bca45cae6ff5d489e6c7422cf247513c /gdb/irix5-nat.c
parent6cfbd29244ca246410ef4d5c812aac487b20909e (diff)
downloadgdb-4d53683024cc12c9eb396ed372566ebccecc6fe0.tar.gz
Cannot set the PC on mips-irix.
* irix5-nat.c (fill_gregset): Check regno against the raw PC register number, no the cooked one.
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r--gdb/irix5-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c
index d8e10730d9a..f7454dc4558 100644
--- a/gdb/irix5-nat.c
+++ b/gdb/irix5-nat.c
@@ -98,7 +98,7 @@ fill_gregset (const struct regcache *regcache, gregset_t *gregsetp, int regno)
*(regp + regi) = extract_signed_integer (buf, size, byte_order);
}
- if ((regno == -1) || (regno == gdbarch_pc_regnum (gdbarch)))
+ if ((regno == -1) || (regno == mips_regnum (gdbarch)->pc))
{
regi = mips_regnum (gdbarch)->pc;
size = register_size (gdbarch, regi);