From 33da3f1cb51cb8851ab5b12d1f5fa61e45232276 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 9 Apr 2010 03:00:58 +0000 Subject: 2010-04-08 Stan Shebs Pedro Alves * tracepoint.h (struct trace_status): New fields disconnected_tracing and circular_buffer. (disconnect_tracing): Rename from disconnect_or_stop_tracing. * tracepoint.c (trace_status_command): Display target's status for disconnected tracing and circular buffer. (disconnect_tracing): Rename from disconnect_or_stop_tracing, add query for non-disconnected-tracing case, remove the stop_tracing call. (tfile_open): Clear disconnected and circular buffer status. (trace_save): Save disconnected and circular buffer status. (parse_trace_status): Parse disconnected and circular buffer status, also recognize disconnected as a stop reason. * remote.c (remote_set_disconnected_tracing): Only set QTDisconnected if the remote end supports disconnected tracing. Warn otherwise, if trying to enable disconnected tracing. * infcmd.c (detach_command): Update disconnect_tracing call. * cli/cli-cmds.c (quit_command): Ditto. * gdb.texinfo (Tracepoint Packets): Describe disconn and circular trace status fields. --- gdb/doc/gdb.texinfo | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'gdb/doc/gdb.texinfo') diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 01ede98..bd2b441 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31508,10 +31508,11 @@ The trace stopped for some other reason. @end table -Additional optional fields supply statistical information. Although -not required, they are extremely useful for users monitoring the -progress of a trace run. If a trace has stopped, and these numbers -are reported, they must reflect the state of the just-stopped trace. +Additional optional fields supply statistical and other information. +Although not required, they are extremely useful for users monitoring +the progress of a trace run. If a trace has stopped, and these +numbers are reported, they must reflect the state of the just-stopped +trace. @table @samp @@ -31528,6 +31529,17 @@ The total size of the trace buffer, in bytes. @item tfree:@var{n} The number of bytes still unused in the buffer. +@item circular:@var{n} +The value of the circular trace buffer flag. @code{1} means that the +trace buffer is circular and old trace frames will be discarded if +necessary to make room, @code{0} means that the trace buffer is linear +and may fill up. + +@item disconn:@var{n} +The value of the disconnected tracing flag. @code{1} means that +tracing will continue after @value{GDBN} disconnects, @code{0} means +that the trace run will stop. + @end table @item qTV:@var{var} -- cgit v1.1