aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-obsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ppc-obsd-nat.c')
-rw-r--r--gdb/ppc-obsd-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ppc-obsd-nat.c b/gdb/ppc-obsd-nat.c
index 60f6a4f..cd75b92 100644
--- a/gdb/ppc-obsd-nat.c
+++ b/gdb/ppc-obsd-nat.c
@@ -89,7 +89,7 @@ ppcobsd_fetch_registers (struct target_ops *ops,
#ifdef PT_GETFPREGS
if (regnum == -1
- || getfpregs_supplies (get_regcache_arch (regcache), regnum))
+ || getfpregs_supplies (regcache->arch (), regnum))
{
struct fpreg fpregs;
@@ -127,7 +127,7 @@ ppcobsd_store_registers (struct target_ops *ops,
#ifdef PT_GETFPREGS
if (regnum == -1
- || getfpregs_supplies (get_regcache_arch (regcache), regnum))
+ || getfpregs_supplies (regcache->arch (), regnum))
{
struct fpreg fpregs;
@@ -147,7 +147,7 @@ ppcobsd_store_registers (struct target_ops *ops,
static int
ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
struct switchframe sf;
struct callframe cf;