Module Name: src
Committed By: christos
Date: Sun Oct 9 02:07:24 UTC 2011
Modified Files:
src/external/gpl3/gdb/dist/gdb: ppcnbsd-nat.c
Log Message:
fix powerpc support.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c:1.2 src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c:1.3
--- src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c:1.2 Sun Sep 25 12:30:25 2011
+++ src/external/gpl3/gdb/dist/gdb/ppcnbsd-nat.c Sat Oct 8 22:07:24 2011
@@ -167,14 +167,14 @@ ppcnbsd_supply_pcb (struct regcache *reg
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.sf-fixreg[i]);
+ &sf.sf_fixreg[i]);
- read_memory(sf.sp, (gdb_byte *)&cf, sizeof(cf));
+ 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));
+ 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, gdbarch_pc_regnum (gdbarch), &cf.cf_lr);