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

Function IsValidDbgEngPaths

core/adapters/dbgengttdadapter.cpp:14–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14static bool IsValidDbgEngPaths(const std::string& path)
15{
16 if (path.empty())
17 return false;
18
19 auto enginePath = filesystem::path(path);
20 if (!filesystem::exists(enginePath))
21 return false;
22
23 if (!filesystem::exists(enginePath / "dbgeng.dll"))
24 return false;
25
26 if (!filesystem::exists(enginePath / "dbghelp.dll"))
27 return false;
28
29 if (!filesystem::exists(enginePath / "dbgmodel.dll"))
30 return false;
31
32 if (!filesystem::exists(enginePath / "dbgcore.dll"))
33 return false;
34
35 if (!filesystem::exists(enginePath / "dbgsrv.exe"))
36 return false;
37
38 if (!filesystem::exists(enginePath / "ttd"))
39 return false;
40
41 if (!filesystem::exists(enginePath / "ttd" / "TTDReplay.dll"))
42 return false;
43
44 return true;
45}
46
47
48std::string DbgEngTTDAdapter::GetDbgEngPath(const std::string& arch)

Callers 1

GetDbgEngPathMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected