From 6038a89b0e658e4c2eb0c56617a7a5d888431f39 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 18 Jan 2011 01:28:19 +0000 Subject: [PATCH] Change to reflect switchframe/callframe changes. --- gnu/dist/gdb6/gdb/ppcnbsd-nat.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gnu/dist/gdb6/gdb/ppcnbsd-nat.c b/gnu/dist/gdb6/gdb/ppcnbsd-nat.c index 52dc1226b045..2b0698e0c19c 100644 --- a/gnu/dist/gdb6/gdb/ppcnbsd-nat.c +++ b/gnu/dist/gdb6/gdb/ppcnbsd-nat.c @@ -157,20 +157,20 @@ ppcnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 0; read_memory (pcb->pcb_sp, (gdb_byte *)&sf, sizeof sf); - regcache_raw_supply (regcache, tdep->ppc_cr_regnum, &sf.cr); - regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 2, &sf.fixreg2); + regcache_raw_supply (regcache, tdep->ppc_cr_regnum, &sf.sf_cr); + regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 2, &sf.sf_fixreg2); for (i = 0 ; i < 19 ; i++) regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 13 + i, - &sf.fixreg[i]); + &sf.sf_fixreg[i]); - read_memory(sf.sp, (gdb_byte *)&cf, sizeof(cf)); - regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 30, &cf.r30); - regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 31, &cf.r31); - regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 1, &cf.sp); + read_memory(sf.sf_sp, (gdb_byte *)&cf, sizeof(cf)); + regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 30, &cf.cf_r30); + regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 31, &cf.cf_r31); + regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 1, &cf.cf_sp); - read_memory(cf.sp, (gdb_byte *)&cf, sizeof(cf)); - regcache_raw_supply (regcache, tdep->ppc_lr_regnum, &cf.lr); - regcache_raw_supply (regcache, PC_REGNUM, &cf.lr); + read_memory(cf.cf_sp, (gdb_byte *)&cf, sizeof(cf)); + regcache_raw_supply (regcache, tdep->ppc_lr_regnum, &cf.cf_lr); + regcache_raw_supply (regcache, PC_REGNUM, &cf.cf_lr); return 1; }