Commit ab388457 authored by hjk's avatar hjk
Browse files

Debugger: Restrict LLDB register reporting by view visibility



Change-Id: Iaf92f565f9b33f5739bb3e0a19920f160c0b44f7
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ed413a90
......@@ -997,7 +997,6 @@ class Dumper(DumperBase):
self.report('')
def reportData(self, _ = None):
self.reportRegisters()
if self.process is None:
self.report('process="none"')
else:
......
......@@ -33,6 +33,7 @@
#include <debugger/debuggercore.h>
#include <debugger/debuggerdialogs.h>
#include <debugger/debuggerinternalconstants.h>
#include <debugger/debuggermainwindow.h>
#include <debugger/debuggerplugin.h>
#include <debugger/debuggerprotocol.h>
#include <debugger/debuggerstartparameters.h>
......@@ -818,6 +819,8 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
//cmd.arg("resultvarname", m_resultVarName);
runCommand(cmd);
reloadRegisters();
}
void LldbEngine::handleLldbError(QProcess::ProcessError error)
......@@ -1050,7 +1053,8 @@ void LldbEngine::refreshLocation(const GdbMi &reportedLocation)
void LldbEngine::reloadRegisters()
{
runCommand("reportRegisters");
if (debuggerCore()->isDockVisible(QLatin1String(DOCKWIDGET_REGISTER)))
runCommand("reportRegisters");
}
void LldbEngine::fetchDisassembler(DisassemblerAgent *agent)
......
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