Remove ptid_get_lwp
[deliverable/binutils-gdb.git] / gdb / linux-tdep.c
index da8a1f07f77f37511380915c9e2d06e6ca5e1eb3..12455a79f6d664063216a2e0393f54a673fde21d 100644 (file)
@@ -419,9 +419,9 @@ linux_core_pid_to_str (struct gdbarch *gdbarch, ptid_t ptid)
 {
   static char buf[80];
 
-  if (ptid_get_lwp (ptid) != 0)
+  if (ptid.lwp () != 0)
     {
-      snprintf (buf, sizeof (buf), "LWP %ld", ptid_get_lwp (ptid));
+      snprintf (buf, sizeof (buf), "LWP %ld", ptid.lwp ());
       return buf;
     }
 
@@ -1632,7 +1632,7 @@ linux_collect_thread_registers (const struct regcache *regcache,
   data.abort_iteration = 0;
 
   /* For remote targets the LWP may not be available, so use the TID.  */
-  data.lwp = ptid_get_lwp (ptid);
+  data.lwp = ptid.lwp ();
   if (!data.lwp)
     data.lwp = ptid_get_tid (ptid);
 
This page took 0.023648 seconds and 4 git commands to generate.