Introduce utility function find_inferior_ptid
[deliverable/binutils-gdb.git] / gdb / record-btrace.c
index 65d28e39c9bff0eb2d38b182aa423712b481c544..8b98a916bedb2f078ec2bcb2f2b42a9297247525 100644 (file)
@@ -1662,7 +1662,7 @@ record_btrace_step_thread (struct thread_info *tp)
       if (replay == NULL)
        return btrace_step_no_history ();
 
-      inf = find_inferior_pid (ptid_get_pid (tp->ptid));
+      inf = find_inferior_ptid (tp->ptid);
       aspace = inf->aspace;
 
       /* Determine the end of the instruction trace.  */
@@ -1699,7 +1699,7 @@ record_btrace_step_thread (struct thread_info *tp)
       if (replay == NULL)
        replay = record_btrace_start_replaying (tp);
 
-      inf = find_inferior_pid (ptid_get_pid (tp->ptid));
+      inf = find_inferior_ptid (tp->ptid);
       aspace = inf->aspace;
 
       for (;;)
This page took 0.025707 seconds and 4 git commands to generate.