| 1686 | } |
| 1687 | |
| 1688 | bool 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 | |
| 1706 | void WinDebugger::ModuleChanged(DbgModule* dbgModule) |
| 1707 | { |
nothing calls this directly
no test coverage detected