+2013-03-28 Pedro Alves <palves@redhat.com>
+
+ * NEWS (New options): New section.
+ (New options): Mention set/show remote trace-status-packet.
+ * remote.c (PACKET_qTStatus): New enumeration value.
+ (remote_get_trace_status): Skip sending qTStatus if the packet is
+ disabled. Use packet_ok.
+ (_initialize_remote): Register a configuration command for
+ qTStatus packet.
+
2013-03-28 Doug Evans <dje@google.com>
* symfile.c (find_separate_debug_file): Add comment.
maint set|show per-command symtab
Enable display of per-command gdb resource usage.
+* New options
+
+set remote trace-status-packet
+show remote trace-status-packet
+ Set/show the use of remote protocol qTStatus packet.
+
* The command 'tsave' can now support new option '-ctf' to save trace
buffer in Common Trace Format.
+2013-03-28 Pedro Alves <palves@redhat.com>
+
+ * gdb.texinfo (Remote Configuration) <set remote @var{name}-packet
+ table>: Add entry for "trace-status".
+
2013-03-28 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Maintenance Commands): Use @enumerate, not "@table
@tab @code{qAttached}
@tab Querying remote process attach state.
+@item @code{trace-status}
+@tab @code{qTStatus}
+@tab @code{tstatus}
+
@item @code{traceframe-info}
@tab @code{qXfer:traceframe-info:read}
@tab Traceframe info
PACKET_qGetTIBAddr,
PACKET_qGetTLSAddr,
PACKET_qSupported,
+ PACKET_qTStatus,
PACKET_QPassSignals,
PACKET_QProgramSignals,
PACKET_qSearch_memory,
/* FIXME we need to get register block size some other way. */
extern int trace_regblock_size;
volatile struct gdb_exception ex;
+ enum packet_result result;
+
+ if (remote_protocol_packets[PACKET_qTStatus].support == PACKET_DISABLE)
+ return -1;
trace_regblock_size = get_remote_arch_state ()->sizeof_g_packet;
throw_exception (ex);
}
+ result = packet_ok (p, &remote_protocol_packets[PACKET_qTStatus]);
+
/* If the remote target doesn't do tracing, flag it. */
- if (*p == '\0')
+ if (result == PACKET_UNKNOWN)
return -1;
/* We're working with a live target. */
add_packet_config_cmd (&remote_protocol_packets[PACKET_qSearch_memory],
"qSearch:memory", "search-memory", 0);
+ add_packet_config_cmd (&remote_protocol_packets[PACKET_qTStatus],
+ "qTStatus", "trace-status", 0);
+
add_packet_config_cmd (&remote_protocol_packets[PACKET_vFile_open],
"vFile:open", "hostio-open", 0);