From 2e56e9c16fddf3a47ae0b3d053a9a9e3cd3ce3fb Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 10 May 2004 16:53:56 +0000 Subject: * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do collect all the gprs. --- gdb/rs6000-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/rs6000-tdep.c') 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) -- cgit v1.1