1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5#define ___in _SAL1_Source_(__in, (), _In_)
6#define ___out _SAL1_Source_(__out, (), _Out_)
7
8#ifndef _countof
9#define _countof(x) (sizeof(x)/sizeof(x[0]))
10#endif
11
12extern bool g_diagnostics;
13
14#define TRACE(args...) \
15 if (g_diagnostics) { \
16 printf(args); \
17 }
18
19#include <winternl.h>
20#include <winver.h>
21#include <windows.h>
22#include <stdlib.h>
23#include <stdint.h>
24#include <stddef.h>
25#include <string.h>
26#include <corhdr.h>
27#include <cor.h>
28#include <corsym.h>
29#include <clrdata.h>
30#include <xclrdata.h>
31#include <corerror.h>
32#include <cordebug.h>
33#include <xcordebug.h>
34#include <mscoree.h>
35#include <dumpcommon.h>
36typedef int T_CONTEXT;
37#include <dacprivate.h>
38#include <arrayholder.h>
39#include <releaseholder.h>
40#include <unistd.h>
41#include <signal.h>
42#include <sys/types.h>
43#include <sys/stat.h>
44#include <sys/ptrace.h>
45#include <sys/user.h>
46#include <sys/wait.h>
47#include <sys/procfs.h>
48#include <dirent.h>
49#include <fcntl.h>
50#include <elf.h>
51#include <link.h>
52#define __STDC_FORMAT_MACROS
53#include <inttypes.h>
54#include <map>
55#include <set>
56#include <vector>
57#include "datatarget.h"
58#include "threadinfo.h"
59#include "memoryregion.h"
60#include "crashinfo.h"
61#include "dumpwriter.h"
62