From a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 9 Apr 2010 15:22:09 +0000 Subject: 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. --- gdb/tracepoint.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gdb/tracepoint.c') 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 -- cgit v1.1