From e4b97d48eefdc74a491358d5e082d4a23b9fb666 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sat, 9 Jan 2010 04:41:50 +0000 Subject: [PATCH] Cannot set the PC on mips-irix. * irix5-nat.c (fill_gregset): Check regno against the raw PC register number, no the cooked one. --- gdb/ChangeLog | 6 ++++++ gdb/irix5-nat.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b78da2aaf1..55bd2522b95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-01-09 Joel Brobecker + + 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 Error while loading core file on mips-irix. diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index d8e10730d9a..f7454dc4558 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -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); -- 2.30.2