diff options
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 68e90a3c66b..4ce8fa1ae37 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) |