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/target.c | |
parent | b674665b51112de22260709a214d4d6ba01c7e57 (diff) | |
download | gdb-696c0d5ef2a6edaa2094e808f53acd502a157641.zip gdb-696c0d5ef2a6edaa2094e808f53acd502a157641.tar.gz gdb-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/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index f3f1c80..548cfad 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -4060,9 +4060,9 @@ target_ranged_break_num_registers (void) /* See target.h. */ struct btrace_target_info * -target_enable_btrace (ptid_t ptid, const struct btrace_config *conf) +target_enable_btrace (thread_info *tp, const struct btrace_config *conf) { - return current_inferior ()->top_target ()->enable_btrace (ptid, conf); + return current_inferior ()->top_target ()->enable_btrace (tp, conf); } /* See target.h. */ |