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
6ac8bd0c
Commit
6ac8bd0c
authored
May 27, 2010
by
hjk
Browse files
debugger: std::basic_string's refcount can be -1.
Reviewed-By: Oswald Buddenhagen
parent
69bd2df4
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
6ac8bd0c
...
...
@@ -1816,7 +1816,7 @@ def qdump__std__string(d, item):
rep
=
(
data
.
cast
(
repType
)
-
1
).
dereference
()
size
=
rep
[
'_M_length'
]
alloc
=
rep
[
'_M_capacity'
]
check
(
rep
[
'_M_refcount'
]
>=
0
)
check
(
rep
[
'_M_refcount'
]
>=
-
1
)
# Can be -1 accoring to docs.
check
(
0
<=
size
and
size
<=
alloc
and
alloc
<=
100
*
1000
*
1000
)
p
=
gdb
.
Value
(
data
.
cast
(
charType
.
pointer
()))
s
=
""
...
...
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