forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -694,6 +694,12 @@ process_stratum_target::supports_agent ()
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user