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
119ea807
Commit
119ea807
authored
Dec 15, 2009
by
Friedemann Kleint
Browse files
Debugger: Ignore case of file name in breakpoint handling on Windows.
Task-number: QTCREATORBUG-438
parent
397b634a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/breakhandler.cpp
View file @
119ea807
...
...
@@ -49,6 +49,18 @@ using namespace Debugger::Internal;
//
//////////////////////////////////////////////////////////////////
// Compare file names case insensitively on Windows.
static
inline
bool
fileNameMatch
(
const
QString
&
f1
,
const
QString
&
f2
)
{
return
f1
.
compare
(
f2
,
#ifdef Q_OS_WIN
Qt
::
CaseInsensitive
#else
Qt
::
CaseSensitive
#endif
)
==
0
;
}
namespace
Debugger
{
namespace
Internal
{
...
...
@@ -236,7 +248,7 @@ bool BreakpointData::isLocatedAt(const QString &fileName_, int lineNumber_) cons
return true;
return false;
*/
return
lineNumber_
==
markerLineNumber
&&
fileName
_
==
markerFileName
;
return
lineNumber_
==
markerLineNumber
&&
fileName
Match
(
fileName_
,
markerFileName
)
;
}
bool
BreakpointData
::
conditionsMatch
()
const
...
...
@@ -310,7 +322,7 @@ int BreakHandler::findBreakpoint(const BreakpointData &needle)
return
index
;
// at least at a position we were looking for
// FIXME: breaks multiple breakpoints at the same location
if
(
data
->
fileName
==
needle
.
bpFileName
if
(
fileNameMatch
(
data
->
fileName
,
needle
.
bpFileName
)
&&
data
->
lineNumber
==
needle
.
bpLineNumber
)
return
index
;
}
...
...
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