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 9abf2766e3109741d4730a277f0f02bc86339ce7..d99c5a2428b729d8b13accaead3e55ff67fe90b2 100644 (file)
@@ -1,3 +1,8 @@
+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
index c5c18fdc6211c4504c59e2c94fb30c945d3da711..8041d84be74a5f983ec891009dcf3ec91a9ec6f0 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,
This page took 0.026808 seconds and 4 git commands to generate.