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
5cd3afcd
Commit
5cd3afcd
authored
Jul 06, 2010
by
hjk
Browse files
debugger: remove some debug output
parent
2e09a8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
5cd3afcd
...
@@ -1346,26 +1346,26 @@ class Dumper:
...
@@ -1346,26 +1346,26 @@ class Dumper:
elif
typedefStrippedType
.
code
==
gdb
.
TYPE_CODE_PTR
:
elif
typedefStrippedType
.
code
==
gdb
.
TYPE_CODE_PTR
:
warn
(
"POINTER: %s"
%
format
)
#
warn("POINTER: %s" % format)
isHandled
=
False
isHandled
=
False
target
=
stripTypedefs
(
type
.
target
())
target
=
stripTypedefs
(
type
.
target
())
if
(
not
isHandled
)
and
isNull
(
value
):
if
(
not
isHandled
)
and
isNull
(
value
):
warn
(
"NULL POINTER"
)
#
warn("NULL POINTER")
self
.
putType
(
item
.
value
.
type
)
self
.
putType
(
item
.
value
.
type
)
self
.
putValue
(
"0x0"
)
self
.
putValue
(
"0x0"
)
self
.
putNumChild
(
0
)
self
.
putNumChild
(
0
)
isHandled
=
True
isHandled
=
True
if
(
not
isHandled
)
and
target
.
code
==
gdb
.
TYPE_CODE_VOID
:
if
(
not
isHandled
)
and
target
.
code
==
gdb
.
TYPE_CODE_VOID
:
warn
(
"VOID POINTER: %s"
%
format
)
#
warn("VOID POINTER: %s" % format)
self
.
putType
(
item
.
value
.
type
)
self
.
putType
(
item
.
value
.
type
)
self
.
putValue
(
str
(
value
))
self
.
putValue
(
str
(
value
))
self
.
putNumChild
(
0
)
self
.
putNumChild
(
0
)
isHandled
=
True
isHandled
=
True
if
(
not
isHandled
)
and
(
not
format
is
None
):
if
(
not
isHandled
)
and
(
not
format
is
None
):
warn
(
"SPECIAL FORMAT POINTER: %s"
%
format
)
#
warn("SPECIAL FORMAT POINTER: %s" % format)
self
.
putAddress
(
value
.
address
)
self
.
putAddress
(
value
.
address
)
self
.
putType
(
item
.
value
.
type
)
self
.
putType
(
item
.
value
.
type
)
isHandled
=
True
isHandled
=
True
...
@@ -1401,7 +1401,7 @@ class Dumper:
...
@@ -1401,7 +1401,7 @@ class Dumper:
#warn("RES: %s" % (self.autoDerefPointers and not isHandled))
#warn("RES: %s" % (self.autoDerefPointers and not isHandled))
if
(
not
isHandled
)
and
(
self
.
autoDerefPointers
or
name
==
"this"
):
if
(
not
isHandled
)
and
(
self
.
autoDerefPointers
or
name
==
"this"
):
## Generic pointer type.
## Generic pointer type.
warn
(
"GENERIC AUTODEREF POINTER: %s"
%
value
.
address
)
#
warn("GENERIC AUTODEREF POINTER: %s" % value.address)
innerType
=
item
.
value
.
type
.
target
()
innerType
=
item
.
value
.
type
.
target
()
self
.
putType
(
innerType
)
self
.
putType
(
innerType
)
savedCurrentChildType
=
self
.
currentChildType
savedCurrentChildType
=
self
.
currentChildType
...
@@ -1436,7 +1436,7 @@ class Dumper:
...
@@ -1436,7 +1436,7 @@ class Dumper:
self
.
listAnonymous
(
item
,
"#%d"
%
self
.
anonNumber
,
type
)
self
.
listAnonymous
(
item
,
"#%d"
%
self
.
anonNumber
,
type
)
else
:
else
:
warn
(
"GENERIC STRUCT: %s"
%
item
.
value
.
type
)
#
warn("GENERIC STRUCT: %s" % item.value.type)
#warn("INAME: %s " % item.iname)
#warn("INAME: %s " % item.iname)
#warn("INAMES: %s " % self.expandedINames)
#warn("INAMES: %s " % self.expandedINames)
#warn("EXPANDED: %s " % (item.iname in self.expandedINames))
#warn("EXPANDED: %s " % (item.iname in self.expandedINames))
...
...
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