aboutsummaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorMarkus Metzger <mmetzger@sourceware.org>2013-03-11 08:28:58 +0000
committerMarkus Metzger <mmetzger@sourceware.org>2013-03-11 08:28:58 +0000
commitc12a29171fe3379095cfc896e0f8ddfb18c614c3 (patch)
tree309b8ca660993ea0fb05996e446d84e315c65182 /gdb/features
parent3e3aea48e21e35069ec893c4b5d49de494f8329c (diff)
downloadfsf-binutils-gdb-c12a29171fe3379095cfc896e0f8ddfb18c614c3.zip
fsf-binutils-gdb-c12a29171fe3379095cfc896e0f8ddfb18c614c3.tar.gz
fsf-binutils-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/features')
-rw-r--r--gdb/features/btrace.dtd12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/features/btrace.dtd b/gdb/features/btrace.dtd
new file mode 100644
index 0000000..6fe0cd6
--- /dev/null
+++ b/gdb/features/btrace.dtd
@@ -0,0 +1,12 @@
+<!-- Copyright (C) 2013 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!ELEMENT btrace (block)* >
+<!ATTLIST btrace version CDATA #FIXED "1.0">
+
+<!ELEMENT block EMPTY>
+<!ATTLIST block begin CDATA #REQUIRED
+ end CDATA #REQUIRED>