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
Tobias Hunger
qt-creator
Commits
e2ef47bc
Commit
e2ef47bc
authored
Apr 16, 2009
by
hjk
Browse files
debugger: prevent endless loop when contructor breakpoints are located
in inaccessible files
parent
98c87839
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
e2ef47bc
...
...
@@ -2214,7 +2214,7 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointData *
// 2.1 y 0x0040168e in MainWindow::MainWindow(QWidget*) at mainwindow.cpp:7
// 2.2 y 0x00401792 in MainWindow::MainWindow(QWidget*) at mainwindow.cpp:7
// tested in ../../../tests/auto/debugger/
QRegExp
re
(
"MULTIPLE.*(0x[0-9a-f]+) in (.*)
\\
s+at (.*):([
\\
d]+)([^
\\
d]|$)"
);
re
.
setMinimal
(
true
);
...
...
@@ -2223,6 +2223,10 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointData *
data
->
bpFuncName
=
re
.
cap
(
2
).
trimmed
();
data
->
bpLineNumber
=
re
.
cap
(
4
);
QString
full
=
fullName
(
re
.
cap
(
3
));
if
(
full
.
isEmpty
())
{
qDebug
()
<<
"NO FULL NAME KNOWN FOR"
<<
re
.
cap
(
3
);
full
=
re
.
cap
(
3
);
// FIXME: wrong, but prevents recursion
}
data
->
markerLineNumber
=
data
->
bpLineNumber
.
toInt
();
data
->
markerFileName
=
full
;
data
->
bpFileName
=
full
;
...
...
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