Commit 946ab99b authored by hjk's avatar hjk

Debugger: De-noise

Change-Id: Ia7ba88d25ba088ccc5db92a5544abc82e9a48d33
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6d41c692
......@@ -172,10 +172,9 @@ public:
connect(&m_locationTimer, SIGNAL(timeout()), SLOT(resetLocation()));
connect(debuggerCore()->action(IntelFlavor), SIGNAL(valueChanged(QVariant)),
SLOT(reloadDisassembly()));
Core::VariableManager::registerFileVariables(Constants::PrefixDebugExecutable,
tr("Debugged executable"));
connect(Core::VariableManager::instance(),
SIGNAL(variableUpdateRequested(QByteArray)),
VariableManager::registerFileVariables(Constants::PrefixDebugExecutable,
tr("Debugged executable"));
connect(VariableManager::instance(), SIGNAL(variableUpdateRequested(QByteArray)),
SLOT(updateVariable(QByteArray)));
}
......@@ -188,11 +187,11 @@ public slots:
void doInterruptInferior();
void doFinishDebugger();
void updateVariable(QByteArray variable) {
if (Core::VariableManager::isFileVariable(variable, Constants::PrefixDebugExecutable)) {
VariableManager::insert(variable, Core::VariableManager::fileVariableValue(variable,
void updateVariable(QByteArray variable)
{
if (VariableManager::isFileVariable(variable, Constants::PrefixDebugExecutable))
VariableManager::insert(variable, VariableManager::fileVariableValue(variable,
Constants::PrefixDebugExecutable, QFileInfo(m_startParameters.executable)));
}
}
void reloadDisassembly()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment