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/nat | |
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/nat')
-rw-r--r-- | gdb/nat/linux-osdata.c | 4 | ||||
-rw-r--r-- | gdb/nat/linux-procfs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 12f66d3..9746d12 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -266,7 +266,7 @@ get_cores_used_by_process (PID_T pid, int *cores, const int num_cores) sscanf (dp->d_name, "%lld", &tid); core = linux_common_core_of_thread (ptid_t ((pid_t) pid, - (pid_t) tid, 0)); + (pid_t) tid)); if (core >= 0 && core < num_cores) { @@ -521,7 +521,7 @@ linux_xfer_osdata_threads (struct buffer *buffer) continue; tid = atoi (dp2->d_name); - core = linux_common_core_of_thread (ptid_t (pid, tid, 0)); + core = linux_common_core_of_thread (ptid_t (pid, tid)); buffer_xml_printf (buffer, diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c index 25d36c1..76e62fc 100644 --- a/gdb/nat/linux-procfs.c +++ b/gdb/nat/linux-procfs.c @@ -308,7 +308,7 @@ linux_proc_attach_tgid_threads (pid_t pid, lwp = strtoul (dp->d_name, NULL, 10); if (lwp != 0) { - ptid_t ptid = ptid_t (pid, lwp, 0); + ptid_t ptid = ptid_t (pid, lwp); if (attach_lwp (ptid)) new_threads_found = 1; |