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
693013fa
Commit
693013fa
authored
Mar 10, 2010
by
hjk
Browse files
debugger: fix recent regression in partially anonymous structures
parent
98a0663e
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
693013fa
...
...
@@ -1190,7 +1190,7 @@ class Dumper:
# Anonymous union. We need a dummy name to distinguish
# multiple anonymous unions in the struct.
anonNumber
+=
1
self
.
listAnonymous
(
item
,
"#%d"
%
anonNumber
,
type
)
self
.
listAnonymous
(
item
,
"#%d"
%
anonNumber
,
field
.
type
)
else
:
# Named field.
self
.
beginHash
()
...
...
share/qtcreator/gdbmacros/gdbmacros.py
View file @
693013fa
...
...
@@ -558,8 +558,8 @@ def qdump__QObject(d, item):
#warn("OBJECT: %s " % item.value)
staticMetaObject
=
item
.
value
[
"staticMetaObject"
]
#warn("SMO: %s " % staticMetaObject)
privateType
=
gdb
.
lookup_type
(
d
.
ns
+
"QObjectPrivate"
)
d_ptr
=
item
.
value
[
"d_ptr"
][
"d"
].
dereference
().
cast
(
privateType
)
privateType
=
gdb
.
lookup_type
(
d
.
ns
+
"QObjectPrivate"
)
.
pointer
()
d_ptr
=
item
.
value
[
"d_ptr"
][
"d"
].
cast
(
privateType
)
.
dereference
()
#warn("D_PTR: %s " % d_ptr)
objectName
=
d_ptr
[
"objectName"
]
#warn("OBJECTNAME: %s " % objectName)
...
...
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