diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2022-11-09 17:46:21 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2022-11-09 17:46:21 +0100 |
commit | 8263b346fa07e3f679b05a8b369d491af51e6de8 (patch) | |
tree | dfff8b66f8274737d3b94d82ad0fe44100ade66a /gdbserver/linux-low.h | |
parent | 97e20099d3b02baafe244e975aebe09020d2ab34 (diff) | |
download | gdb-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/linux-low.h')
-rw-r--r-- | gdbserver/linux-low.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index 79be31b..1594f06 100644 --- a/gdbserver/linux-low.h +++ b/gdbserver/linux-low.h @@ -275,6 +275,8 @@ public: 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; |