mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-26 02:33:31 +08:00
cef0f8684e
tdesc_register_in_reggroup_p in now able to handle arbitrary groups. This is useful when groups are created while the target descriptor file is received from the remote. This can be the case of a soft core target processor where registers/groups can change. gdb/ChangeLog: yyyy-mm-dd Franck Jullien <franck.jullien@gmail.com> Stafford Horne <shorne@gmail.com> * target-descriptions.c (tdesc_register_in_reggroup_p): Support arbitrary strings. (tdesc_use_registers): Add logic to register new reggroups. (tdesc_reg::group): Update comment to indicate we allow arbitrary strings. * NEWS (Changes since GDB 8.0): Announce that GDB supports arbitrary reggroups. gdb/testsuite/ChangeLog: yyyy-mm-dd Stafford Horne <shorne@gmail.com> * gdb.xml/extra-regs.xml: Add example foo reggroup. * gdb.xml/tdesc-regs.exp: Add test to check for foo reggroup. gdb/doc/ChangeLog: yyyy-mm-dd Stafford Horne <shorne@gmail.com> * gdb.texinfo (Target Description Format): Explain that arbitrary strings are now allowed for register groups.
59 lines
1.9 KiB
XML
59 lines
1.9 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"/>
|
|
<reg name="groupreg" bitsize="32" type="uint32" group="foo"/>
|
|
</feature>
|
|
</target>
|