xref: /netbsd-src/external/gpl3/gdb/dist/gdb/features/i386/32bit-mpx.xml (revision 16dce51364ebe8aeafbae46bc5aa167b8115bc45)
1<?xml version="1.0"?>
2<!-- Copyright (C) 2013-2017 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<feature name="org.gnu.gdb.i386.mpx">
10  <struct id="br128">
11    <field name="lbound" type="uint64"/>
12    <field name="ubound_raw" type="uint64"/>
13  </struct>
14
15  <struct id="_bndstatus" size="8">
16    <field name="bde" start="2" end="31"/>
17    <field name="error" start="0" end="1"/>
18  </struct>
19
20  <union id="status">
21    <field name="raw" type="data_ptr"/>
22    <field name="status" type="_bndstatus"/>
23  </union>
24
25  <struct id="_bndcfgu" size="8">
26    <field name="base" start="12" end="31" />
27    <field name="reserved" start="2" end="11"/>
28    <!-- Explicitly set the type here, otherwise it defaults to bool.
29         Perhaps this should be uint32, but the container type has size 8.  -->
30    <field name="preserved" start="1" end="1" type="uint64"/>
31    <field name="enabled" start="0" end="0" type="uint64"/>
32  </struct>
33
34   <union id="cfgu">
35    <field name="raw" type="data_ptr"/>
36    <field name="config" type="_bndcfgu"/>
37  </union>
38
39  <reg name="bnd0raw" bitsize="128" type="br128"/>
40  <reg name="bnd1raw" bitsize="128" type="br128"/>
41  <reg name="bnd2raw" bitsize="128" type="br128"/>
42  <reg name="bnd3raw" bitsize="128" type="br128"/>
43  <reg name="bndcfgu"    bitsize="64" type="cfgu"/>
44  <reg name="bndstatus"  bitsize="64" type="status"/>
45</feature>
46