diff options
author | Stan Shebs <shebs@apple.com> | 2010-03-18 21:23:32 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 2010-03-18 21:23:32 +0000 |
commit | 175ca91d848088ffa726d1893e373fb6c22b28ec (patch) | |
tree | 25e1036edc6f82e242c9a03a6e1cd037178a9acc /gdb/NEWS | |
parent | 824eed9133dacbdeadbdd89621306c8172855b6c (diff) | |
download | gdb-175ca91d848088ffa726d1893e373fb6c22b28ec.tar.gz |
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/NEWS')
-rw-r--r-- | gdb/NEWS | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -114,7 +114,14 @@ Renesas RX rx tracing run at the moment that it was saved. To create a trace file, use "tsave <filename>", and to use it, do "target tfile <name>". - + + ** Circular trace buffer + + You can ask the target agent to handle the trace buffer as a + circular buffer, discarding the oldest trace frames to make room for + newer ones, by setting circular-trace-buffer to on. This feature may + not be available for all target agents. + * Changed commands disassemble @@ -215,6 +222,13 @@ show disconnected-tracing loses its connection to GDB. If 0, the target is to stop tracing upon disconnection. +set circular-trace-buffer +show circular-trace-buffer + If set to on, the target is instructed to use a circular trace buffer + and discard the oldest trace frames instead of stopping the trace due + to a full trace buffer. If set to off, the trace stops when the buffer + fills up. Some targets may not support this. + set script-extension off|soft|strict show script-extension If set to "off", the debugger does not perform any script language @@ -258,6 +272,9 @@ qTV QTDisconnected Set desired tracing behavior upon disconnection. +QTBuffer:circular + Set the trace buffer to be linear or circular. + qTfP, qTsP Get data about the tracepoints currently in use. |