aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
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/tracepoint.c
parent7a66d6033a278a5cddb4a214cc72c238bd7cb1e9 (diff)
downloadfsf-binutils-gdb-a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804.zip
fsf-binutils-gdb-a97153c7f8c806c0ebc5ba99e6cbe2f0f94b8804.tar.gz
fsf-binutils-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/tracepoint.c')
-rw-r--r--gdb/tracepoint.c14
1 files changed, 8 insertions, 6 deletions
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