mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 09:59:06 +08:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user