mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-06 14:21:43 +08:00
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:
parent
11377e6835
commit
e4b97d48ee
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user