Fix building under linux on a linux file system (instead of mounted windows ntfs)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 13 Feb 2015 22:35:15 +0000 (14:35 -0800)
committerMike McLaughlin <mikem@microsoft.com>
Fri, 13 Feb 2015 22:35:15 +0000 (14:35 -0800)
src/ToolBox/SOS/CMakeLists.txt
src/ToolBox/SOS/Strike/PlatformSpecific.h [deleted file]
src/ToolBox/SOS/Strike/util.h

index cd7f621..6eb50fd 100644 (file)
@@ -1,4 +1,4 @@
-add_subdirectory(strike)
+add_subdirectory(Strike)
 if(WIN32)
     add_subdirectory(DacTableGen)
     add_subdirectory(diasdk)
diff --git a/src/ToolBox/SOS/Strike/PlatformSpecific.h b/src/ToolBox/SOS/Strike/PlatformSpecific.h
deleted file mode 100644 (file)
index 5769315..0000000
+++ /dev/null
@@ -1,192 +0,0 @@
-//
-// Copyright (c) Microsoft. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information. 
-//
-
-// ==++==
-// 
-// 
-// ==--==
-
-// Include platform specific declarations based on the target platform rather than the host platform.
-
-#ifndef __PLATFORM_SPECIFIC_INCLUDED
-#define __PLATFORM_SPECIFIC_INCLUDED
-
-// The main debugger code already has target platform definitions for CONTEXT.
-#include "../../../../Debug/inc/dbgtargetcontext.h"
-
-#ifndef FEATURE_PAL
-
-// The various OS structure definitions below tend to differ based soley on the size of pointers. DT_POINTER
-// is a type whose size matches that of the target platform. It's integral rather than point since it is never
-// legal to dereference one of these on the host.
-#ifdef _TARGET_WIN64_
-typedef ULONG64 DT_POINTER;
-#else
-typedef ULONG32 DT_POINTER;
-#endif
-
-struct DT_LIST_ENTRY
-{
-    DT_POINTER Flink;
-    DT_POINTER Blink;
-};
-
-struct DT_UNICODE_STRING
-{
-    USHORT Length;
-    USHORT MaximumLength;
-    DT_POINTER Buffer;
-};
-
-#define DT_GDI_HANDLE_BUFFER_SIZE32  34
-#define DT_GDI_HANDLE_BUFFER_SIZE64  60
-
-#ifndef IMAGE_FILE_MACHINE_ARMNT
-#define IMAGE_FILE_MACHINE_ARMNT             0x01c4  // ARM Thumb-2 Little-Endian 
-#endif
-
-#ifdef _TARGET_WIN64_
-typedef ULONG DT_GDI_HANDLE_BUFFER[DT_GDI_HANDLE_BUFFER_SIZE64];
-#else
-typedef ULONG DT_GDI_HANDLE_BUFFER[DT_GDI_HANDLE_BUFFER_SIZE32];
-#endif
-
-struct DT_PEB
-{
-    BOOLEAN InheritedAddressSpace;
-    BOOLEAN ReadImageFileExecOptions;
-    BOOLEAN BeingDebugged;
-    BOOLEAN SpareBool;
-    DT_POINTER Mutant;
-    DT_POINTER ImageBaseAddress;
-    DT_POINTER Ldr;
-    DT_POINTER ProcessParameters;
-    DT_POINTER SubSystemData;
-    DT_POINTER ProcessHeap;
-    DT_POINTER FastPebLock;
-    DT_POINTER SparePtr1;
-    DT_POINTER SparePtr2;
-    ULONG EnvironmentUpdateCount;
-    DT_POINTER KernelCallbackTable;
-    ULONG SystemReserved[1];
-    struct _dummy {
-        ULONG ExecuteOptions : 2;
-        ULONG SpareBits : 30;
-    };    
-    DT_POINTER FreeList;
-    ULONG TlsExpansionCounter;
-    DT_POINTER TlsBitmap;
-    ULONG TlsBitmapBits[2];
-    DT_POINTER ReadOnlySharedMemoryBase;
-    DT_POINTER ReadOnlySharedMemoryHeap;
-    DT_POINTER ReadOnlyStaticServerData;
-    DT_POINTER AnsiCodePageData;
-    DT_POINTER OemCodePageData;
-    DT_POINTER UnicodeCaseTableData;
-    ULONG NumberOfProcessors;
-    ULONG NtGlobalFlag;
-    LARGE_INTEGER CriticalSectionTimeout;
-    DT_POINTER HeapSegmentReserve;
-    DT_POINTER HeapSegmentCommit;
-    DT_POINTER HeapDeCommitTotalFreeThreshold;
-    DT_POINTER HeapDeCommitFreeBlockThreshold;
-    ULONG NumberOfHeaps;
-    ULONG MaximumNumberOfHeaps;
-    DT_POINTER ProcessHeaps;
-    DT_POINTER GdiSharedHandleTable;
-    DT_POINTER ProcessStarterHelper;
-    ULONG GdiDCAttributeList;
-    DT_POINTER LoaderLock;
-    ULONG OSMajorVersion;
-    ULONG OSMinorVersion;
-    USHORT OSBuildNumber;
-    USHORT OSCSDVersion;
-    ULONG OSPlatformId;
-    ULONG ImageSubsystem;
-    ULONG ImageSubsystemMajorVersion;
-    ULONG ImageSubsystemMinorVersion;
-    DT_POINTER ImageProcessAffinityMask;
-    DT_GDI_HANDLE_BUFFER GdiHandleBuffer;
-    DT_POINTER PostProcessInitRoutine;
-    DT_POINTER TlsExpansionBitmap;
-    ULONG TlsExpansionBitmapBits[32];
-    ULONG SessionId;
-    ULARGE_INTEGER AppCompatFlags;
-    ULARGE_INTEGER AppCompatFlagsUser;
-    DT_POINTER pShimData;
-    DT_POINTER AppCompatInfo;
-    DT_UNICODE_STRING CSDVersion;
-    DT_POINTER ActivationContextData;
-    DT_POINTER ProcessAssemblyStorageMap;
-    DT_POINTER SystemDefaultActivationContextData;
-    DT_POINTER SystemAssemblyStorageMap;
-    DT_POINTER MinimumStackCommit;
-    DT_POINTER FlsCallback;
-    DT_LIST_ENTRY FlsListHead;
-    DT_POINTER FlsBitmap;
-    ULONG FlsBitmapBits[FLS_MAXIMUM_AVAILABLE / (sizeof(ULONG) * 8)];
-    ULONG FlsHighIndex;
-};
-
-struct DT_PEB_LDR_DATA
-{
-    BYTE Reserved1[8];
-    DT_POINTER Reserved2[3];
-    DT_LIST_ENTRY InMemoryOrderModuleList;
-};
-
-struct DT_CURDIR
-{
-    DT_UNICODE_STRING DosPath;
-    DT_POINTER Handle;
-};
-
-struct DT_RTL_DRIVE_LETTER_CURDIR {
-    USHORT Flags;
-    USHORT Length;
-    ULONG TimeStamp;
-    STRING DosPath;
-};
-
-#define DT_RTL_MAX_DRIVE_LETTERS 32
-
-struct DT_RTL_USER_PROCESS_PARAMETERS
-{
-    ULONG MaximumLength;
-    ULONG Length;
-    ULONG Flags;
-    ULONG DebugFlags;
-    DT_POINTER ConsoleHandle;
-    ULONG  ConsoleFlags;
-    DT_POINTER StandardInput;
-    DT_POINTER StandardOutput;
-    DT_POINTER StandardError;
-    DT_CURDIR CurrentDirectory;
-    DT_UNICODE_STRING DllPath;
-    DT_UNICODE_STRING ImagePathName;
-    DT_UNICODE_STRING CommandLine;
-    DT_POINTER Environment;
-    ULONG StartingX;
-    ULONG StartingY;
-    ULONG CountX;
-    ULONG CountY;
-    ULONG CountCharsX;
-    ULONG CountCharsY;
-    ULONG FillAttribute;
-    ULONG WindowFlags;
-    ULONG ShowWindowFlags;
-    DT_UNICODE_STRING WindowTitle;
-    DT_UNICODE_STRING DesktopInfo;
-    DT_UNICODE_STRING ShellInfo;
-    DT_UNICODE_STRING RuntimeData;
-    DT_RTL_DRIVE_LETTER_CURDIR CurrentDirectores[ DT_RTL_MAX_DRIVE_LETTERS ];
-};
-
-#endif // !FEATURE_PAL
-
-#define DT_OS_PAGE_SIZE   4096
-
-#endif // !__PLATFORM_SPECIFIC_INCLUDED
index ad9e8a6..cb1dbe2 100644 (file)
@@ -17,7 +17,7 @@
 inline void RestoreSOToleranceState() {}
 
 #include <cor.h>
-#include <CorSym.h>
+#include <corsym.h>
 #include <clrdata.h>
 #include <palclr.h>