Debugger: Restrict LLDB register reporting by view visibility

Change-Id: Iaf92f565f9b33f5739bb3e0a19920f160c0b44f7
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-11-08 16:11:01 +01:00
parent ed413a908e
commit ab388457e6
2 changed files with 5 additions and 2 deletions

View File

@@ -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:

View File

@@ -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)