forked from Imagelibrary/binutils-gdb
2010-04-08 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com> * tracepoint.h (struct trace_status): New fields disconnected_tracing and circular_buffer. (disconnect_tracing): Rename from disconnect_or_stop_tracing. * tracepoint.c (trace_status_command): Display target's status for disconnected tracing and circular buffer. (disconnect_tracing): Rename from disconnect_or_stop_tracing, add query for non-disconnected-tracing case, remove the stop_tracing call. (tfile_open): Clear disconnected and circular buffer status. (trace_save): Save disconnected and circular buffer status. (parse_trace_status): Parse disconnected and circular buffer status, also recognize disconnected as a stop reason. * remote.c (remote_set_disconnected_tracing): Only set QTDisconnected if the remote end supports disconnected tracing. Warn otherwise, if trying to enable disconnected tracing. * infcmd.c (detach_command): Update disconnect_tracing call. * cli/cli-cmds.c (quit_command): Ditto. * gdb.texinfo (Tracepoint Packets): Describe disconn and circular trace status fields.
This commit is contained in:
@@ -106,6 +106,16 @@ struct trace_status
|
||||
/* Unused bytes left in the target's trace buffer. */
|
||||
|
||||
int buffer_free;
|
||||
|
||||
/* 1 if the target will continue tracing after disconnection, else
|
||||
0. If the target does not report a value, assume 0. */
|
||||
|
||||
int disconnected_tracing;
|
||||
|
||||
/* 1 if the target is using a circular trace buffer, else 0. If the
|
||||
target does not report a value, assume 0. */
|
||||
|
||||
int circular_buffer;
|
||||
};
|
||||
|
||||
struct trace_status *current_trace_status (void);
|
||||
@@ -189,7 +199,7 @@ extern struct breakpoint *create_tracepoint_from_upload (struct uploaded_tp *utp
|
||||
extern void merge_uploaded_tracepoints (struct uploaded_tp **utpp);
|
||||
extern void merge_uploaded_trace_state_variables (struct uploaded_tsv **utsvp);
|
||||
|
||||
extern void disconnect_or_stop_tracing (int from_tty);
|
||||
extern void disconnect_tracing (int from_tty);
|
||||
|
||||
extern void start_tracing (void);
|
||||
extern void stop_tracing (void);
|
||||
|
||||
Reference in New Issue
Block a user