From fcd5b92053c6b4cd056601468296350a78aa7eb4 Mon Sep 17 00:00:00 2001 From: mmetzger Date: Mon, 11 Mar 2013 08:28:57 +0000 Subject: 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. --- gdb/btrace.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/btrace.h') 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 */ -- cgit v1.2.1