summaryrefslogtreecommitdiff
path: root/gdb/features
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/features
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/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 00000000000..6fe0cd661f1
--- /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>