diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:41:50 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:41:50 +0000 |
commit | e4b97d48eefdc74a491358d5e082d4a23b9fb666 (patch) | |
tree | 15e7b9298b02ea5a5bdc9a6b9f18a30a8ece3632 /gdb/irix5-nat.c | |
parent | 11377e68354530c5af902e2161f73a2d0d5af86e (diff) | |
download | gdb-e4b97d48eefdc74a491358d5e082d4a23b9fb666.zip gdb-e4b97d48eefdc74a491358d5e082d4a23b9fb666.tar.gz gdb-e4b97d48eefdc74a491358d5e082d4a23b9fb666.tar.bz2 |
Cannot set the PC on mips-irix.
* irix5-nat.c (fill_gregset): Check regno against the raw PC
register number, no the cooked one.
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r-- | gdb/irix5-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index d8e1073..f7454dc 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); |