ee8da4b839
Newer gdbservers may be talking to older gdbs, and older gdbs will flag a missing "end" as an error. So just make "end" required again, and for compatibility change the default field type to "bool". gdb/ChangeLog: 2016-10-06 Doug Evans <dje@google.com> * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify "end" in all fields. * features/aarch64.c: Regenerate. * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved" and "enabled" fields. Correct size of "enabled" field. * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved" and "enabled" fields. * features/i386/i386-avx-mpx-linux.c: Regenerate. * features/i386/i386-avx-mpx.c: Regenerate. * features/i386/i386-avx512-linux.c: Regenerate. * features/i386/i386-avx512.c: Regenerate. * features/i386/i386-mpx-linux.c: Regenerate. * features/i386/i386-mpx.c: Regenerate. * features/arc-arcompact.c: Regenerate. * features/arc-v2.c: Regenerate. * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit fields default to "bool" type. Revert 2016-03-15 Doug Evans <dje@google.com> * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec. * features/i386/32bit-sse.xml (i386_eflags): Ditto. * features/i386/64bit-core.xml (i386_eflags): Ditto. * features/i386/64bit-sse.xml (i386_eflags): Ditto. * features/i386/x32-core.xml (i386_eflags): Ditto. gdb/doc/ChangeLog: 2016-10-06 Doug Evans <dje@google.com> * gdb.texinfo (Target Description Format): Update docs on "end" field spec and field default type. gdb/testsuite/ChangeLog: 2016-10-06 Doug Evans <dje@google.com> * gdb.xml/extra-regs.xml: Update, end field now required, default type for single bitfields is bool. * gdb.xml/tdesc-regs.exp: Ditto.
58 lines
1.8 KiB
XML
58 lines
1.8 KiB
XML
<target>
|
|
<xi:include href="core-regs.xml"/>
|
|
<feature name="extra">
|
|
<vector id="v4int8" type="int8" count="4"/>
|
|
<vector id="v2int16" type="int16" count="2"/>
|
|
<union id="vecint">
|
|
<field name="v4" type="v4int8"/>
|
|
<field name="v2" type="v2int16"/>
|
|
</union>
|
|
|
|
<struct id="struct1">
|
|
<field name="v4" type="v4int8"/>
|
|
<field name="v2" type="v2int16"/>
|
|
</struct>
|
|
|
|
<struct id="struct2" size="8">
|
|
<field name="f1" start="0" end="34"/>
|
|
<field name="f2" start="63" end="63" type="uint64"/>
|
|
</struct>
|
|
|
|
<flags id="flags" size="4">
|
|
<field name="X" start="0" end="0"/>
|
|
<field name="Y" start="2" end="2" type="uint32"/>
|
|
</flags>
|
|
|
|
<enum id="Z_values" size="4">
|
|
<evalue name="yes" value="1"/>
|
|
<evalue name="no" value="0"/>
|
|
<evalue name="maybe" value="2"/>
|
|
<evalue name="so" value="3"/>
|
|
</enum>
|
|
|
|
<flags id="mixed_flags" size="4">
|
|
<!-- Elided type. -->
|
|
<field name="A" start="0" end="0"/>
|
|
<!-- Elided type, multiple bits. -->
|
|
<field name="B" start="1" end="3"/>
|
|
<!-- Bool. -->
|
|
<field name="C" start="4" end="4" type="bool"/>
|
|
<!-- Unsigned int. -->
|
|
<field name="D" start="5" end="5" type="uint32"/>
|
|
<!-- Anonymous field. -->
|
|
<field name="" start="6" end="7"/>
|
|
<!-- Enum bitfield. -->
|
|
<field name="Z" start="8" end="9" type="Z_values"/>
|
|
</flags>
|
|
|
|
<reg name="extrareg" bitsize="32"/>
|
|
<reg name="uintreg" bitsize="32" type="uint32"/>
|
|
<reg name="vecreg" bitsize="32" type="v4int8"/>
|
|
<reg name="unionreg" bitsize="32" type="vecint"/>
|
|
<reg name="structreg" bitsize="64" type="struct1"/>
|
|
<reg name="bitfields" bitsize="64" type="struct2"/>
|
|
<reg name="flags" bitsize="32" type="flags"/>
|
|
<reg name="mixed_flags" bitsize="32" type="mixed_flags"/>
|
|
</feature>
|
|
</target>
|