* irix5-nat.c (fill_gregset): Check regno against the raw PC
register number, no the cooked one.
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Cannot set the PC on mips-irix.
+ * irix5-nat.c (fill_gregset): Check regno against the raw PC
+ register number, no the cooked one.
+
2010-01-09 Joel Brobecker <brobecker@adacore.com>
Error while loading core file on mips-irix.
*(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);