| 7341 | } |
| 7342 | |
| 7343 | void 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 | |
| 7359 | void DbgModule::RevertWritingEnable() |
| 7360 | { |
no test coverage detected