MCPcopy Create free account
hub / github.com/Kitware/CMake / DebuggerTestHelper

Class DebuggerTestHelper

Tests/CMakeLib/testDebugger.h:60–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 } while (false)
59
60class DebuggerTestHelper
61{
62 std::shared_ptr<dap::ReaderWriter> Client2Debugger = dap::pipe();
63 std::shared_ptr<dap::ReaderWriter> Debugger2Client = dap::pipe();
64
65public:
66 std::unique_ptr<dap::Session> Client = dap::Session::create();
67 std::unique_ptr<dap::Session> Debugger = dap::Session::create();
68 void bind()
69 {
70 auto client2server = dap::pipe();
71 auto server2client = dap::pipe();
72 Client->bind(server2client, client2server);
73 Debugger->bind(client2server, server2client);
74 }
75 std::vector<cmListFileFunction> CreateListFileFunctions(char const* str,
76 char const* filename)
77 {
78 cmMessenger messenger;
79 cmListFileBacktrace backtrace;
80 cmListFile listfile;
81 listfile.ParseString(str, filename, &messenger, backtrace);
82 return listfile.Functions;
83 }
84};
85
86class ScopedThread
87{

Callers

nothing calls this directly

Calls 1

pipeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…