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
5a5d4641
Commit
5a5d4641
authored
Nov 02, 2010
by
Friedemann Kleint
Browse files
Debugger: Make manual CCDB test compile again.
parent
dbb1c5ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/corebreakpoint.cpp
View file @
5a5d4641
...
...
@@ -29,8 +29,9 @@
#include
"corebreakpoint.h"
#include
"coreengine.h"
#include
"dbgwinutils.h"
#ifndef TEST_COMPILE // Usage in manual tests
# include "dbgwinutils.h"
#endif
#include
<utils/qtcassert.h>
#include
<QtCore/QTextStream>
...
...
@@ -246,6 +247,9 @@ Q_GLOBAL_STATIC(NormalizedFileCache, normalizedFileNameCache)
QString
BreakPoint
::
normalizeFileName
(
const
QString
&
f
)
{
#ifdef TEST_COMPILE // Usage in manual tests
return
f
;
#else
QTC_ASSERT
(
!
f
.
isEmpty
(),
return
f
)
const
NormalizedFileCache
::
const_iterator
it
=
normalizedFileNameCache
()
->
constFind
(
f
);
if
(
it
!=
normalizedFileNameCache
()
->
constEnd
())
...
...
@@ -256,6 +260,7 @@ QString BreakPoint::normalizeFileName(const QString &f)
normalizedName
[
0
]
=
normalizedName
.
at
(
0
).
toUpper
();
normalizedFileNameCache
()
->
insert
(
f
,
normalizedName
);
return
normalizedName
;
#endif
}
void
BreakPoint
::
clearNormalizeFileNameCache
()
...
...
tests/manual/ccdb/ccdb.pro
View file @
5a5d4641
...
...
@@ -7,11 +7,14 @@ CONFIG += console
CONFIG
-=
app_bundle
TEMPLATE
=
app
DEFINES
+=
TEST_COMPILE
#
--
Add
CDB
core
engine
CDB_CORE
=
..
/../../
src
/
plugins
/
debugger
/
cdb
include
(
$$
CDB_CORE
/
cdbcore
.
pri
)
INCLUDEPATH
*=
$$
CDB_CORE
include
(..
/../../
qtcreator
.
pri
)
#
--
Add
creator
'utils'
lib
CREATOR_LIB_LIB
=
..
/../../
lib
/
qtcreator
LIBS
*=
-
L
$$
CREATOR_LIB_LIB
...
...
tests/manual/manual.pro
View file @
5a5d4641
...
...
@@ -9,11 +9,6 @@ preprocessor \
subdir_proparser
\
trklauncher
win32
{
#
Uses
CDB
debugger
SUBDIRS
+=
ccdb
}
unix
{
#
Uses
popen
SUBDIRS
+=
\
...
...
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