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.
This commit is contained in:
Markus Metzger
2021-11-25 15:15:52 +01:00
parent b674665b51
commit 696c0d5ef2
13 changed files with 38 additions and 30 deletions

View File

@ -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);