Implement -trace-save.

* mi-cmds.h (mi_cmds_trace_save): Declare.
	* mi-cmds.c (mi_cmds): Register -trace-save.
	* mi/mi-main.c (mi_cmd_trace_save): New.
	* remote.c (remote_save_trace_data): Take const parameter.
	* target.h (struct target_ops::to_save_trace_data): Take
	const parameter.
	* target.c (update_current_target): Adjust to the above.
	* tracepoint.c (trave_save): New, extracted from
	(trace_save_command): ...this.
	(tfile_trace_find): Remove message that is unnecessary now
	that 'tfind' reports found frame.
	* tracepoint.h (trace_save): Declare.
This commit is contained in:
Vladimir Prus
2010-03-23 22:05:46 +00:00
parent f197e0f1b1
commit 011aacb08e
9 changed files with 92 additions and 30 deletions

View File

@ -653,7 +653,7 @@ struct target_ops
location pointed to by VAL, else returning 0. */
int (*to_get_trace_state_variable_value) (int tsv, LONGEST *val);
int (*to_save_trace_data) (char *filename);
int (*to_save_trace_data) (const char *filename);
int (*to_upload_tracepoints) (struct uploaded_tp **utpp);