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
540c6de1
Commit
540c6de1
authored
Dec 10, 2008
by
hjk
Browse files
work on std::list dumper
parent
09da60f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/gdbmacros/gdbmacros.cpp
View file @
540c6de1
...
...
@@ -661,11 +661,8 @@ void QDumper::endHash()
void
QDumper
::
putEllipsis
()
{
d
.
beginHash
();
P
(
d
,
"name"
,
"Warning:"
);
P
(
d
,
"value"
,
"<incomplete>"
);
P
(
d
,
"type"
,
d
.
innertype
);
d
.
endHash
();
addCommaIfNeeded
();
*
this
<<
"{name=
\"
<incomplete>
\"
,value=
\"\"
,type=
\"
"
<<
innertype
<<
"
\"
}"
;
}
//
...
...
@@ -2120,7 +2117,7 @@ static void qDumpStdList(QDumper &d)
int
nn
=
0
;
std
::
list
<
int
>::
const_iterator
it
=
list
.
begin
();
for
(
nn
<
101
&&
it
!=
list
.
end
();
++
nn
,
++
it
)
for
(
;
nn
<
101
&&
it
!=
list
.
end
();
++
nn
,
++
it
)
qCheckAccess
(
it
.
operator
->
());
if
(
nn
>
100
)
...
...
@@ -2135,7 +2132,7 @@ static void qDumpStdList(QDumper &d)
const
char
*
stripped
=
isPointerType
(
d
.
innertype
)
?
strippedInnerType
.
data
()
:
0
;
d
<<
",children=["
;
std
::
list
<
int
>::
const_iterator
it
=
list
.
begin
();
it
=
list
.
begin
();
for
(
int
i
=
0
;
i
<
1000
&&
it
!=
list
.
end
();
++
i
,
++
it
)
{
d
.
beginHash
();
P
(
d
,
"name"
,
"["
<<
i
<<
"]"
);
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
540c6de1
...
...
@@ -73,6 +73,9 @@ uint qHash(const double & f)
return
int
(
f
);
}
#define X myns
X
::
QString
str
;
class
Foo
{
public:
...
...
@@ -623,6 +626,8 @@ void testQVariant3()
void
testQVector
()
{
QVector
<
int
>
big
(
10000
);
QVector
<
Foo
*>
plist
;
plist
.
append
(
new
Foo
(
1
));
plist
.
append
(
0
);
...
...
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