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
0c945597
Commit
0c945597
authored
Oct 14, 2009
by
Friedemann Kleint
Browse files
Debugger: Remove obsolete code.
parent
7a2d4a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchutils.cpp
View file @
0c945597
...
...
@@ -661,24 +661,6 @@ QtDumperHelper::Type QtDumperHelper::specialType(QString s)
return
UnknownType
;
}
QtDumperHelper
::
ExpressionRequirement
QtDumperHelper
::
expressionRequirements
(
Type
t
)
{
switch
(
t
)
{
case
QAbstractItemType
:
return
NeedsComplexExpression
;
case
QMapType
:
case
QMultiMapType
:
case
QMapNodeType
:
case
StdMapType
:
return
NeedsCachedExpression
;
default:
// QObjectSlotType, QObjectSignalType need the signal number, which is numeric
break
;
}
return
NeedsNoExpression
;
}
QString
QtDumperHelper
::
qtVersionString
()
const
{
QString
rc
;
...
...
@@ -688,19 +670,13 @@ QString QtDumperHelper::qtVersionString() const
}
// Parse a list of types.
void
QtDumperHelper
::
parseQueryTypes
(
const
QStringList
&
l
,
Debugger
debugger
)
void
QtDumperHelper
::
parseQueryTypes
(
const
QStringList
&
l
,
Debugger
/*
debugger
*/
)
{
m_nameTypeMap
.
clear
();
const
int
count
=
l
.
count
();
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
const
Type
t
=
specialType
(
l
.
at
(
i
));
if
(
t
!=
UnknownType
)
{
// Exclude types that require expression syntax for CDB
if
(
debugger
==
GdbDebugger
||
expressionRequirements
(
t
)
!=
NeedsComplexExpression
)
m_nameTypeMap
.
insert
(
l
.
at
(
i
),
t
);
}
else
{
m_nameTypeMap
.
insert
(
l
.
at
(
i
),
SupportedType
);
}
m_nameTypeMap
.
insert
(
l
.
at
(
i
),
t
!=
UnknownType
?
t
:
SupportedType
);
}
}
...
...
src/plugins/debugger/watchutils.h
View file @
0c945597
...
...
@@ -168,20 +168,8 @@ public:
// 'data' excludes the leading indicator character.
static
bool
parseValue
(
const
char
*
data
,
QList
<
WatchData
>
*
l
);
// What kind of debugger expressions are required to dump that type.
// A debugger with restricted expression syntax can handle
// 'NeedsNoExpression' and 'NeedsCachedExpression' if it is found in
// the cache.
enum
ExpressionRequirement
{
NeedsNoExpression
,
// None, easy.
NeedsCachedExpression
,
// Common values might be found in expression cache.
NeedsComplexExpression
// Totally arbitrary, adress-dependent expressions
};
static
ExpressionRequirement
expressionRequirements
(
Type
t
);
QString
toString
(
bool
debug
=
false
)
const
;
static
QString
msgDumperOutdated
(
double
requiredVersion
,
double
currentVersion
);
private:
...
...
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