]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Cannot set the PC on mips-irix.
authorJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:41:50 +0000 (04:41 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:41:50 +0000 (04:41 +0000)
        * irix5-nat.c (fill_gregset): Check regno against the raw PC
        register number, no the cooked one.

gdb/ChangeLog
gdb/irix5-nat.c

index 1b78da2aaf10b7af85fe06ab339a4c1416ce61f0..55bd2522b954c1b6b4681d9a7cd6e9077c624325 100644 (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.
index d8e10730d9a527383515c121391960627f2224ab..f7454dc4558006f19c497371f7f9597bb2355b7f 100644 (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);