diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-10 16:53:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-10 16:53:56 +0000 |
commit | 2e56e9c16fddf3a47ae0b3d053a9a9e3cd3ce3fb (patch) | |
tree | 635bb2d5a73b260dd6c097c781ca80af96a41aaa /gdb/rs6000-tdep.c | |
parent | 26c0b94256451dd523420822fda58e5618f0c784 (diff) | |
download | gdb-2e56e9c16fddf3a47ae0b3d053a9a9e3cd3ce3fb.zip gdb-2e56e9c16fddf3a47ae0b3d053a9a9e3cd3ce3fb.tar.gz gdb-2e56e9c16fddf3a47ae0b3d053a9a9e3cd3ce3fb.tar.bz2 |
* rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
collect all the gprs.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 68e90a3..4ce8fa1 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -260,7 +260,7 @@ ppc_collect_gregset (const struct regset *regset, for (i = 0; i < 32; i++, offset += 4) { if (regnum == -1 || regnum == i) - ppc_collect_reg (regcache, regnum, gregs, offset); + ppc_collect_reg (regcache, i, gregs, offset); } if (regnum == -1 || regnum == PC_REGNUM) |