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
df4aa2d7
Commit
df4aa2d7
authored
Nov 22, 2010
by
hjk
Browse files
debugger: fix display of locals after
fedd048f
parent
acdae43a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
df4aa2d7
...
...
@@ -2872,7 +2872,6 @@ void GdbEngine::selectThread(int index)
void
GdbEngine
::
handleStackSelectThread
(
const
GdbResponse
&
)
{
QTC_ASSERT
(
state
()
==
InferiorUnrunnable
||
state
()
==
InferiorStopOk
,
/**/
);
//qDebug("FIXME: StackHandler::handleOutput: SelectThread");
showStatusMessage
(
tr
(
"Retrieving data for stack view..."
),
3000
);
reloadRegisters
();
reloadStack
(
true
);
...
...
@@ -3006,7 +3005,6 @@ void GdbEngine::activateFrame(int frameIndex)
return
;
StackHandler
*
handler
=
stackHandler
();
int
oldIndex
=
handler
->
currentIndex
();
if
(
frameIndex
==
handler
->
stackSize
())
{
reloadFullStack
();
...
...
@@ -3015,22 +3013,20 @@ void GdbEngine::activateFrame(int frameIndex)
QTC_ASSERT
(
frameIndex
<
handler
->
stackSize
(),
return
);
if
(
oldIndex
!=
frameIndex
)
{
//
Assuming the command always succ
eed
s
t
his saves a roundtrip.
//
Otherwise the lines below would need to get trigg
ere
d
// after a response to this -stack-select-frame here.
handler
->
setCurrentIndex
(
frameIndex
)
;
postCommand
(
"-s
tack
-s
elect
-frame "
+
QByteArray
::
number
(
frameIndex
),
Discardable
,
CB
(
handleStackSelectFrame
)
);
}
gotoLocation
(
handler
->
currentFrame
(),
true
);
// Assuming the command always succeeds this saves a roundtrip.
//
Otherwise the lines below would n
eed t
o get triggered
//
after a response to this -stack-select-frame h
ere
.
handler
->
setCurrentIndex
(
frameIndex
);
postCommand
(
"-stack-select-frame "
+
QByteArray
::
number
(
frameIndex
)
,
CB
(
handleS
tack
S
elect
Frame
));
gotoLocation
(
stackHandler
()
->
currentFrame
(),
true
);
updateLocals
();
reloadRegisters
(
);
}
void
GdbEngine
::
handleStackSelectFrame
(
const
GdbResponse
&
response
)
{
Q_UNUSED
(
response
);
updateLocals
();
reloadRegisters
();
}
void
GdbEngine
::
handleThreadInfo
(
const
GdbResponse
&
response
)
...
...
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