aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/target.h
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-11-09 17:46:21 +0100
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-11-09 17:46:21 +0100
commit8263b346fa07e3f679b05a8b369d491af51e6de8 (patch)
treedfff8b66f8274737d3b94d82ad0fe44100ade66a /gdbserver/target.h
parent97e20099d3b02baafe244e975aebe09020d2ab34 (diff)
downloadgdb-8263b346fa07e3f679b05a8b369d491af51e6de8.zip
gdb-8263b346fa07e3f679b05a8b369d491af51e6de8.tar.gz
gdb-8263b346fa07e3f679b05a8b369d491af51e6de8.tar.bz2
gdbserver: do not report btrace support if target does not announce it
Gdbserver unconditionally reports support for btrace packets. Do not report the support, if the underlying target does not say it supports it. Otherwise GDB would query the server with btrace-related packets unnecessarily.
Diffstat (limited to 'gdbserver/target.h')
-rw-r--r--gdbserver/target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdbserver/target.h b/gdbserver/target.h
index 6c536a3..18ab969 100644
--- a/gdbserver/target.h
+++ b/gdbserver/target.h
@@ -388,6 +388,9 @@ public:
/* 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,