xref: /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/NtStructures.h (revision 061da546b983eb767bad15e67af1174fb0bcf31c)
1*061da546Spatrick //===-- NtStructures.h ------------------------------------------*- C++ -*-===//
2*061da546Spatrick //
3*061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5*061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*061da546Spatrick //
7*061da546Spatrick //===----------------------------------------------------------------------===//
8*061da546Spatrick 
9*061da546Spatrick #ifndef liblldb_Plugins_Process_Windows_Common_NtStructures_h_
10*061da546Spatrick #define liblldb_Plugins_Process_Windows_Common_NtStructures_h_
11*061da546Spatrick 
12*061da546Spatrick #include "lldb/Host/windows/windows.h"
13*061da546Spatrick 
14*061da546Spatrick // This describes the layout of a TEB (Thread Environment Block) for a 64-bit
15*061da546Spatrick // process.  It's adapted from the 32-bit TEB in winternl.h.  Currently, we care
16*061da546Spatrick // only about the position of the TlsSlots.
17*061da546Spatrick struct TEB64 {
18*061da546Spatrick   ULONG64 Reserved1[12];
19*061da546Spatrick   ULONG64 ProcessEnvironmentBlock;
20*061da546Spatrick   ULONG64 Reserved2[399];
21*061da546Spatrick   BYTE Reserved3[1952];
22*061da546Spatrick   ULONG64 TlsSlots[64];
23*061da546Spatrick   BYTE Reserved4[8];
24*061da546Spatrick   ULONG64 Reserved5[26];
25*061da546Spatrick   ULONG64 ReservedForOle; // Windows 2000 only
26*061da546Spatrick   ULONG64 Reserved6[4];
27*061da546Spatrick   ULONG64 TlsExpansionSlots;
28*061da546Spatrick };
29*061da546Spatrick 
30*061da546Spatrick #endif
31