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
982ada02
Commit
982ada02
authored
Jul 01, 2010
by
hjk
Browse files
debugger: don't try to deref void pointers in dumpers
parent
d4ed1e2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
982ada02
...
...
@@ -1298,8 +1298,15 @@ class Dumper:
elif
typedefStrippedType
.
code
==
gdb
.
TYPE_CODE_PTR
:
#warn("POINTER: %s" % format)
isHandled
=
False
target
=
stripTypedefs
(
type
.
target
())
if
not
format
is
None
:
if
(
not
isHandled
)
and
target
.
code
==
gdb
.
TYPE_CODE_VOID
:
self
.
putType
(
item
.
value
.
type
)
self
.
putValue
(
str
(
value
))
self
.
putNumChild
(
0
)
isHandled
=
True
if
(
not
isHandled
)
and
(
not
format
is
None
):
self
.
putAddress
(
value
.
address
)
self
.
putType
(
item
.
value
.
type
)
isHandled
=
True
...
...
@@ -1339,8 +1346,7 @@ class Dumper:
self
.
putNumChild
(
0
)
isHandled
=
True
target
=
stripTypedefs
(
type
.
target
())
if
(
not
isHandled
)
and
target
.
code
==
gdb
.
TYPE_CODE_VOID
:
if
(
not
isHandled
):
self
.
putType
(
item
.
value
.
type
)
self
.
putValue
(
str
(
value
))
self
.
putNumChild
(
0
)
...
...
share/qtcreator/gdbmacros/gdbmacros.py
View file @
982ada02
...
...
@@ -1384,6 +1384,9 @@ def qdump__QRegion(d, item):
with
Children
(
d
):
d
.
putCallItem
(
"rects"
,
item
,
"rects()"
)
# qt_rgn might be 0
# gdb.parse_and_eval("region")["d"].dereference()["qt_rgn"].dereference()
def
qdump__QSet
(
d
,
item
):
def
hashDataFirstNode
(
value
):
...
...
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