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
Marco Bubke
flatpak-qt-creator
Commits
ff6736fa
Commit
ff6736fa
authored
Jul 12, 2010
by
hjk
Browse files
debugger: work aroung gdb/python type lookup for arrays
parent
2e1a3696
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
ff6736fa
...
...
@@ -124,6 +124,10 @@ def lookupType(typestring):
#if not type is None:
# warn(" FIELDS: '%s'" % type.fields())
typeCache
[
typestring
]
=
type
if
type
is
None
:
# could be gdb.lookup_type("char[3]") generating
# "RuntimeError: No type named char[3]"
pass
return
type
def
cleanType
(
type
):
...
...
@@ -805,7 +809,10 @@ def extractFields(type):
#warn("TYPE 0: %s" % type)
type
=
stripTypedefs
(
type
)
#warn("TYPE 1: %s" % type)
type
=
lookupType
(
str
(
type
))
# This fails for arrays. See comment in lookupType.
type2
=
lookupType
(
str
(
type
))
if
not
type2
is
None
:
type
=
type2
#warn("TYPE 2: %s" % type)
fields
=
type
.
fields
()
#warn("FIELDS: %s" % fields)
...
...
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