summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2010-03-23 21:46:33 +0000
committerVladimir Prus <vladimir@codesourcery.com>2010-03-23 21:46:33 +0000
commitf224b49dcd9afdff4cc97bbb6d88dec3b4dfc433 (patch)
treecb6ca8113e3ac980a53fc6da11dfa253b0d99a87 /gdb/tracepoint.h
parent6534d786b1826ee9e9742b9ab13b4a614fa648d0 (diff)
downloadbinutils-gdb-f224b49dcd9afdff4cc97bbb6d88dec3b4dfc433.tar.gz
-trace-start/-trace-end/-trace-status.
* mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status and -trace-stop. * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) (mi_cmd_trace_stop): Declare. * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) (mi_cmd_trace_stop): New. * tracepoint.c (start_tracing): New, extracted from... (trace_start_command): ...this. (trace_status_mi): New. * tracepoint.h (struct trace_status): Document stopping_tracepoint. (start_tracing, stop_tracing, trace_status_mi): Declare.
Diffstat (limited to 'gdb/tracepoint.h')
-rw-r--r--gdb/tracepoint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index 9d0d78e20b4..2c41cfd72f0 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -86,6 +86,8 @@ struct trace_status
enum trace_stop_reason stop_reason;
+ /* If stop_reason == tracepoint_passcount, the on-target number
+ of the tracepoint which caused the stop. */
int stopping_tracepoint;
/* Number of traceframes currently in the buffer. */
@@ -167,4 +169,9 @@ extern void merge_uploaded_trace_state_variables (struct uploaded_tsv **utsvp);
extern void disconnect_or_stop_tracing (int from_tty);
+extern void start_tracing (void);
+extern void stop_tracing (void);
+
+extern void trace_status_mi (int on_stop);
+
#endif /* TRACEPOINT_H */