mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user