DAP: Add select thread support

Change-Id: Ib85d7d4413284d5919a2b19016aec503c9cb5fca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-08-09 17:08:54 +02:00
parent 8b1047aa8f
commit 888e7e0c6d
2 changed files with 10 additions and 1 deletions

View File

@@ -336,6 +336,9 @@ void DapEngine::activateFrame(int frameIndex)
void DapEngine::selectThread(const Thread &thread)
{
Q_UNUSED(thread)
m_currentThreadId = thread->id().toInt();
threadsHandler()->setCurrentThread(thread);
updateLocals();
}
bool DapEngine::acceptsBreakpoint(const BreakpointParameters &) const
@@ -935,6 +938,11 @@ void DapEngine::refreshStack(const QJsonArray &stackFrames)
gotoLocation(handler->frameAt(index));
}
void DapEngine::reloadFullStack()
{
updateAll();
}
void DapEngine::updateAll()
{
runCommand({"stackListFrames"});
@@ -943,6 +951,7 @@ void DapEngine::updateAll()
void DapEngine::updateLocals()
{
dapStackTrace();
}
bool DapEngine::hasCapability(unsigned cap) const