diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2010-03-23 21:50:11 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2010-03-23 21:50:11 +0000 |
commit | 40e1c229a2dd402eb050b1025c4b1b7667a7e83e (patch) | |
tree | e8fa1df36bc7f26c586864858edfca5915448df9 /gdb/tracepoint.h | |
parent | 9b4c786c6c9f2599873343b935a46a446ba1c029 (diff) | |
download | gdb-40e1c229a2dd402eb050b1025c4b1b7667a7e83e.zip gdb-40e1c229a2dd402eb050b1025c4b1b7667a7e83e.tar.gz gdb-40e1c229a2dd402eb050b1025c4b1b7667a7e83e.tar.bz2 |
-trace-define-variable and -trace-list-variables.
* tracepoint.c (create_trace_state_variable): Make
private copy of name, as opposed to assuming the
pointer lives forever.
(tvariables_info_1): New.
(tvariables_info): Use the above.
* tracepoint.h (create_trace_state_variable, tvariables_info_1):
Declare.
* mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
and -trace-list-variables.
* mi/mi-cmds.h (mi_cmd_trace_define_variable)
(mi_cmd_trace_list_variables): New.
* mi/mi-main.c (mi_cmd_trace_define_variable)
(mi_cmd_trace_list_variables): New.
Diffstat (limited to 'gdb/tracepoint.h')
-rw-r--r-- | gdb/tracepoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h index 2c41cfd..ef4c8f0 100644 --- a/gdb/tracepoint.h +++ b/gdb/tracepoint.h @@ -155,6 +155,7 @@ extern void end_actions_pseudocommand (char *args, int from_tty); extern void while_stepping_pseudocommand (char *args, int from_tty); extern struct trace_state_variable *find_trace_state_variable (const char *name); +extern struct trace_state_variable *create_trace_state_variable (const char *name); extern void parse_trace_status (char *line, struct trace_status *ts); @@ -174,4 +175,6 @@ extern void stop_tracing (void); extern void trace_status_mi (int on_stop); +extern void tvariables_info_1 (void); + #endif /* TRACEPOINT_H */ |