diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-04-28 09:50:51 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-04-28 09:50:51 +0100 |
commit | 339053c29abac25e5f86a1ccccd4e8e3b2d362df (patch) | |
tree | 58ce5e8fea74e2ebd9fd9a5dd96a81ca429f2e82 /gdb/mips-linux-nat.c | |
parent | [MIPS] Use lwpid from lwp_info instead of inferior_ptid (diff) | |
download | binutils-gdb-339053c29abac25e5f86a1ccccd4e8e3b2d362df.tar.gz binutils-gdb-339053c29abac25e5f86a1ccccd4e8e3b2d362df.tar.bz2 binutils-gdb-339053c29abac25e5f86a1ccccd4e8e3b2d362df.zip |
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.
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index c5c18fdc621..8041d84be74 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, |