diff options
Diffstat (limited to 'gdb/i386-darwin-nat.c')
-rw-r--r-- | gdb/i386-darwin-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index e57b126..03adb20 100644 --- a/gdb/i386-darwin-nat.c +++ b/gdb/i386-darwin-nat.c @@ -59,7 +59,7 @@ static struct i386_darwin_nat_target darwin_target; void i386_darwin_nat_target::fetch_registers (struct regcache *regcache, int regno) { - thread_t current_thread = ptid_get_tid (regcache_get_ptid (regcache)); + thread_t current_thread = ptid_get_tid (regcache->ptid ()); int fetched = 0; struct gdbarch *gdbarch = regcache->arch (); @@ -176,7 +176,7 @@ void i386_darwin_nat_target::store_registers (struct regcache *regcache, int regno) { - thread_t current_thread = ptid_get_tid (regcache_get_ptid (regcache)); + thread_t current_thread = ptid_get_tid (regcache->ptid ()); struct gdbarch *gdbarch = regcache->arch (); #ifdef BFD64 |