summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/daccess/daccess.cpp4
-rw-r--r--src/debug/daccess/datatargetadapter.cpp21
-rw-r--r--src/debug/di/shimlocaldatatarget.cpp3
-rw-r--r--src/debug/di/shimremotedatatarget.cpp4
4 files changed, 27 insertions, 5 deletions
diff --git a/src/debug/daccess/daccess.cpp b/src/debug/daccess/daccess.cpp
index 85d4d463a8..e5299b693e 100644
--- a/src/debug/daccess/daccess.cpp
+++ b/src/debug/daccess/daccess.cpp
@@ -5501,9 +5501,9 @@ ClrDataAccess::Initialize(void)
#ifdef FEATURE_PAL
#if defined(DBG_TARGET_X86)
- CorDebugPlatform hostPlatform = CORDB_PLATFORM_MAC_X86;
+ CorDebugPlatform hostPlatform = CORDB_PLATFORM_POSIX_X86;
#elif defined(DBG_TARGET_AMD64)
- CorDebugPlatform hostPlatform = CORDB_PLATFORM_MAC_AMD64;
+ CorDebugPlatform hostPlatform = CORDB_PLATFORM_POSIX_AMD64;
#else
#error Unknown Processor.
#endif
diff --git a/src/debug/daccess/datatargetadapter.cpp b/src/debug/daccess/datatargetadapter.cpp
index 73a1c485f4..902b7dab13 100644
--- a/src/debug/daccess/datatargetadapter.cpp
+++ b/src/debug/daccess/datatargetadapter.cpp
@@ -112,6 +112,24 @@ DataTargetAdapter::GetPlatform(
switch(ulMachineType)
{
+#ifdef FEATURE_PAL
+ case IMAGE_FILE_MACHINE_I386:
+ ulExpectedPointerSize = 4;
+ platform = CORDB_PLATFORM_POSIX_X86;
+ break;
+
+ case IMAGE_FILE_MACHINE_AMD64:
+ ulExpectedPointerSize = 8;
+ platform = CORDB_PLATFORM_POSIX_AMD64;
+ break;
+
+ case IMAGE_FILE_MACHINE_IA64:
+ case IMAGE_FILE_MACHINE_ARMNT:
+ case IMAGE_FILE_MACHINE_ARM64:
+ _ASSERTE_MSG(false, "Not supported platform.");
+ return E_NOTIMPL;
+
+#else // FEATURE_PAL
case IMAGE_FILE_MACHINE_I386:
ulExpectedPointerSize = 4;
platform = CORDB_PLATFORM_WINDOWS_X86;
@@ -135,7 +153,8 @@ DataTargetAdapter::GetPlatform(
case IMAGE_FILE_MACHINE_ARM64:
ulExpectedPointerSize = 8;
platform = CORDB_PLATFORM_WINDOWS_ARM64;
- break;
+ break;
+#endif // FEATURE_PAL
default:
// No other platforms are current supported
diff --git a/src/debug/di/shimlocaldatatarget.cpp b/src/debug/di/shimlocaldatatarget.cpp
index 45d0b6cebe..9f3ba2ec1d 100644
--- a/src/debug/di/shimlocaldatatarget.cpp
+++ b/src/debug/di/shimlocaldatatarget.cpp
@@ -277,6 +277,9 @@ HRESULT STDMETHODCALLTYPE
ShimLocalDataTarget::GetPlatform(
CorDebugPlatform *pPlatform)
{
+#ifdef FEATURE_PAL
+#error ShimLocalDataTarget is not implemented on PAL systems yet
+#endif
// Assume that we're running on Windows for now.
#if defined(DBG_TARGET_X86)
*pPlatform = CORDB_PLATFORM_WINDOWS_X86;
diff --git a/src/debug/di/shimremotedatatarget.cpp b/src/debug/di/shimremotedatatarget.cpp
index 3498700ac1..278ef68016 100644
--- a/src/debug/di/shimremotedatatarget.cpp
+++ b/src/debug/di/shimremotedatatarget.cpp
@@ -212,9 +212,9 @@ ShimRemoteDataTarget::GetPlatform(
{
#ifdef FEATURE_PAL
#if defined(DBG_TARGET_X86)
- *pPlatform = CORDB_PLATFORM_MAC_X86;
+ *pPlatform = CORDB_PLATFORM_POSIX_X86;
#elif defined(DBG_TARGET_AMD64)
- *pPlatform = CORDB_PLATFORM_MAC_AMD64;
+ *pPlatform = CORDB_PLATFORM_POSIX_AMD64;
#else
#error Unknown Processor.
#endif