Fix PCODE not having thumb bit set when comparing two addresses (#18247)
authorChris Sienkiewicz <chsienki@microsoft.com>
Mon, 11 Jun 2018 18:12:44 +0000 (11:12 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jun 2018 18:12:44 +0000 (11:12 -0700)
src/debug/ee/debugger.h

index f3206f1..b443fcf 100644 (file)
@@ -1346,7 +1346,7 @@ public:
     {
         LIMITED_METHOD_CONTRACT;
 
-        PCODE address = (PCODE)addr;
+        PCODE address = PINSTRToPCODE((TADDR)addr);
         return (((address >= m_addrOfHotCode) &&
                  (address <  m_addrOfHotCode + m_sizeOfHotCode)) ||
                 ((address >= m_addrOfColdCode) &&