Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
200b18d4
Commit
200b18d4
authored
Jun 28, 2010
by
hjk
Browse files
debugger: don't load registers if view is not shown
parent
01a59535
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
200b18d4
...
...
@@ -359,6 +359,10 @@ void DebuggerEngine::handleCommand(int role, const QVariant &value)
reloadModules
();
break
;
case
RequestReloadRegistersRole
:
reloadRegisters
();
break
;
case
RequestExecContinueRole
:
continueInferior
();
break
;
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
200b18d4
...
...
@@ -2548,6 +2548,11 @@ DebuggerEngine *DebuggerPlugin::sessionTemplate()
return
d
->
m_sessionEngine
;
}
bool
DebuggerPlugin
::
isRegisterViewVisible
()
const
{
return
d
->
m_registerDock
->
toggleViewAction
()
->
isChecked
();
}
//////////////////////////////////////////////////////////////////////
//
// Testing
...
...
src/plugins/debugger/debuggerplugin.h
View file @
200b18d4
...
...
@@ -103,6 +103,8 @@ public:
Internal
::
DebuggerEngine
*
sessionTemplate
();
void
updateState
(
Internal
::
DebuggerEngine
*
engine
);
bool
isRegisterViewVisible
()
const
;
public
slots
:
void
exitDebugger
();
// FIXME: remove
void
clearCppCodeModelSnapshot
();
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
200b18d4
...
...
@@ -3079,6 +3079,9 @@ void GdbEngine::activateSnapshot2()
void
GdbEngine
::
reloadRegisters
()
{
if
(
!
plugin
()
->
isRegisterViewVisible
())
return
;
if
(
state
()
!=
InferiorStopped
&&
state
()
!=
InferiorUnrunnable
)
return
;
if
(
!
m_registerNamesListed
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment