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/fbsd-nat.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/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index e0ab3f0..181d344 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -890,7 +890,7 @@ fbsd_add_threads (fbsd_nat_target *target, pid_t pid) for (i = 0; i < nlwps; i++) { - ptid_t ptid = ptid_t (pid, lwps[i], 0); + ptid_t ptid = ptid_t (pid, lwps[i]); if (!in_thread_list (target, ptid)) { @@ -1191,7 +1191,7 @@ fbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, if (ptrace (PT_LWPINFO, pid, (caddr_t) &pl, sizeof pl) == -1) perror_with_name (("ptrace")); - wptid = ptid_t (pid, pl.pl_lwpid, 0); + wptid = ptid_t (pid, pl.pl_lwpid); if (debug_fbsd_nat) { @@ -1287,7 +1287,7 @@ fbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, perror_with_name (("ptrace")); gdb_assert (pl.pl_flags & PL_FLAG_CHILD); - child_ptid = ptid_t (child, pl.pl_lwpid, 0); + child_ptid = ptid_t (child, pl.pl_lwpid); } /* Enable additional events on the child process. */ |