forked from qt-creator/qt-creator
Debugger: Restrict LLDB register reporting by view visibility
Change-Id: Iaf92f565f9b33f5739bb3e0a19920f160c0b44f7 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user