aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
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 /gdbsupport
parent334381ea466c4735fe533a9864991b862c094b60 (diff)
downloadgdb-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 'gdbsupport')
-rw-r--r--gdbsupport/agent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/agent.cc b/gdbsupport/agent.cc
index 086b08d..7a2c646 100644
--- a/gdbsupport/agent.cc
+++ b/gdbsupport/agent.cc
@@ -190,7 +190,7 @@ agent_run_command (int pid, const char *cmd, int len)
{
int fd;
int tid = agent_get_helper_thread_id ();
- ptid_t ptid = ptid_t (pid, tid, 0);
+ ptid_t ptid = ptid_t (pid, tid);
int ret = target_write_memory (ipa_sym_addrs.addr_cmd_buf,
(gdb_byte *) cmd, len);