Skip to content

Commit e4b97d4

Browse files
author
Joel Brobecker
committed
Cannot set the PC on mips-irix.
* irix5-nat.c (fill_gregset): Check regno against the raw PC register number, no the cooked one.
1 parent 11377e6 commit e4b97d4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gdb/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2010-01-09 Joel Brobecker <[email protected]>
2+
3+
Cannot set the PC on mips-irix.
4+
* irix5-nat.c (fill_gregset): Check regno against the raw PC
5+
register number, no the cooked one.
6+
17
2010-01-09 Joel Brobecker <[email protected]>
28

39
Error while loading core file on mips-irix.

gdb/irix5-nat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fill_gregset (const struct regcache *regcache, gregset_t *gregsetp, int regno)
9898
*(regp + regi) = extract_signed_integer (buf, size, byte_order);
9999
}
100100

101-
if ((regno == -1) || (regno == gdbarch_pc_regnum (gdbarch)))
101+
if ((regno == -1) || (regno == mips_regnum (gdbarch)->pc))
102102
{
103103
regi = mips_regnum (gdbarch)->pc;
104104
size = register_size (gdbarch, regi);

0 commit comments

Comments
 (0)