-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.
This commit is contained in:
Vladimir Prus
2010-03-23 21:50:11 +00:00
parent 9b4c786c6c
commit 40e1c229a2
6 changed files with 119 additions and 17 deletions

View File

@@ -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 */