From: Stan Shebs Date: Fri, 9 Apr 2010 20:46:40 +0000 (+0000) Subject: 2010-04-09 Stan Shebs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=872906844b391ff0b3c7a48f3e2b3c867e0019c0;p=binutils-gdb.git 2010-04-09 Stan Shebs * tracepoint.c (trace_status_mi): Report frames created. * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>: Describe the `frames-created' field, tweak grammar. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7ab074f10c..7a42846e512 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2010-04-09 Stan Shebs + * tracepoint.c (trace_status_mi): Report frames created. + * tracepoint.c (trace_dump_command): Include default-collect expressions. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6c0f9ee09c1..e914bf02017 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 Stan Shebs + + * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>: + Describe the `frames-created' field, tweak grammar. + 2010-04-09 Pedro Alves * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index f660959af2e..887547bf598 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -26421,13 +26421,16 @@ present iff the @samp{stop-reason} field has the value of @samp{passcount}. @item frames -This field is an integer number of currently collected frames. This -field is optional. +@itemx frames-created +The @samp{frames} field is a count of the total number of trace frames +in the trace buffer, while @samp{frames-created} is the total created +during the run, including ones that were discarded, such as when a +circular trace buffer filled up. Both fields are optional. @item buffer-size @itemx buffer-free These fields tell the current size of the tracing buffer and the -remaining space. These field is optional. +remaining space. These fields are optional. @item circular The value of the circular trace buffer flag. @code{1} means that the diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index f5fa8c85cad..d3160a9336f 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1798,6 +1798,8 @@ trace_status_mi (int on_stop) if (ts->traceframe_count != -1) ui_out_field_int (uiout, "frames", ts->traceframe_count); + if (ts->traceframes_created != -1) + ui_out_field_int (uiout, "frames-created", ts->traceframes_created); if (ts->buffer_size != -1) ui_out_field_int (uiout, "buffer-size", ts->buffer_size); if (ts->buffer_free != -1)