Avoiding triggering data breakpoint in Linux
authorAndrew Au <andrewau@microsoft.com>
Tue, 28 Aug 2018 00:58:30 +0000 (17:58 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/7a479cf1cd6c1a67ad6d19360b700ff198f18071

src/coreclr/src/debug/ee/controller.h

index 7084bd9..d73a432 100644 (file)
@@ -1815,6 +1815,7 @@ public:
         LOG((LF_CORDB, LL_INFO10000, "D::DDBP: Doing TriggerDataBreakpoint...\n"));
 
         bool hitDataBp = false;
+#ifndef FEATURE_PAL    
 #if defined(_TARGET_X86_) || defined(_TARGET_AMD64_)
         PDR6 pdr6 = (PDR6)&(pContext->Dr6);
 
@@ -1832,6 +1833,7 @@ public:
             LOG((LF_CORDB, LL_INFO10000, "D::DDBP: DIDN'T TRIGGER DATA BREAKPOINT...\n"));
         }
 #endif
+#endif
         return hitDataBp;
     }