Use ptid method lwp in mips_linux_new_thread
authorYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 08:50:51 +0000 (09:50 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 08:50:51 +0000 (09:50 +0100)
gdb:

2017-04-28  Yao Qi  <yao.qi@linaro.org>

* mips-linux-nat.c (mips_linux_new_thread): Use ptid method
lwp instead of ptid_get_lwp.

gdb/ChangeLog
gdb/mips-linux-nat.c

index 9abf276..d99c5a2 100644 (file)
@@ -1,5 +1,10 @@
 2017-04-28  Yao Qi  <yao.qi@linaro.org>
 
+       * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
+       lwp instead of ptid_get_lwp.
+
+2017-04-28  Yao Qi  <yao.qi@linaro.org>
+
        * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
        lwp_info instead of getting from inferior_ptid.
 
index c5c18fd..8041d84 100644 (file)
@@ -624,7 +624,7 @@ write_watchpoint_regs (void)
 static void
 mips_linux_new_thread (struct lwp_info *lp)
 {
-  long tid = ptid_get_lwp (lp->ptid);
+  long tid = lp->ptid.lwp ();
 
   if (!mips_linux_read_watch_registers (tid,
                                        &watch_readback,