summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-05-10 12:32:33 -0700
committerJan Vorlicek <janvorli@microsoft.com>2017-05-10 21:32:33 +0200
commitcdd7d58e75667f108a4843c5aeb61648cd25f340 (patch)
treeea0c4aa0a1f7583d4fac0e5578cfddd1e5feffb7 /src/debug
parentb1247408c30dd4dc511e8a65adf8a4efb2776f10 (diff)
downloadcoreclr-cdd7d58e75667f108a4843c5aeb61648cd25f340.tar.gz
coreclr-cdd7d58e75667f108a4843c5aeb61648cd25f340.tar.bz2
coreclr-cdd7d58e75667f108a4843c5aeb61648cd25f340.zip
[ARM/Linux] Enable build with FEATURE_DBGIPC=0 (#11254)
* [ARM/Linux] Enable build with FEATURE_DBGIPC=0 * Replace HAVE_ALIGNED_MALLOC with SUPPORT_LOCAL_DEBUGGING
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/di/cordb.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/debug/di/cordb.cpp b/src/debug/di/cordb.cpp
index e6ed44ddb9..ae74c34b54 100644
--- a/src/debug/di/cordb.cpp
+++ b/src/debug/di/cordb.cpp
@@ -20,6 +20,13 @@
#include "dbgtransportmanager.h"
#endif // FEATURE_DBGIPC_TRANSPORT_DI
+#if defined(PLATFORM_UNIX) || defined(__ANDROID__)
+// Local (in-process) debugging is not supported for UNIX and Android.
+#define SUPPORT_LOCAL_DEBUGGING 0
+#else
+#define SUPPORT_LOCAL_DEBUGGING 1
+#endif
+
//********** Globals. *********************************************************
#ifndef FEATURE_PAL
HINSTANCE g_hInst; // Instance handle to this piece of code.
@@ -499,7 +506,7 @@ DbiGetThreadContext(HANDLE hThread,
DT_CONTEXT *lpContext)
{
// if we aren't local debugging this isn't going to work
-#if !defined(_ARM_) || defined(FEATURE_DBGIPC_TRANSPORT_DI) || defined(__ANDROID__)
+#if !defined(_ARM_) || defined(FEATURE_DBGIPC_TRANSPORT_DI) || !SUPPORT_LOCAL_DEBUGGING
_ASSERTE(!"Can't use local GetThreadContext remotely, this needed to go to datatarget");
return FALSE;
#else
@@ -538,7 +545,7 @@ BOOL
DbiSetThreadContext(HANDLE hThread,
const DT_CONTEXT *lpContext)
{
-#if !defined(_ARM_) || defined(FEATURE_DBGIPC_TRANSPORT_DI) || defined(__ANDROID__)
+#if !defined(_ARM_) || defined(FEATURE_DBGIPC_TRANSPORT_DI) || !SUPPORT_LOCAL_DEBUGGING
_ASSERTE(!"Can't use local GetThreadContext remotely, this needed to go to datatarget");
return FALSE;
#else