btrace: store raw btrace data
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 3 Feb 2014 10:40:50 +0000 (11:40 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 2 Jul 2015 10:54:20 +0000 (12:54 +0200)
commit9be54cae43929ab989fcd44dfcf8d3313a55f7a0
tree94df2cf071445b2fc70446451ce78b4cb441cded
parent010a18a1b12ec6d5219b7e602aa6abe12344dd1a
btrace: store raw btrace data

Store the raw branch trace data that has been read from the target.

This data can be used for maintenance commands as well as for generating
a core file for the "record save" command.

gdb/
* btrace.c (btrace_fetch): Append the new trace data.
(btrace_clear): Clear the stored trace data.
* btrace.h (btrace_thread_info) <data>: New.
* common/btrace-common.h (btrace_data_clear)
(btrace_data_append): New.
* common/btrace-common.c (btrace_data_clear)
(btrace_data_append): New.
gdb/ChangeLog
gdb/btrace.c
gdb/btrace.h
gdb/common/btrace-common.c
gdb/common/btrace-common.h