| 39 | using namespace std; |
| 40 | |
| 41 | static 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 | |
| 68 | std::string DbgEngAdapter::GetDbgEngPath(const std::string& arch) |
| 69 | { |