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

Function Debugger_SetSourcePathRemap

IDEHelper/DebugManager.cpp:841–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841BF_EXPORT void BF_CALLTYPE Debugger_SetSourcePathRemap(const char* remapStr)
842{
843 AutoCrit autoCrit(gDebugManager->mCritSect);
844
845 gDebugManager->mSourcePathRemap.Clear();
846
847 const char* startStr = remapStr;
848 for (const char* cPtr = remapStr; true; cPtr++)
849 {
850 if ((*cPtr == '\n') || (*cPtr == 0))
851 {
852 String remapStr = String(startStr, cPtr - startStr);
853 remapStr.Trim();
854
855 int eqPos = (int)remapStr.IndexOf('=');
856 if (eqPos != -1)
857 {
858 auto keyStr = remapStr.Substring(0, eqPos);
859 keyStr.Trim();
860 auto valueStr = remapStr.Substring(eqPos + 1);
861 valueStr.Trim();
862 gDebugManager->mSourcePathRemap[keyStr] = valueStr;
863 }
864
865 startStr = cPtr;
866 }
867
868 if (*cPtr == 0)
869 break;
870 }
871}
872
873BF_EXPORT bool BF_CALLTYPE Debugger_OpenMiniDump(const char* fileName)
874{

Callers

nothing calls this directly

Calls 5

StringClass · 0.85
SubstringMethod · 0.80
ClearMethod · 0.45
TrimMethod · 0.45
IndexOfMethod · 0.45

Tested by

no test coverage detected