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
82cad87c
Commit
82cad87c
authored
Nov 22, 2010
by
hjk
Browse files
debugger: make -stack-select-frame and -thread-list-ids discardable
parent
585bb50d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
82cad87c
...
...
@@ -3021,7 +3021,7 @@ void GdbEngine::activateFrame(int frameIndex)
// after a response to this -stack-select-frame here.
handler
->
setCurrentIndex
(
frameIndex
);
postCommand
(
"-stack-select-frame "
+
QByteArray
::
number
(
frameIndex
),
CB
(
handleStackSelectFrame
));
Discardable
,
CB
(
handleStackSelectFrame
));
}
gotoLocation
(
handler
->
currentFrame
(),
true
);
}
...
...
@@ -3035,22 +3035,23 @@ void GdbEngine::handleStackSelectFrame(const GdbResponse &response)
void
GdbEngine
::
handleThreadInfo
(
const
GdbResponse
&
response
)
{
int
id
=
response
.
cookie
.
toInt
();
const
int
id
=
response
.
cookie
.
toInt
();
if
(
response
.
resultClass
==
GdbResultDone
)
{
int
currentThreadId
;
const
Threads
threads
=
ThreadsHandler
::
parseGdbmiThreads
(
response
.
data
,
&
currentThreadId
);
const
Threads
threads
=
ThreadsHandler
::
parseGdbmiThreads
(
response
.
data
,
&
currentThreadId
);
threadsHandler
()
->
setThreads
(
threads
);
threadsHandler
()
->
setCurrentThreadId
(
currentThreadId
);
updateViews
();
// Adjust Threads combobox.
if
(
m_hasInferiorThreadList
)
{
postCommand
(
"threadnames "
+
debuggerCore
()
->
action
(
MaximalStackDepth
)
->
value
().
toByteArray
(),
CB
(
handleThreadNames
),
id
);
Discardable
,
CB
(
handleThreadNames
),
id
);
}
}
else
{
// Fall back for older versions: Try to get at least a list
// of running threads.
postCommand
(
"-thread-list-ids"
,
CB
(
handleThreadListIds
),
id
);
postCommand
(
"-thread-list-ids"
,
Discardable
,
CB
(
handleThreadListIds
),
id
);
}
}
...
...
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