aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-06-13 19:22:35 +0000
committerDaniel Jacobowitz <drow@false.org>2007-06-13 19:22:35 +0000
commit1780a0edf4903787581db60d46e216acc7c70b37 (patch)
tree674619ab329cb7d68bf0ec978b4077b9ded52306 /gdb/doc
parent98a29c7e2e0b8c73f829745cd802537f839cdbda (diff)
downloadfsf-binutils-gdb-1780a0edf4903787581db60d46e216acc7c70b37.zip
fsf-binutils-gdb-1780a0edf4903787581db60d46e216acc7c70b37.tar.gz
fsf-binutils-gdb-1780a0edf4903787581db60d46e216acc7c70b37.tar.bz2
* gdb.texinfo (Target Description Format): Add version attribute
for <target>. * xml-tdesc.c (tdesc_start_target): New. (target_attributes): New. (tdesc_elements): Use it. * features/gdb-target.dtd: Add #FIXED version attribute for <target>.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 5211251..8f7e732 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,10 @@
2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
+ * gdb.texinfo (Target Description Format): Add version attribute
+ for <target>.
+
+2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
+
* gdb.texinfo (MIPS Features): Document org.gnu.gdb.mips.linux.
2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 9c71ad2..230a6ca 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -25494,7 +25494,7 @@ target, or to warn you if you connect to an unsupported target.
Here is a simple target description:
@smallexample
-<target>
+<target version="1.0">
<architecture>i386:x86-64</architecture>
</target>
@end smallexample
@@ -25510,7 +25510,7 @@ are explained further below.
@smallexample
<?xml version="1.0"?>
<!DOCTYPE target SYSTEM "gdb-target.dtd">
-<target>
+<target version="1.0">
@r{[}@var{architecture}@r{]}
@r{[}@var{feature}@dots{}@r{]}
</target>
@@ -25521,7 +25521,11 @@ The description is generally insensitive to whitespace and line
breaks, under the usual common-sense rules. The XML version
declaration and document type declaration can generally be omitted
(@value{GDBN} does not require them), but specifying them may be
-useful for XML validation tools.
+useful for XML validation tools. The @samp{version} attribute for
+@samp{<target>} may also be omitted, but we recommend
+including it; if future versions of @value{GDBN} use an incompatible
+revision of @file{gdb-target.dtd}, they will detect and report
+the version mismatch.
@subsection Inclusion
@cindex target descriptions, inclusion