#ifdef HAVE_LINUX_BTRACE
+bool
+linux_process_target::supports_btrace ()
+{
+ return true;
+}
+
btrace_target_info *
linux_process_target::enable_btrace (thread_info *tp,
const btrace_config *conf)
bool supports_agent () override;
#ifdef HAVE_LINUX_BTRACE
+ bool supports_btrace () override;
+
btrace_target_info *enable_btrace (thread_info *tp,
const btrace_config *conf) override;
if (target_supports_agent ())
strcat (own_buf, ";QAgent+");
- supported_btrace_packets (own_buf);
+ if (the_target->supports_btrace ())
+ supported_btrace_packets (own_buf);
if (target_supports_stopped_by_sw_breakpoint ())
strcat (own_buf, ";swbreak+");
return false;
}
+bool
+process_stratum_target::supports_btrace ()
+{
+ return false;
+}
+
btrace_target_info *
process_stratum_target::enable_btrace (thread_info *tp,
const btrace_config *conf)
/* Return true if target supports debugging agent. */
virtual bool supports_agent ();
+ /* Return true if target supports btrace. */
+ virtual bool supports_btrace ();
+
/* 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 (thread_info *tp,