gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 14 Mar 2013 08:50:55 +0000 (08:50 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 14 Mar 2013 08:50:55 +0000 (08:50 +0000)
commit3f43bc09fa4d7455f1c54c7df66f89eac8987034
tree8e63c94693e4dc1f0e912dd00614234ad54d7c4c
parent70ef31611327dfe3f991515838362a0f5e369d68
gdb/
* tracepoint.c (trace_file_writer_xfree): New.
(struct tfile_writer_data): New.
(tfile_dtor, tfile_can_target_save, tfile_start): New.
(tfile_write_header, tfile_write_regblock_type): New.
(tfile_write_status, tfile_write_uploaded_tsv): New.
(tfile_write_uploaded_tp, tfile_write_definition_end): New.
(tfile_write_raw_data, (tfile_end): New.
(tfile_write_ops): New global variable.
(TRACE_WRITE_R_BLOCK): New macro.
(TRACE_WRITE_M_BLOCK_HEADER): New macro.
(TRACE_WRITE_M_BLOCK_MEMORY): New macro.
(TRACE_WRITE_V_BLOCK): New macro.
(trace_save): Add extra one parameter WRITER.  Make it static.
Use WRITER to writer trace.
(tfile_trace_file_writer_new): New.
(trace_save_command): Caller update.
(trace_save_tfile): Write trace data in TFILE format.
* tracepoint.h (struct trace_frame_write_ops): New.
(struct trace_file_write_ops): New.
(struct trace_file_writer): New.
(trace_save): Remove its declaration.
(trace_save_tfile): Declare it.
* mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
instead of trace_save.
gdb/ChangeLog
gdb/mi/mi-main.c
gdb/tracepoint.c
gdb/tracepoint.h