forked from qt-creator/qt-creator
Debugger: disable load qml stack action for cdb
Since collecting the qml stack relies on calling functions it has a high risk of getting stuck in that call at least with Qt 5.15. Never the less I added the correct function in the cdbextension so when the action get's re-enabled in the future we already start with an updated extension. Task-number: QTCREATORBUG-22209 Change-Id: I535f8db5a64ae48b4163d9b67e133cc3de338432 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1250,7 +1250,7 @@ extern "C" HRESULT CALLBACK qmlstack(CIDebugClient *client, PCSTR argsIn)
|
|||||||
// the start assuming this is invoked for crashed applications.
|
// the start assuming this is invoked for crashed applications.
|
||||||
std::ostringstream callStr;
|
std::ostringstream callStr;
|
||||||
const QtInfo &qtInfo = QtInfo::get(SymbolGroupValueContext(exc.dataSpaces(), exc.symbols()));
|
const QtInfo &qtInfo = QtInfo::get(SymbolGroupValueContext(exc.dataSpaces(), exc.symbols()));
|
||||||
callStr << qtInfo.prependQtModule("qt_v4StackTrace(", QtInfo::Qml) << std::showbase << std::hex
|
callStr << qtInfo.prependQtModule("qt_v4StackTraceForEngine(", QtInfo::Qml) << std::showbase << std::hex
|
||||||
<< jsExecutionEngine << std::dec << std::noshowbase << ')';
|
<< jsExecutionEngine << std::dec << std::noshowbase << ')';
|
||||||
std::wstring wOutput;
|
std::wstring wOutput;
|
||||||
if (!ExtensionContext::instance().call(callStr.str(), ExtensionContext::CallWithExceptionsHandled, &wOutput, &errorMessage))
|
if (!ExtensionContext::instance().call(callStr.str(), ExtensionContext::CallWithExceptionsHandled, &wOutput, &errorMessage))
|
||||||
|
@@ -730,8 +730,7 @@ bool CdbEngine::hasCapability(unsigned cap) const
|
|||||||
| CreateFullBacktraceCapability
|
| CreateFullBacktraceCapability
|
||||||
| OperateByInstructionCapability
|
| OperateByInstructionCapability
|
||||||
| RunToLineCapability
|
| RunToLineCapability
|
||||||
| MemoryAddressCapability
|
| MemoryAddressCapability);
|
||||||
| AdditionalQmlStackCapability);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CdbEngine::executeStepIn(bool byInstruction)
|
void CdbEngine::executeStepIn(bool byInstruction)
|
||||||
|
Reference in New Issue
Block a user