| 13323 | } |
| 13324 | |
| 13325 | int WinDebugger::LoadImageForModule(const StringImpl &modulePath, const StringImpl& imagePath) |
| 13326 | { |
| 13327 | AutoCrit autoCrit(mDebugManager->mCritSect); |
| 13328 | |
| 13329 | for (auto dbgModule : mDebugTarget->mDbgModules) |
| 13330 | { |
| 13331 | if (modulePath.Equals(dbgModule->mFilePath, StringImpl::CompareKind_OrdinalIgnoreCase)) |
| 13332 | { |
| 13333 | auto coff = (COFF*)dbgModule; |
| 13334 | |
| 13335 | if (!coff->LoadModuleImage(imagePath)) |
| 13336 | { |
| 13337 | mDebugManager->mOutMessages.push_back("error Failed to load image " + imagePath); |
| 13338 | } |
| 13339 | ModuleChanged(dbgModule); |
| 13340 | |
| 13341 | return 0; |
| 13342 | } |
| 13343 | } |
| 13344 | |
| 13345 | return 0; |
| 13346 | } |
| 13347 | |
| 13348 | int WinDebugger::LoadDebugInfoForModule(DbgModule* dbgModule) |
| 13349 | { |
no test coverage detected