Debugger: use Qt version from kit as fallback for dumper

Fixes: QTCREATORBUG-26456
Change-Id: If2cd664212b3fa07d7abaef7a1173f79716884bb
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-10-25 12:03:34 +02:00
parent ec422648ad
commit 5a2b58550e
6 changed files with 19 additions and 1 deletions

View File

@@ -2772,6 +2772,8 @@ void CdbEngine::setupScripting(const DebuggerResponse &response)
runCommand({command, ScriptCommand});
}
const QString qtVersion = QString::number(runParameters().fallbackQtVersion, 16);
runCommand({"theDumper.setFallbackQtVersion(0x" + qtVersion + ")", ScriptCommand});
runCommand({"theDumper.loadDumpers(None)", ScriptCommand,
[this](const DebuggerResponse &response) {
watchHandler()->addDumpers(response.data["result"]["dumpers"]);