aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/circ.exp
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-18 21:23:35 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-18 21:23:35 +0000
commit4daf5ac07eb7f8cd187f7800785b2e5a465fc38a (patch)
treeb58639d3f486f6fff2649cf5a52e20a3d649bc37 /gdb/testsuite/gdb.trace/circ.exp
parent576ee33af3eb7e4db87587ac57d91ea3b585896a (diff)
downloadgdb-4daf5ac07eb7f8cd187f7800785b2e5a465fc38a.zip
gdb-4daf5ac07eb7f8cd187f7800785b2e5a465fc38a.tar.gz
gdb-4daf5ac07eb7f8cd187f7800785b2e5a465fc38a.tar.bz2
2010-03-18 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com> * target.h (struct target_ops): New method to_set_circular_trace_buffer. (target_set_circular_trace_buffer): New macro. * target.c (update_current_target): Add to_set_circular_trace_buffer, fix to_set_disconnected_tracing default behavior. * remote.c (remote_set_circular_trace_buffer): New function. (init_remote_ops): Add it to vector. * tracepoint.h (struct trace_status): New field traceframes_created, change buffer_size and buffer_free to int. * tracepoint.c (circular_trace_buffer): New global. (start_tracing): Send values of disconnected tracing and circular trace buffer settings. (set_circular_trace_buffer): New function. (parse_trace_state): Handle total space and frames created. (trace_status_command): Display total space and total frames created. (trace_save): Write out new status values. (parse_trace_status): Set traceframe_count, traceframes_created, buffer_free and buffer_size to -1 by default. (_initialize_tracepoint): New setshow for circular-trace-buffer. * NEWS: Mention the circular trace buffer option. * gdb.texinfo (Starting and Stopping Trace Experiments): Describe circular-trace-buffer. (Tracepoint Packets): Describe QTBuffer, and details of the qTStatus reply. * gdb.trace/circ.exp: Test circular-trace-buffer. * gdb.trace/tfile.exp: Update tstatus test.
Diffstat (limited to 'gdb/testsuite/gdb.trace/circ.exp')
-rw-r--r--gdb/testsuite/gdb.trace/circ.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/circ.exp b/gdb/testsuite/gdb.trace/circ.exp
index d18e7eb..bb3dcd3 100644
--- a/gdb/testsuite/gdb.trace/circ.exp
+++ b/gdb/testsuite/gdb.trace/circ.exp
@@ -197,6 +197,15 @@ gdb_load $binfile
if [target_info exists gdb_stub] {
gdb_step_for_stub;
}
+
+gdb_test "set circular-trace-buffer on" "" "set circular-trace-buffer on"
+
+gdb_test "show circular-trace-buffer" "Target's use of circular trace buffer is on." "show circular-trace-buffer (on)"
+
+gdb_test "set circular-trace-buffer off" "" "set circular-trace-buffer off"
+
+gdb_test "show circular-trace-buffer" "Target's use of circular trace buffer is off." "show circular-trace-buffer (off)"
+
# Body of test encased in a proc so we can return prematurely.
if { ![gdb_trace_circular_tests] } then {
# Set trace buffer attributes back to normal