diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2021-11-25 15:15:52 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2022-01-27 13:31:20 +0100 |
commit | 696c0d5ef2a6edaa2094e808f53acd502a157641 (patch) | |
tree | 351b7bfa2d640104e2a5b1db0136fc29814ee388 /gdbserver/linux-low.cc | |
parent | b674665b51112de22260709a214d4d6ba01c7e57 (diff) |
gdb, gdbserver: update thread identifier in enable_btrace target method
The enable_btrace target method takes a ptid_t to identify the thread on
which tracing shall be enabled.
Change this to thread_info * to avoid translating back and forth between
the two. This will be used in a subsequent patch.
Diffstat (limited to 'gdbserver/linux-low.cc')
-rw-r--r-- | gdbserver/linux-low.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 9e571a4d77..cf73bbc70e 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -6669,10 +6669,10 @@ linux_process_target::qxfer_libraries_svr4 (const char *annex, #ifdef HAVE_LINUX_BTRACE btrace_target_info * -linux_process_target::enable_btrace (ptid_t ptid, +linux_process_target::enable_btrace (thread_info *tp, const btrace_config *conf) { - return linux_enable_btrace (ptid, conf); + return linux_enable_btrace (tp->id, conf); } /* See to_disable_btrace target method. */ |