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
187e4d68
Commit
187e4d68
authored
Jan 10, 2011
by
Friedemann Kleint
Browse files
Debugger[New CDB]: Show pointer values in simple dumpers.
parent
11084153
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qtcreatorcdbext/symbolgroupvalue.cpp
View file @
187e4d68
...
...
@@ -1585,13 +1585,6 @@ static bool dumpQVariant(const SymbolGroupValue &v, std::wostream &str, void **s
return
true
;
}
static
inline
std
::
wstring
msgContainerSize
(
int
s
)
{
std
::
wostringstream
str
;
str
<<
L'<'
<<
s
<<
L" items>"
;
return
str
.
str
();
}
// Dump builtin simple types using SymbolGroupValue expressions.
unsigned
dumpSimpleType
(
SymbolGroupNode
*
n
,
const
SymbolGroupValueContext
&
ctx
,
std
::
wstring
*
s
,
int
*
knownTypeIn
/* = 0 */
,
...
...
@@ -1616,7 +1609,14 @@ unsigned dumpSimpleType(SymbolGroupNode *n, const SymbolGroupValueContext &ctx,
return
SymbolGroupNode
::
SimpleDumperNotApplicable
;
}
std
::
wostringstream
str
;
// Prefix by pointer value
const
SymbolGroupValue
v
(
n
,
ctx
);
if
(
SymbolGroupValue
::
isPointerType
(
v
.
type
()))
if
(
const
ULONG64
pointerValue
=
v
.
pointerValue
())
str
<<
std
::
showbase
<<
std
::
hex
<<
pointerValue
<<
std
::
dec
<<
std
::
noshowbase
<<
' '
;
// Simple dump of size for containers
if
(
kt
&
KT_ContainerType
)
{
const
int
size
=
containerSize
(
kt
,
v
);
...
...
@@ -1625,12 +1625,12 @@ unsigned dumpSimpleType(SymbolGroupNode *n, const SymbolGroupValueContext &ctx,
if
(
containerSizeIn
)
*
containerSizeIn
=
size
;
if
(
size
>=
0
)
{
*
s
=
msgContainerSize
(
size
);
str
<<
L'<'
<<
size
<<
L" items>"
;
*
s
=
str
.
str
();
return
SymbolGroupNode
::
SimpleDumperOk
;
}
return
SymbolGroupNode
::
SimpleDumperFailed
;
}
std
::
wostringstream
str
;
unsigned
rc
=
SymbolGroupNode
::
SimpleDumperNotApplicable
;
switch
(
kt
)
{
case
KT_QChar
:
...
...
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