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 /gdb/x86-linux-nat.c | |
parent | b674665b51112de22260709a214d4d6ba01c7e57 (diff) | |
download | binutils-696c0d5ef2a6edaa2094e808f53acd502a157641.zip binutils-696c0d5ef2a6edaa2094e808f53acd502a157641.tar.gz binutils-696c0d5ef2a6edaa2094e808f53acd502a157641.tar.bz2 |
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 'gdb/x86-linux-nat.c')
-rw-r--r-- | gdb/x86-linux-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c index 55d2a1d..80be973 100644 --- a/gdb/x86-linux-nat.c +++ b/gdb/x86-linux-nat.c @@ -212,10 +212,11 @@ x86_linux_nat_target::read_description () /* Enable branch tracing. */ struct btrace_target_info * -x86_linux_nat_target::enable_btrace (ptid_t ptid, +x86_linux_nat_target::enable_btrace (thread_info *tp, const struct btrace_config *conf) { struct btrace_target_info *tinfo = nullptr; + ptid_t ptid = tp->ptid; try { tinfo = linux_enable_btrace (ptid, conf); |