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:
@@ -6712,6 +6712,12 @@ linux_process_target::qxfer_libraries_svr4 (const char *annex,
|
||||
|
||||
#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)
|
||||
|
||||
Reference in New Issue
Block a user