MCPcopy Create free account
hub / github.com/Vector35/debugger / IsValidDbgEngPaths

Function IsValidDbgEngPaths

core/adapters/dbgengadapter.cpp:41–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39using namespace std;
40
41static bool IsValidDbgEngPaths(const std::string& path)
42{
43 if (path.empty())
44 return false;
45
46 auto enginePath = filesystem::path(path);
47 if (!filesystem::exists(enginePath))
48 return false;
49
50 if (!filesystem::exists(enginePath / "dbgeng.dll"))
51 return false;
52
53 if (!filesystem::exists(enginePath / "dbghelp.dll"))
54 return false;
55
56 if (!filesystem::exists(enginePath / "dbgmodel.dll"))
57 return false;
58
59 if (!filesystem::exists(enginePath / "dbgcore.dll"))
60 return false;
61
62 if (!filesystem::exists(enginePath / "dbgsrv.exe"))
63 return false;
64
65 return true;
66}
67
68std::string DbgEngAdapter::GetDbgEngPath(const std::string& arch)
69{

Callers 1

GetDbgEngPathMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected