From 1afaf9f42fe201872d758214beceff85325a988a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 17 Mar 2017 13:55:56 -0400 Subject: i386-darwin-nat: Use ptid from regcache instead of inferior_ptid gdb/ChangeLog: * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, i386_darwin_store_inferior_registers): Use ptid from regcache. --- gdb/ChangeLog | 5 +++++ gdb/i386-darwin-nat.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 87aad91..04bd708 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-03-17 Simon Marchi + * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, + i386_darwin_store_inferior_registers): Use ptid from regcache. + +2017-03-17 Simon Marchi + * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, i386bsd_store_inferior_registers): Use ptid from regcache. diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index 4bffe6d..dc7ce32 100644 --- a/gdb/i386-darwin-nat.c +++ b/gdb/i386-darwin-nat.c @@ -50,7 +50,7 @@ static void i386_darwin_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno) { - thread_t current_thread = ptid_get_tid (inferior_ptid); + thread_t current_thread = ptid_get_tid (regcache_get_ptid (regcache)); int fetched = 0; struct gdbarch *gdbarch = get_regcache_arch (regcache); @@ -167,7 +167,7 @@ static void i386_darwin_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno) { - thread_t current_thread = ptid_get_tid (inferior_ptid); + thread_t current_thread = ptid_get_tid (regcache_get_ptid (regcache)); struct gdbarch *gdbarch = get_regcache_arch (regcache); #ifdef BFD64 -- cgit v1.1