]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix features/i386/64bit-avx512.xml
authorPedro Alves <palves@redhat.com>
Wed, 1 Oct 2014 09:06:04 +0000 (10:06 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 1 Oct 2014 09:52:54 +0000 (10:52 +0100)
This file's format is invalid, as it's missing some end quotes.

I noticed this because I tried to regenerate all the .dat files in
gdb/regformats/.  I got:

    sh ../../move-if-change ../regformats/i386/x32-avx.tmp ../regformats/i386/x32-avx.dat
    echo "# DO NOT EDIT: generated from i386/x32-avx512.xml" > ../regformats/i386/x32-avx512.tmp
    echo "name:`echo x32-avx512 | sed 's/-/_/g'`" >> ../regformats/i386/x32-avx512.tmp
    echo "xmltarget:x32-avx512.xml" >> ../regformats/i386/x32-avx512.tmp
    echo "expedite:rbp,rsp,rip" \
      >> ../regformats/i386/x32-avx512.tmp
    xsltproc --path "/home/pedro/gdb/mygit/src/gdb/features" --xinclude number-regs.xsl i386/x32-avx512.xml | \
      xsltproc sort-regs.xsl - | \
      xsltproc gdbserver-regs.xsl - >> ../regformats/i386/x32-avx512.tmp
    i386/64bit-avx512.xml:81: parser error : Unescaped '<' not allowed in attributes values
      <reg name="zmm11h" bitsize="256" type="v2ui128/>
      ^
    i386/64bit-avx512.xml:81: parser error : attributes construct error
      <reg name="zmm11h" bitsize="256" type="v2ui128/>
      ^
    i386/64bit-avx512.xml:81: parser error : Couldn't find end of Start Tag reg line 80
      <reg name="zmm11h" bitsize="256" type="v2ui128/>
      ^
    i386/64bit-avx512.xml:82: parser error : Unescaped '<' not allowed in attributes values
      <reg name="zmm12h" bitsize="256" type="v2ui128/>
      ^
    i386/64bit-avx512.xml:82: parser error : attributes construct error
      <reg name="zmm12h" bitsize="256" type="v2ui128/>
      ^
...
    i386/x32-avx512.xml:17: element include: XInclude error : could not load i386/64bit-avx512.xml, and no fallback was found
    -:1: parser error : Document is empty

    ^
    -:1: parser error : Start tag expected, '<' not found

    ^
    unable to parse -
    -:1: parser error : Document is empty

    ^
    -:1: parser error : Start tag expected, '<' not found

    ^
    unable to parse -
    make: *** [../regformats/i386/x32-avx512.dat] Error 6

Interestingly, gdb/expat manages to grok the broken file.

gdb/
2014-10-01  Pedro Alves  <palves@redhat.com>

* features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
(zmm14h): Add missing end quotes.

gdb/ChangeLog
gdb/features/i386/64bit-avx512.xml

index 46bc965a86ee8f291a34c1b90803347818c72a5f..0ba9f440f93862ace2e93b12d3a6fa9355f0fa0b 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-01  Pedro Alves  <palves@redhat.com>
+
+       * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
+       (zmm14h): Add missing end quotes.
+
 2014-10-01  Pedro Alves  <palves@redhat.com>
 
        * features/aarch64-core.xml (cpsr): Change back to 32-bit.
index 5e2bf9f8a0e80d19178f6567e845f68b1ce640fb..c6c158a8955ece5b6e238e75b8fc6416fdebe4f2 100644 (file)
   <reg name="zmm7h" bitsize="256" type="v2ui128"/>
   <reg name="zmm8h" bitsize="256" type="v2ui128"/>
   <reg name="zmm9h" bitsize="256" type="v2ui128"/>
-  <reg name="zmm10h" bitsize="256" type="v2ui128/>
-  <reg name="zmm11h" bitsize="256" type="v2ui128/>
-  <reg name="zmm12h" bitsize="256" type="v2ui128/>
-  <reg name="zmm13h" bitsize="256" type="v2ui128/>
-  <reg name="zmm14h" bitsize="256" type="v2ui128/>
+  <reg name="zmm10h" bitsize="256" type="v2ui128"/>
+  <reg name="zmm11h" bitsize="256" type="v2ui128"/>
+  <reg name="zmm12h" bitsize="256" type="v2ui128"/>
+  <reg name="zmm13h" bitsize="256" type="v2ui128"/>
+  <reg name="zmm14h" bitsize="256" type="v2ui128"/>
   <reg name="zmm15h" bitsize="256" type="v2ui128"/>
   <reg name="zmm16h" bitsize="256" type="v2ui128"/>
   <reg name="zmm17h" bitsize="256" type="v2ui128"/>