From 339053c29abac25e5f86a1ccccd4e8e3b2d362df Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 28 Apr 2017 09:50:51 +0100 Subject: [PATCH] Use ptid method lwp in mips_linux_new_thread gdb: 2017-04-28 Yao Qi * mips-linux-nat.c (mips_linux_new_thread): Use ptid method lwp instead of ptid_get_lwp. --- 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 9abf2766e3..d99c5a2428 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-04-28 Yao Qi + + * mips-linux-nat.c (mips_linux_new_thread): Use ptid method + lwp instead of ptid_get_lwp. + 2017-04-28 Yao Qi * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index c5c18fdc62..8041d84be7 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, -- 2.34.1