From 011aacb08ecf70c5d4ad1d6976c32a734846ef79 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 23 Mar 2010 22:05:46 +0000 Subject: 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. --- gdb/mi/mi-cmds.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/mi/mi-cmds.c') diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index f430698..92311e8 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -109,6 +109,7 @@ struct mi_cmd mi_cmds[] = { "trace-define-variable", { NULL, 0 }, mi_cmd_trace_define_variable }, { "trace-find", { NULL, 0 }, mi_cmd_trace_find }, { "trace-list-variables", { NULL, 0 }, mi_cmd_trace_list_variables }, + { "trace-save", { NULL, 0 }, mi_cmd_trace_save }, { "trace-start", { NULL, 0 }, mi_cmd_trace_start }, { "trace-status", { NULL, 0 }, mi_cmd_trace_status }, { "trace-stop", { NULL, 0 }, mi_cmd_trace_stop }, -- cgit v1.1