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

Method GetEmitSource

IDEHelper/WinDebugger.cpp:1688–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686}
1687
1688bool WinDebugger::GetEmitSource(const StringImpl& filePath, String& outText)
1689{
1690 if (!filePath.StartsWith("$Emit"))
1691 return false;
1692
1693 int dollarPos = filePath.IndexOf('$', 1);
1694 String numStr = filePath.Substring(5, dollarPos - 5);
1695 int id = atoi(numStr.c_str());
1696
1697 for (auto dbgModule : mDebugTarget->mDbgModules)
1698 {
1699 if (dbgModule->mId == id)
1700 return dbgModule->GetEmitSource(filePath, outText);
1701 }
1702
1703 return false;
1704}
1705
1706void WinDebugger::ModuleChanged(DbgModule* dbgModule)
1707{

Callers

nothing calls this directly

Calls 4

SubstringMethod · 0.80
StartsWithMethod · 0.45
IndexOfMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected