Cannot set the PC on mips-irix.

* irix5-nat.c (fill_gregset): Check regno against the raw PC
        register number, no the cooked one.
This commit is contained in:
Joel Brobecker 2010-01-09 04:41:50 +00:00
parent 11377e6835
commit e4b97d48ee
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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);