diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-01-06 20:31:28 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-01-06 20:31:28 +0000 |
commit | d5551862dfa8c22746642b9a7f66b076557a0325 (patch) | |
tree | 7af2dbf86156804de50363834b2290d3a999b7ec /gdb/NEWS | |
parent | 30fd33bb933183e837b6709e189f1122333b95e2 (diff) | |
download | gdb-d5551862dfa8c22746642b9a7f66b076557a0325.zip gdb-d5551862dfa8c22746642b9a7f66b076557a0325.tar.gz gdb-d5551862dfa8c22746642b9a7f66b076557a0325.tar.bz2 |
Support disconnected tracing.
* infcmd.c (detach_command): Ask whether to stop tracing.
* cli/cli-cmds.c (quit_command): Ditto.
* breakpoint.h (struct breakpoint): New field number_on_target.
* breakpoint.c (create_tracepoint_from_upload): New function.
(get_tracepoint_by_number_on_target): New function.
* remote.c (struct remote): New field disconnected_tracing.
(remote_disconnected_tracing_feature): New function.
(remote_protocol_features): Add DisconnectedTracing.
(struct uploaded_tp): New struct.
(uploaded_tps): New global.
(get_uploaded_tp): New function.
(find_matching_tracepoint): New function.
(remote_get_tracing_state): New function.
(remote_start_remote): Call it.
* tracepoint.c (disconnected_tracing): New global.
(trace_start_command): Initialize number_on_target.
(stop_tracing): New function, split out from...
(trace_stop_command): Call stop_tracing.
(get_trace_status): New function, split out from...
(trace_status_command): Call get_trace_status, add info on
disconnection behavior.
(disconnect_or_stop_tracing): New function.
(finish_tfind_command): Translate from number on target.
(trace_find_tracepoint_command): Translate to number on target.
(send_disconnected_tracing_value): New function.
(set_disconnected_tracing): New function.
(_initialize_tracepoint): Add disconnected-tracing variable.
* NEWS: Mention disconnected tracing.
* gdb.texinfo (Starting and Stopping Trace Experiments): Document
disconnected tracing.
(Tracepoint Packets): Document new protocol.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -24,7 +24,11 @@ Renesas RX rx lists inferiors that are not running yet or that have exited already. See also "New commands" and "New options" below. -* Trace state variables +* New tracing features + + GDB's tracepoint facility now includes several new features: + + ** Trace state variables GDB tracepoints now include support for trace state variables, which are variables managed by the target agent during a tracing @@ -37,7 +41,7 @@ Renesas RX rx command to create, and "info tvariables" to view; see "Trace State Variables" in the manual for more detail. -* Fast tracepoints + ** Fast tracepoints GDB now includes an option for defining fast tracepoints, which targets may implement more efficiently, such as by installing a jump @@ -49,6 +53,14 @@ Renesas RX rx fast tracepoint, use the "ftrace" command, with syntax identical to the regular trace command. + ** Disconnected tracing + + It is now possible to detach GDB from the target while it is running + a trace experiment, then reconnect later to see how the experiment + is going. In addition, a new variable disconnected-tracing lets you + tell the target agent whether to continue running a trace if the + connection is lost unexpectedly. + * Changed commands disassemble @@ -130,6 +142,12 @@ show default-collect This is a useful way to ensure essential items are not overlooked, such as registers or a critical global variable. +set disconnected-tracing +show disconnected-tracing + If set to 1, the target is instructed to continue tracing if it + loses its connection to GDB. If 0, the target is to stop tracing + upon disconnection. + * New remote packets QTDV @@ -138,6 +156,12 @@ QTDV qTV Get the current value of a trace state variable. +QTDisconnected + Set desired tracing behavior upon disconnection. + +qTfP, qTsP + Get data about the tracepoints currently in use. + * Bug fixes Process record now works correctly with hardware watchpoints. |