summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 3ae40ceeda6..2791ac8fb8c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -7711,7 +7711,7 @@ remote_fetch_registers (struct target_ops *ops,
int i;
set_remote_traceframe ();
- set_general_thread (inferior_ptid);
+ set_general_thread (regcache_get_ptid (regcache));
if (regnum >= 0)
{
@@ -7868,7 +7868,7 @@ remote_store_registers (struct target_ops *ops,
int i;
set_remote_traceframe ();
- set_general_thread (inferior_ptid);
+ set_general_thread (regcache_get_ptid (regcache));
if (regnum >= 0)
{