summaryrefslogtreecommitdiff
path: root/gdb/btrace.h
diff options
context:
space:
mode:
authormmetzger <mmetzger>2013-03-11 08:28:57 +0000
committermmetzger <mmetzger>2013-03-11 08:28:57 +0000
commitfcd5b92053c6b4cd056601468296350a78aa7eb4 (patch)
tree79a5e6d440893065aad7f4a2fc5271af6dd3ff3b /gdb/btrace.h
parent14c2e89c3b86575c3772143226c76254c8d95384 (diff)
downloadgdb-fcd5b92053c6b4cd056601468296350a78aa7eb4.tar.gz
Define the xml document style for transferring branch trace data.
Add a function to parse a btrace xml document into a vector of branch trace blocks. gdb/ * features/btrace.dtd: New file. * Makefile.in (XMLFILES): Add btrace.dtd. * btrace.h (parse_xml_btrace): New declaration. * btrace.c: Include xml-support.h. (parse_xml_btrace): New function. (parse_xml_btrace_block): New function. (block_attributes): New struct. (btrace_attributes): New struct. (btrace_children): New struct. (btrace_elements): New struct.
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 26b1686071f..bd8425dea81 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -136,4 +136,7 @@ extern void btrace_clear (struct thread_info *);
/* Clear the branch trace for all threads when an object file goes away. */
extern void btrace_free_objfile (struct objfile *);
+/* Parse a branch trace xml document into a block vector. */
+extern VEC (btrace_block_s) *parse_xml_btrace (const char*);
+
#endif /* BTRACE_H */