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/target.h | |
parent | b674665b51112de22260709a214d4d6ba01c7e57 (diff) | |
download | binutils-gdb-696c0d5ef2a6edaa2094e808f53acd502a157641.tar.gz |
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/target.h')
-rw-r--r-- | gdbserver/target.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdbserver/target.h b/gdbserver/target.h index f58ed9d08ff..aaa9dab742c 100644 --- a/gdbserver/target.h +++ b/gdbserver/target.h @@ -403,9 +403,9 @@ public: /* Return true if target supports debugging agent. */ virtual bool supports_agent (); - /* Enable branch tracing for PTID based on CONF and allocate a branch trace + /* Enable branch tracing for TP based on CONF and allocate a branch trace target information struct for reading and for disabling branch trace. */ - virtual btrace_target_info *enable_btrace (ptid_t ptid, + virtual btrace_target_info *enable_btrace (thread_info *tp, const btrace_config *conf); /* Disable branch tracing. @@ -635,9 +635,9 @@ int kill_inferior (process_info *proc); the_target->supports_agent () static inline 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 the_target->enable_btrace (ptid, conf); + return the_target->enable_btrace (tp, conf); } static inline int |