summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sienkiewicz <chsienki@microsoft.com>2018-05-23 22:38:14 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2018-09-18 12:49:14 (GMT)
commitf47c9198e740c44455cc22f665b764204f712afa (patch)
tree81de0fbdfd1d18f6f660f0f551db89da2eb8e51e
parentaf900115108198d4e60ef26df42761180311f877 (diff)
downloadcoreclr-f47c9198e740c44455cc22f665b764204f712afa.zip
coreclr-f47c9198e740c44455cc22f665b764204f712afa.tar.gz
coreclr-f47c9198e740c44455cc22f665b764204f712afa.tar.bz2
Use macro rather than manually setting thumb bit in debugger.cpp
-rw-r--r--src/debug/ee/debugger.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/debug/ee/debugger.cpp b/src/debug/ee/debugger.cpp
index 1e69d2b..d6b6912 100644
--- a/src/debug/ee/debugger.cpp
+++ b/src/debug/ee/debugger.cpp
@@ -3221,10 +3221,7 @@ CodeRegionInfo CodeRegionInfo::GetCodeRegionInfo(DebuggerJitInfo *dji, MethodDes
if (addr)
{
- PCODE pCode = (PCODE)dac_cast<TADDR>(addr);
-#ifdef _TARGET_ARM_
- pCode |= THUMB_CODE;
-#endif
+ PCODE pCode = PINSTRToPCODE(dac_cast<TADDR>(addr));
codeRegionInfo.InitializeFromStartAddress(pCode);
}