gdbserver: do not report btrace support if target does not announce it
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 9 Nov 2022 16:46:21 +0000 (17:46 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 9 Nov 2022 16:46:21 +0000 (17:46 +0100)
commit8263b346fa07e3f679b05a8b369d491af51e6de8
treedfff8b66f8274737d3b94d82ad0fe44100ade66a
parent97e20099d3b02baafe244e975aebe09020d2ab34
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.
gdbserver/linux-low.cc
gdbserver/linux-low.h
gdbserver/server.cc
gdbserver/target.cc
gdbserver/target.h