X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Firix5-nat.c;h=f7454dc4558006f19c497371f7f9597bb2355b7f;hb=6f6dbfc4bc78fbdb026cd777c8a1b47de9285632;hp=42b4d5c426aa35b61ddccfea8e3e0bc74fb1026c;hpb=e17a4113357102b55cfa5b80557d590a46a43300;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index 42b4d5c426..f7454dc455 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -1,7 +1,7 @@ /* Native support for the SGI Iris running IRIX version 5, for GDB. Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, - 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2008, 2009 + 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU @@ -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);