mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-23 19:54:59 -04:00
39 lines
1.7 KiB
C
39 lines
1.7 KiB
C
$NetBSD: patch-gdb_ppcnbsd-nat.c,v 1.1 2015/03/15 14:56:46 bsiegert Exp $
|
|
|
|
Absorb membername difference.
|
|
|
|
--- gdb/ppcnbsd-nat.c.orig 2015-02-19 11:58:07.000000000 +0000
|
|
+++ gdb/ppcnbsd-nat.c
|
|
@@ -160,20 +160,20 @@ ppcnbsd_supply_pcb (struct regcache *reg
|
|
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(cf.sp, (gdb_byte *)&cf, sizeof(cf));
|
|
- regcache_raw_supply (regcache, tdep->ppc_lr_regnum, &cf.lr);
|
|
- regcache_raw_supply (regcache, gdbarch_pc_regnum (gdbarch), &cf.lr);
|
|
+ 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.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);
|
|
|
|
return 1;
|
|
}
|