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
aae68107
Commit
aae68107
authored
May 06, 2010
by
hjk
Browse files
debugger: fix display of QStringList after a takeFirst();
(cherry picked from commit
f9e6a963
)
parent
e1c032f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
aae68107
...
...
@@ -1421,6 +1421,7 @@ def qdump__QStringList(d, item):
if
d
.
isExpanded
(
item
):
innerType
=
gdb
.
lookup_type
(
d
.
ns
+
"QString"
)
ptr
=
gdb
.
Value
(
d_ptr
[
"array"
]).
cast
(
innerType
.
pointer
())
ptr
+=
d_ptr
[
"begin"
]
with
Children
(
d
,
[
size
,
1000
],
innerType
):
for
i
in
d
.
childRange
():
d
.
putItem
(
Item
(
ptr
.
dereference
(),
item
.
iname
,
i
))
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
aae68107
...
...
@@ -1200,6 +1200,7 @@ void testQStringList()
l
<<
"Hello "
;
l
<<
" big, "
;
l
<<
" fat "
;
l
.
takeFirst
();
l
<<
" World "
;
}
...
...
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