| 7357 | } |
| 7358 | |
| 7359 | void DbgModule::RevertWritingEnable() |
| 7360 | { |
| 7361 | for (int sectionIdx = 0; sectionIdx < (int)mSections.size(); sectionIdx++) |
| 7362 | { |
| 7363 | DbgSection* section = &mSections[sectionIdx]; |
| 7364 | if (section->mWritingEnabled) |
| 7365 | { |
| 7366 | mDebugger->SetProtection(mImageBase + section->mAddrStart, (int32)section->mAddrLength, section->mOldProt); |
| 7367 | section->mWritingEnabled = false; |
| 7368 | } |
| 7369 | } |
| 7370 | } |
| 7371 | |
| 7372 | template <typename TRadixMap> |
| 7373 | static void RemoveInvalidRange(TRadixMap& radixMap, addr_target startAddr, int addrLength) |
no test coverage detected