1 /* Copyright (C) 2008-2012 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #include "windows-nat.h"
23 #define context_offset(x) (offsetof (CONTEXT, x))
24 static const int mappings
[] =
43 context_offset (EFlags
),
44 context_offset (SegCs
),
45 context_offset (SegSs
),
46 context_offset (SegDs
),
47 context_offset (SegEs
),
48 context_offset (SegFs
),
49 context_offset (SegGs
),
50 context_offset (FloatSave
.FloatRegisters
[0]),
51 context_offset (FloatSave
.FloatRegisters
[1]),
52 context_offset (FloatSave
.FloatRegisters
[2]),
53 context_offset (FloatSave
.FloatRegisters
[3]),
54 context_offset (FloatSave
.FloatRegisters
[4]),
55 context_offset (FloatSave
.FloatRegisters
[5]),
56 context_offset (FloatSave
.FloatRegisters
[6]),
57 context_offset (FloatSave
.FloatRegisters
[7]),
58 context_offset (FloatSave
.ControlWord
),
59 context_offset (FloatSave
.StatusWord
),
60 context_offset (FloatSave
.TagWord
),
61 context_offset (FloatSave
.ErrorSelector
),
62 context_offset (FloatSave
.ErrorOffset
),
63 context_offset (FloatSave
.DataSelector
),
64 context_offset (FloatSave
.DataOffset
),
65 context_offset (FloatSave
.ErrorSelector
)
67 context_offset (Xmm0
),
68 context_offset (Xmm1
),
69 context_offset (Xmm2
),
70 context_offset (Xmm3
),
71 context_offset (Xmm4
),
72 context_offset (Xmm5
),
73 context_offset (Xmm6
),
74 context_offset (Xmm7
),
75 context_offset (Xmm8
),
76 context_offset (Xmm9
),
77 context_offset (Xmm10
),
78 context_offset (Xmm11
),
79 context_offset (Xmm12
),
80 context_offset (Xmm13
),
81 context_offset (Xmm14
),
82 context_offset (Xmm15
),
84 context_offset (FloatSave
.MxCsr
)
89 _initialize_amd64_windows_nat (void)
91 windows_set_context_register_offsets (mappings
);
92 i386_set_debug_register_length (8);
This page took 0.048311 seconds and 4 git commands to generate.