mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +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:
@ -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);
|
||||
|
Reference in New Issue
Block a user