Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ae55b43c
Commit
ae55b43c
authored
Aug 13, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: fix display of QObject properties
This is a backport of
5d645bfd
parent
c5b027cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+11
-0
share/qtcreator/gdbmacros/gdbmacros.py
share/qtcreator/gdbmacros/gdbmacros.py
+3
-6
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
ae55b43c
...
...
@@ -1326,6 +1326,13 @@ class Dumper:
nsStrippedType
=
self
.
stripNamespaceFromType
(
typedefStrippedType
).
replace
(
"::"
,
"__"
)
# Is this derived from QObject?
try
:
item
.
value
[
'staticMetaObject'
]
hasMetaObject
=
True
except
:
hasMetaObject
=
False
#warn(" STRIPPED: %s" % nsStrippedType)
#warn(" DUMPERS: %s" % self.dumpers)
#warn(" DUMPERS: %s" % (nsStrippedType in self.dumpers))
...
...
@@ -1336,6 +1343,10 @@ class Dumper:
self
.
putValue
(
value
)
self
.
putNumChild
(
0
)
elif
hasMetaObject
and
self
.
useFancy
:
self
.
putType
(
item
.
value
.
type
)
qdump__QObject
(
self
,
item
)
elif
nsStrippedType
in
self
.
dumpers
:
#warn("IS DUMPABLE: %s " % type)
self
.
putType
(
item
.
value
.
type
)
...
...
share/qtcreator/gdbmacros/gdbmacros.py
View file @
ae55b43c
...
...
@@ -578,9 +578,6 @@ def extractCString(table, offset):
return
result
def
qdump__QWidget
(
d
,
item
):
qdump__QObject
(
d
,
item
)
def
qdump__QObject
(
d
,
item
):
#warn("OBJECT: %s " % item.value)
staticMetaObject
=
item
.
value
[
"staticMetaObject"
]
...
...
@@ -617,15 +614,15 @@ def qdump__QObject(d, item):
d
.
putNumChild
(
4
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
):
d
.
putFields
(
item
)
# Parent and children.
d
.
putItem
(
Item
(
d_ptr
[
"parent"
],
item
.
iname
,
"parent"
,
"parent"
))
d
.
putItem
(
Item
(
d_ptr
[
"children"
],
item
.
iname
,
"children"
,
"children"
))
# Properties.
with
SubItem
(
d
):
#propertyCount = metaData[6]
# FIXME: Replace with plain memory accesses.
propertyCount
=
call
(
mo
,
"propertyCount()"
)
propertyCount
=
metaData
[
6
]
#propertyCount = call(mo, "propertyCount()")
#warn("PROPERTY COUNT: %s" % propertyCount)
propertyData
=
metaData
[
7
]
d
.
putName
(
"properties"
)
...
...
Write
Preview
Markdown
is supported
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