gdb/
authorPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 15:22:09 +0000 (15:22 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 15:22:09 +0000 (15:22 +0000)
* tracepoint.c (trace_status_mi): Report disconnected tracing and
circular trace buffer statuses.

gdb/doc/
* gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
Describe the `circular' and `disconnected' fields.

gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/tracepoint.c

index a7913b2cff70226e49e05b7d73fecd664c7dcdd2..083e420eb7d43d2636820700c15c34b96aa75d18 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * tracepoint.c (trace_status_mi): Report disconnected tracing and
+       circular trace buffer statuses.
+
 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * config/djgpp/fnchange.lst: Fix typo in translations for
index 7e272e8349c380c398362358b0e1f7567cd80e66..6c0f9ee09c1e56c251c0f7605701b5e1a19cf3c8 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
+       Describe the `circular' and `disconnected' fields.
+
 2010-04-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gdb.texinfo (maint print registers): Mention unavailable and
index f31e0a21e7a9a9a76ae6181d15b5b253ee8d2d3a..f660959af2e94fc7d545d201489cc9f5836364c2 100644 (file)
@@ -26387,7 +26387,7 @@ The corresponding @value{GDBN} command is @samp{tstart}.
  -trace-status
 @end smallexample
 
-Obtains the status of a tracing experiement.  The result may include
+Obtains the status of a tracing experiment.  The result may include
 the following fields:
 
 @table @samp
@@ -26429,6 +26429,17 @@ field is optional.
 These fields tell the current size of the tracing buffer and the
 remaining space.  These field is optional.
 
+@item circular
+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 disconnected
+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
 
 @subsubheading @value{GDBN} Command
index 41fcc97bf65095e1e54c200d59d653dddd572210..570ea5dcc351da6a7a3c76e1a1ba76428fda8c67 100644 (file)
@@ -1796,13 +1796,15 @@ trace_status_mi (int on_stop)
        }
     }
 
-
-  if ((int) ts->traceframe_count != -1)
+  if (ts->traceframe_count != -1)
     ui_out_field_int (uiout, "frames", ts->traceframe_count);
-  if ((int) ts->buffer_size != -1)
-    ui_out_field_int (uiout, "buffer-size",  (int) ts->buffer_size);
-  if ((int) ts->buffer_free != -1)
-    ui_out_field_int (uiout, "buffer-free",  (int) ts->buffer_free);
+  if (ts->buffer_size != -1)
+    ui_out_field_int (uiout, "buffer-size", ts->buffer_size);
+  if (ts->buffer_free != -1)
+    ui_out_field_int (uiout, "buffer-free", ts->buffer_free);
+
+  ui_out_field_int (uiout, "disconnected",  ts->disconnected_tracing);
+  ui_out_field_int (uiout, "circular",  ts->circular_buffer);
 }
 
 /* This function handles the details of what to do about an ongoing
This page took 0.060368 seconds and 4 git commands to generate.