mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
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:
@@ -2475,7 +2475,8 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
|
||||
if (target_supports_agent ())
|
||||
strcat (own_buf, ";QAgent+");
|
||||
|
||||
supported_btrace_packets (own_buf);
|
||||
if (the_target->supports_btrace ())
|
||||
supported_btrace_packets (own_buf);
|
||||
|
||||
if (target_supports_stopped_by_sw_breakpoint ())
|
||||
strcat (own_buf, ";swbreak+");
|
||||
|
||||
Reference in New Issue
Block a user