MCPcopy Create free account
hub / github.com/beefytech/Beef / RevertWritingEnable

Method RevertWritingEnable

IDEHelper/DbgModule.cpp:7359–7370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7357}
7358
7359void 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
7372template <typename TRadixMap>
7373static void RemoveInvalidRange(TRadixMap& radixMap, addr_target startAddr, int addrLength)

Callers 1

HotLoadMethod · 0.80

Calls 2

sizeMethod · 0.45
SetProtectionMethod · 0.45

Tested by

no test coverage detected