summaryrefslogtreecommitdiff
path: root/gdb/i386-obsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386-obsd-nat.c')
-rw-r--r--gdb/i386-obsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c
index 76079afaa6..f3a68decad 100644
--- a/gdb/i386-obsd-nat.c
+++ b/gdb/i386-obsd-nat.c
@@ -34,7 +34,7 @@
static int
i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
struct switchframe sf;