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
1af67204
Commit
1af67204
authored
Apr 21, 2010
by
hjk
Browse files
debugger: prevent crash if breakpoint has been removed before the 'info line'
response was received
parent
e94b6d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
1af67204
...
...
@@ -2414,6 +2414,8 @@ void GdbEngine::handleInfoLine(const GdbResponse &response)
const
int
bpNumber
=
response
.
cookie
.
toInt
();
const
BreakHandler
*
handler
=
manager
()
->
breakHandler
();
BreakpointData
*
data
=
handler
->
findBreakpoint
(
bpNumber
);
if
(
!
data
)
return
;
QByteArray
ba
=
response
.
data
.
findChild
(
"consolestreamoutput"
).
data
();
const
int
pos
=
ba
.
indexOf
(
' '
,
5
);
if
(
ba
.
startsWith
(
"Line "
)
&&
pos
!=
-
1
)
{
...
...
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