forked from qt-creator/qt-creator
Debugger: Fix setting of Qt version fallback, again
Change-Id: I6b6cd448884800cb6d08dbdce15cb99f4ea8ba2b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -253,8 +253,8 @@ class DumperBase():
|
||||
#DumperBase.warn('WATCHERS: %s' % self.watchers)
|
||||
|
||||
def setFallbackQtVersion(self, args):
|
||||
version = int(args.get('version', '0x%x' % self.fallbackQtVersion), 16)
|
||||
self.warn("got fallback qt version %x" % version)
|
||||
version = int(args.get('version', self.fallbackQtVersion))
|
||||
DumperBase.warn("got fallback qt version 0x%x" % version)
|
||||
self.fallbackQtVersion = version
|
||||
|
||||
def resetPerStepCaches(self):
|
||||
|
@@ -2832,8 +2832,10 @@ void CdbEngine::setupScripting(const DebuggerResponse &response)
|
||||
runCommand({command, ScriptCommand});
|
||||
}
|
||||
|
||||
const QString qtVersion = QString::number(runParameters().fallbackQtVersion, 16);
|
||||
runCommand({"theDumper.setFallbackQtVersion(0x" + qtVersion + ")", ScriptCommand});
|
||||
DebuggerCommand cmd0("theDumper.setFallbackQtVersion", ScriptCommand);
|
||||
cmd0.arg("version", runParameters().fallbackQtVersion);
|
||||
runCommand(cmd0);
|
||||
|
||||
runCommand({"theDumper.loadDumpers(None)", ScriptCommand,
|
||||
[this](const DebuggerResponse &response) {
|
||||
watchHandler()->addDumpers(response.data["result"]["dumpers"]);
|
||||
|
@@ -4007,7 +4007,10 @@ void GdbEngine::setupEngine()
|
||||
if (!commands.isEmpty())
|
||||
runCommand({commands});
|
||||
|
||||
runCommand({"setFallbackQtVersion(0x" + QString::number(rp.fallbackQtVersion, 16) + ")"});
|
||||
DebuggerCommand cmd1("setFallbackQtVersion");
|
||||
cmd1.arg("version", rp.fallbackQtVersion);
|
||||
runCommand(cmd1);
|
||||
|
||||
runCommand({"loadDumpers", CB(handlePythonSetup)});
|
||||
|
||||
// Reload peripheral register description.
|
||||
|
@@ -264,10 +264,6 @@ void LldbEngine::setupEngine()
|
||||
runCommand(cmd);
|
||||
}
|
||||
|
||||
DebuggerCommand cmd0("setFallbackQtVersion");
|
||||
cmd0.arg("version", "0x" + QString::number(rp.fallbackQtVersion, 16));
|
||||
runCommand(cmd0);
|
||||
|
||||
DebuggerCommand cmd1("loadDumpers");
|
||||
cmd1.callback = [this](const DebuggerResponse &response) {
|
||||
watchHandler()->addDumpers(response.data["dumpers"]);
|
||||
@@ -343,6 +339,10 @@ void LldbEngine::setupEngine()
|
||||
|
||||
cmd2.flags = Silent;
|
||||
runCommand(cmd2);
|
||||
|
||||
DebuggerCommand cmd0("setFallbackQtVersion");
|
||||
cmd0.arg("version", rp.fallbackQtVersion);
|
||||
runCommand(cmd0);
|
||||
}
|
||||
|
||||
void LldbEngine::runEngine()
|
||||
|
Reference in New Issue
Block a user