diff options
author | Tom Tromey <tromey@adacore.com> | 2021-09-16 13:06:27 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-09-23 09:30:54 -0600 |
commit | 184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c (patch) | |
tree | cb5f9fe2478d4c3e2233b7a575933c024fcbcb96 /gdb/linux-thread-db.c | |
parent | 334381ea466c4735fe533a9864991b862c094b60 (diff) | |
download | gdb-184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c.zip gdb-184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c.tar.gz gdb-184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c.tar.bz2 |
Remove defaulted 'tid' parameter to ptid_t constructor
I wanted to find, and potentially modify, all the spots where the
'tid' parameter to the ptid_t constructor was used. So, I temporarily
removed this parameter and then rebuilt.
In order to make it simpler to search through the "real" (nonzero)
uses of this parameter, something I knew I'd have to do multiple
times, I removed any ", 0" from constructor calls.
Co-Authored-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 245939b..3929589 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -687,7 +687,7 @@ check_thread_db_callback (const td_thrhandle_t *th, void *arg) calls are made, we just assume they were; future changes to how GDB accesses TLS could result in this passing without exercising the calls it's supposed to. */ - ptid_t ptid = ptid_t (tdb_testinfo->info->pid, ti.ti_lid, 0); + ptid_t ptid = ptid_t (tdb_testinfo->info->pid, ti.ti_lid); thread_info *thread_info = find_thread_ptid (linux_target, ptid); if (thread_info != NULL && thread_info->priv != NULL) { @@ -1842,7 +1842,7 @@ ptid_t thread_db_target::get_ada_task_ptid (long lwp, long thread) { /* NPTL uses a 1:1 model, so the LWP id suffices. */ - return ptid_t (inferior_ptid.pid (), lwp, 0); + return ptid_t (inferior_ptid.pid (), lwp); } void |