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

Method EnableWriting

IDEHelper/DbgModule.cpp:7343–7357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7341}
7342
7343void DbgModule::EnableWriting(addr_target address)
7344{
7345 for (int sectionIdx = 0; sectionIdx < (int)mSections.size(); sectionIdx++)
7346 {
7347 DbgSection* section = &mSections[sectionIdx];
7348 if ((address >= mImageBase + section->mAddrStart) && (address < mImageBase + section->mAddrStart + section->mAddrLength))
7349 {
7350 if (!section->mWritingEnabled)
7351 {
7352 section->mOldProt = mDebugger->EnableWriting(mImageBase + section->mAddrStart, (int32)section->mAddrLength);
7353 section->mWritingEnabled = true;
7354 }
7355 }
7356 }
7357}
7358
7359void DbgModule::RevertWritingEnable()
7360{

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected