forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user