diff options
Diffstat (limited to 'gdb/ppcnbsd-tdep.c')
-rw-r--r-- | gdb/ppcnbsd-tdep.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppcnbsd-tdep.c index 12ac5cb..b79f5d4 100644 --- a/gdb/ppcnbsd-tdep.c +++ b/gdb/ppcnbsd-tdep.c @@ -115,7 +115,8 @@ ppcnbsd_sigtramp_cache_init (const struct tramp_frame *self, CORE_ADDR addr, base; int i; - base = frame_unwind_register_unsigned (next_frame, SP_REGNUM); + base = frame_unwind_register_unsigned (next_frame, + gdbarch_sp_regnum (current_gdbarch)); if (self == &ppcnbsd2_sigtramp) addr = base + 0x10 + 2 * tdep->wordsize; else @@ -133,7 +134,9 @@ ppcnbsd_sigtramp_cache_init (const struct tramp_frame *self, addr += tdep->wordsize; trad_frame_set_reg_addr (this_cache, tdep->ppc_ctr_regnum, addr); addr += tdep->wordsize; - trad_frame_set_reg_addr (this_cache, PC_REGNUM, addr); /* SRR0? */ + trad_frame_set_reg_addr (this_cache, + gdbarch_pc_regnum (current_gdbarch), + addr); /* SRR0? */ addr += tdep->wordsize; /* Construct the frame ID using the function start. */ |