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

Method LoadImageForModule

IDEHelper/WinDebugger.cpp:13325–13346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13323}
13324
13325int 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
13348int WinDebugger::LoadDebugInfoForModule(DbgModule* dbgModule)
13349{

Callers 1

Calls 3

LoadModuleImageMethod · 0.80
EqualsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected