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
2a28741f
Commit
2a28741f
authored
Jan 04, 2010
by
hjk
Browse files
debugger: str(p) is unsafe to use for invalid char *
parent
960f8dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
2a28741f
...
...
@@ -177,8 +177,11 @@ def checkPointer(p, align = 1):
def
isNull
(
p
):
s
=
str
(
p
)
return
s
==
"0x0"
or
s
.
startswith
(
"0x0 "
)
# The following can cause evaluation to abort with "UnicodeEncodeError"
# for invalid char *, as their "contents" is being examined
#s = str(p)
#return s == "0x0" or s.startswith("0x0 ")
return
p
.
cast
(
gdb
.
lookup_type
(
"unsigned long long"
))
==
0
movableTypes
=
set
([
"QBrush"
,
"QBitArray"
,
"QByteArray"
,
...
...
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