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
6963dc9b
Commit
6963dc9b
authored
Mar 01, 2011
by
hjk
Browse files
debugger: make members of QObjectPrivate derived data visible
parent
f78277f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
6963dc9b
...
...
@@ -663,7 +663,11 @@ def extractCString(table, offset):
def
qdump__QObject
(
d
,
item
):
#warn("OBJECT: %s " % item.value)
try
:
privateType
=
lookupType
(
d
.
ns
+
"QObjectPrivate"
)
privateTypeName
=
str
(
item
.
value
.
type
)
+
"Private"
privateType
=
lookupType
(
privateTypeName
)
if
privateType
is
None
:
privateTypeName
=
d
.
ns
+
"QObjectPrivate"
privateType
=
lookupType
(
privateTypeName
)
staticMetaObject
=
item
.
value
[
"staticMetaObject"
]
d_ptr
=
item
.
value
[
"d_ptr"
][
"d"
].
cast
(
privateType
.
pointer
()).
dereference
()
#warn("D_PTR: %s " % d_ptr)
...
...
@@ -707,6 +711,22 @@ def qdump__QObject(d, item):
d
.
putNumChild
(
4
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
):
# Local data
if
privateTypeName
!=
d
.
ns
+
"QObjectPrivate"
:
if
not
privateType
is
None
:
with
SubItem
(
d
):
d
.
putName
(
"data"
)
d
.
putValue
(
" "
)
d
.
putType
(
" "
)
d
.
putNumChild
(
1
)
iname
=
item
.
iname
+
".data"
if
d
.
isExpandedIName
(
iname
):
with
Children
(
d
):
child
=
Item
(
d_ptr
,
item
.
iname
)
d
.
putFields
(
child
)
d
.
putFields
(
item
)
# Parent and children.
if
stripClassTag
(
str
(
item
.
value
.
type
))
==
d
.
ns
+
"QObject"
:
...
...
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