diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:28:58 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:28:58 +0000 |
commit | c12a29171fe3379095cfc896e0f8ddfb18c614c3 (patch) | |
tree | 309b8ca660993ea0fb05996e446d84e315c65182 /gdb/btrace.h | |
parent | 3e3aea48e21e35069ec893c4b5d49de494f8329c (diff) | |
download | gdb-c12a29171fe3379095cfc896e0f8ddfb18c614c3.zip gdb-c12a29171fe3379095cfc896e0f8ddfb18c614c3.tar.gz gdb-c12a29171fe3379095cfc896e0f8ddfb18c614c3.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h index 26b1686..bd8425d 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 */ |