MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / clearThreads

Method clearThreads

src/plugins/debugger/dap/debugsession.cpp:335–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void DebugSession::clearThreads(bool removeThreads, dap::optional<integer> reference)
336{
337 if (reference) {
338 auto thread = threads.find(reference.value());
339 if (thread != threads.end()) {
340 auto threadptr = thread->second;
341 threadptr->clearCallStack();
342 threadptr->stoppedDetails = undefined;
343 threadptr->stopped = false;
344
345 if (removeThreads) {
346 delete threadptr;
347 threadptr = nullptr;
348 }
349 }
350 } else {
351 for (auto thread : threads) {
352 auto threadptr = thread.second;
353 threadptr->clearCallStack();
354 threadptr->stoppedDetails = undefined;
355 threadptr->stopped = false;
356 }
357
358 if (removeThreads) {
359 threads.clear();
360 threadIds.clear();
361 // ExpressionContainer.allValues.clear();
362 }
363 }
364}
365
366void DebugSession::rawUpdate(IRawModelUpdate *data)
367{

Callers

nothing calls this directly

Calls 5

clearCallStackMethod · 0.80
findMethod · 0.45
valueMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected