summaryrefslogtreecommitdiff
path: root/gdbserver/thread-db.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-09-16 13:06:27 -0600
committerTom Tromey <tromey@adacore.com>2021-09-23 09:30:54 -0600
commit184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c (patch)
treecb5f9fe2478d4c3e2233b7a575933c024fcbcb96 /gdbserver/thread-db.cc
parent334381ea466c4735fe533a9864991b862c094b60 (diff)
downloadbinutils-gdb-184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c.tar.gz
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 'gdbserver/thread-db.cc')
-rw-r--r--gdbserver/thread-db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/thread-db.cc b/gdbserver/thread-db.cc
index 055a0fa970f..9a70cdf4671 100644
--- a/gdbserver/thread-db.cc
+++ b/gdbserver/thread-db.cc
@@ -214,7 +214,7 @@ attach_thread (const td_thrhandle_t *th_p, td_thrinfo_t *ti_p)
{
struct process_info *proc = current_process ();
int pid = pid_of (proc);
- ptid_t ptid = ptid_t (pid, ti_p->ti_lid, 0);
+ ptid_t ptid = ptid_t (pid, ti_p->ti_lid);
struct lwp_info *lwp;
int err;