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
Tobias Hunger
qt-creator
Commits
06abe6b8
Commit
06abe6b8
authored
Oct 06, 2009
by
hjk
Browse files
debugger: fix frame switching when using core files
parent
d1305884
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/coregdbadapter.cpp
View file @
06abe6b8
...
...
@@ -149,6 +149,9 @@ void CoreGdbAdapter::handleTargetCore1(const GdbResponse &response)
emit
inferiorStartFailed
(
tr
(
"No binary found."
));
}
else
{
m_executable
=
console
.
data
().
mid
(
pos1
+
1
,
pos2
-
pos1
-
1
);
// Strip off command line arguments. FIXME: make robust.
if
(
m_executable
.
contains
(
' '
))
m_executable
=
m_executable
.
section
(
' '
,
0
,
0
);
QTC_ASSERT
(
!
m_executable
.
isEmpty
(),
/**/
);
// Finish extra round.
m_engine
->
postCommand
(
_
(
"detach"
),
CB
(
handleDetach1
));
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
06abe6b8
...
...
@@ -2368,7 +2368,7 @@ void GdbEngine::handleStackListFrames(const GdbResponse &response)
void
GdbEngine
::
activateFrame
(
int
frameIndex
)
{
m_manager
->
resetLocation
();
if
(
state
()
!=
InferiorStopped
)
if
(
state
()
!=
InferiorStopped
&&
state
()
!=
InferiorUnrunnable
)
return
;
StackHandler
*
stackHandler
=
manager
()
->
stackHandler
();
...
...
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