This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.0-branch] Use ptid method lwp in mips_linux_new_thread
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 28 Apr 2017 08:54:49 -0000
- Subject: [binutils-gdb/gdb-8.0-branch] Use ptid method lwp in mips_linux_new_thread
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d41089194ff10dc538fce0bcd4c30fc4d94935d3
commit d41089194ff10dc538fce0bcd4c30fc4d94935d3
Author: Yao Qi <yao.qi@linaro.org>
Date: Fri Apr 28 09:50:51 2017 +0100
Use ptid method lwp in mips_linux_new_thread
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/mips-linux-nat.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c8b0084..8d39588 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index c5c18fd..8041d84 100644
--- a/gdb/mips-linux-nat.c
+++ b/gdb/mips-linux-nat.c
@@ -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,