diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-03-18 21:23:35 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-03-18 21:23:35 +0000 |
commit | 4daf5ac07eb7f8cd187f7800785b2e5a465fc38a (patch) | |
tree | b58639d3f486f6fff2649cf5a52e20a3d649bc37 /gdb/target.h | |
parent | 576ee33af3eb7e4db87587ac57d91ea3b585896a (diff) | |
download | fsf-binutils-gdb-4daf5ac07eb7f8cd187f7800785b2e5a465fc38a.zip fsf-binutils-gdb-4daf5ac07eb7f8cd187f7800785b2e5a465fc38a.tar.gz fsf-binutils-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/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 7fd9bad..2b21f0f 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -664,6 +664,7 @@ struct target_ops /* Set the target's tracing behavior in response to unexpected disconnection - set VAL to 1 to keep tracing, 0 to stop. */ void (*to_set_disconnected_tracing) (int val); + void (*to_set_circular_trace_buffer) (int val); /* Return the processor core that thread PTID was last seen on. This information is updated only when: @@ -1359,6 +1360,9 @@ extern int target_search_memory (CORE_ADDR start_addr, #define target_set_disconnected_tracing(val) \ (*current_target.to_set_disconnected_tracing) (val) +#define target_set_circular_trace_buffer(val) \ + (*current_target.to_set_circular_trace_buffer) (val) + /* Command logging facility. */ #define target_log_command(p) \ |