aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-09 15:22:09 +0000
committerPedro Alves <palves@redhat.com>2010-04-09 15:22:09 +0000
commita97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804 (patch)
tree0aaaba3414d3122eb3e1ab0306f23350cd25f7b6 /gdb
parent7a66d6033a278a5cddb4a214cc72c238bd7cb1e9 (diff)
downloadgdb-a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804.zip
gdb-a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804.tar.gz
gdb-a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804.tar.bz2
gdb/
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo13
-rw-r--r--gdb/tracepoint.c14
4 files changed, 30 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a7913b2..083e420 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7e272e8..6c0f9ee 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -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
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index f31e0a2..f660959 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -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
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 41fcc97..570ea5d 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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