Fix breakpoints on jitted code for Linux/ARM (dotnet/coreclr#5014)
authorDmitri-Botcharnikov <dmitry.b@samsung.com>
Tue, 17 May 2016 23:21:36 +0000 (03:21 +0400)
committerMike McLaughlin <mikem@microsoft.com>
Tue, 17 May 2016 23:21:36 +0000 (16:21 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/a92eac6b4b635285525c80dcd9dadf3616d96370

src/coreclr/src/ToolBox/SOS/Strike/strike.cpp

index 597855b..d567e3c 100644 (file)
@@ -6105,8 +6105,11 @@ void IssueDebuggerBPCommand ( CLRDATA_ADDRESS addr )
 
     // on ARM the debugger requires breakpoint addresses to be sanitized
     if (IsDbgTargetArm())
-        addr &= ~THUMB_CODE;
-    
+#ifndef FEATURE_PAL
+      addr &= ~THUMB_CODE;
+#else
+      addr |= THUMB_CODE; // lldb expects thumb code bit set
+#endif      
 
     // if we overflowed our cache consider all new BPs unique...
     BOOL bUnique = curLimit >= MaxBPsCached;