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

Method ReportExitCode

Source/cmDebuggerAdapter.cxx:341–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void cmDebuggerAdapter::ReportExitCode(int exitCode)
342{
343 ThreadManager->EndThread(DefaultThread);
344 dap::ThreadEvent threadEvent;
345 threadEvent.reason = "exited";
346 threadEvent.threadId = DefaultThread->GetId();
347 DefaultThread.reset();
348
349 dap::ExitedEvent exitEvent;
350 exitEvent.exitCode = exitCode;
351
352 dap::TerminatedEvent terminatedEvent;
353
354 if (SessionActive.load()) {
355 Session->send(threadEvent);
356 Session->send(exitEvent);
357 Session->send(terminatedEvent);
358 }
359
360 // Wait until disconnected or error.
361 DisconnectEvent->Wait();
362}
363
364void cmDebuggerAdapter::OnFileParsedSuccessfully(
365 std::string const& sourcePath,

Callers 3

testProtocolWithPipesFunction · 0.80
runTestFunction · 0.80
StopDebuggerIfNeededMethod · 0.80

Calls 5

EndThreadMethod · 0.80
GetIdMethod · 0.45
resetMethod · 0.45
sendMethod · 0.45
WaitMethod · 0.45

Tested by 2

testProtocolWithPipesFunction · 0.64
runTestFunction · 0.64