aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
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/tracepoint.h
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/tracepoint.h')
-rw-r--r--gdb/tracepoint.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index c273f25..1ae5c6c 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -95,11 +95,21 @@ struct trace_status
int stopping_tracepoint;
+ /* Number of traceframes currently in the buffer. */
+
int traceframe_count;
- unsigned long long buffer_size;
+ /* Number of traceframes created since start of run. */
+
+ int traceframes_created;
+
+ /* Total size of the target's trace buffer. */
+
+ int buffer_size;
+
+ /* Unused bytes left in the target's trace buffer. */
- unsigned long long buffer_free;
+ int buffer_free;
};
struct trace_status *current_trace_status (void);