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
8182e921
Commit
8182e921
authored
Mar 04, 2010
by
hjk
Browse files
debugger: fix breakpoint markers in constructors
parent
f5c8389a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
8182e921
...
...
@@ -2259,6 +2259,12 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointData *
full
=
re
.
cap
(
3
);
// FIXME: wrong, but prevents recursion
}
}
// The variable full could still contain, say "foo.cpp" when we asked
// for "/full/path/to/foo.cpp". In this case, using the requested
// instead of the acknowledged name makes sense as it will allow setting
// the marker in more cases.
if
(
data
->
fileName
.
endsWith
(
full
))
full
=
data
->
fileName
;
data
->
markerLineNumber
=
data
->
bpLineNumber
.
toInt
();
data
->
markerFileName
=
full
;
data
->
bpFileName
=
full
;
...
...
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