aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.h
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2014-02-03 11:40:50 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2015-07-02 12:54:20 +0200
commit9be54cae43929ab989fcd44dfcf8d3313a55f7a0 (patch)
tree94df2cf071445b2fc70446451ce78b4cb441cded /gdb/btrace.h
parent010a18a1b12ec6d5219b7e602aa6abe12344dd1a (diff)
downloadbinutils-9be54cae43929ab989fcd44dfcf8d3313a55f7a0.zip
binutils-9be54cae43929ab989fcd44dfcf8d3313a55f7a0.tar.gz
binutils-9be54cae43929ab989fcd44dfcf8d3313a55f7a0.tar.bz2
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.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r--gdb/btrace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h
index c25dc84..0845b78 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -248,6 +248,9 @@ struct btrace_thread_info
the underlying architecture. */
struct btrace_target_info *target;
+ /* The raw branch trace data for the below branch trace. */
+ struct btrace_data data;
+
/* The current branch trace for this thread (both inclusive).
The last instruction of END is the current instruction, which is not