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>
This commit is contained in:
parent
334381ea46
commit
184ea2f731
12 changed files with 32 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue