Fix display of structures/bitfields in register description.
[external/binutils.git] / gdb / testsuite / gdb.xml / maint_print_struct.xml
1 <?xml version="1.0"?>
2 <!-- Copyright (C) 2010-2013 Free Software Foundation, Inc.
3
4      Copying and distribution of this file, with or without modification,
5      are permitted in any medium without royalty provided the copyright
6      notice and this notice are preserved.  -->
7
8 <!DOCTYPE feature SYSTEM "gdb-target.dtd">
9 <target>
10 <feature name="test">
11
12   <struct id="two_fielded">
13        <field name="field1" type="data_ptr"/>
14        <field name="field2" type="data_ptr"/>
15   </struct>
16
17   <struct id="bitfield" size="8">
18     <field name="field1" start="24" end="63"/>
19     <field name="field2" start="16" end="24"/>
20   </struct>
21
22   <reg name="bad_reg1" bitsize="128" type="two_fielded"/>
23   <reg name="bad_reg2" bitsize="64"  type="bitfield"/>
24 </feature>
25 </target>
26