Don't write to inferior_ptid in linux_get_siginfo_data
[deliverable/binutils-gdb.git] / gdb / linux-tdep.c
index 2dcdc63076907881868601271fdbe509db81198e..d51d953ee202261c2edff15a935bf9f6f8ae356e 100644 (file)
@@ -1612,8 +1612,8 @@ linux_get_siginfo_data (thread_info *thread, struct gdbarch *gdbarch)
   if (!gdbarch_get_siginfo_type_p (gdbarch))
     return gdb::byte_vector ();
 
-  scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
-  inferior_ptid = thread->ptid;
+  scoped_restore_current_thread save_current_thread;
+  switch_to_thread (thread);
 
   siginfo_type = gdbarch_get_siginfo_type (gdbarch);
 
This page took 0.023196 seconds and 4 git commands to generate.