Skip to content
GitLab
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
2548ca06
Commit
2548ca06
authored
Sep 29, 2009
by
hjk
Browse files
debugger: don't use gotoLocation() unnecessarily twice
parent
1bd71635
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
2548ca06
...
...
@@ -2304,7 +2304,10 @@ void GdbEngine::handleStackListFrames(const GdbResponse &response)
theDebuggerAction
(
ExpandStack
)
->
setEnabled
(
canExpand
);
manager
()
->
stackHandler
()
->
setFrames
(
stackFrames
,
canExpand
);
if
(
topFrame
!=
-
1
||
theDebuggerBoolSetting
(
OperateByInstruction
))
{
if
(
topFrame
!=
-
1
&&
topFrame
!=
0
)
{
// For topFrame == -1 there is no frame at all, for topFrame == 0
// we already issued a 'gotoLocation' when reading the *stopped
// message.
const
StackFrame
&
frame
=
manager
()
->
stackHandler
()
->
currentFrame
();
gotoLocation
(
frame
,
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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