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
7347587d
Commit
7347587d
authored
May 16, 2011
by
hjk
Browse files
debugger: take a few string comparisons off the critical path
parent
2f009a30
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
7347587d
...
...
@@ -55,7 +55,6 @@ verbosity = 1
# Some "Enums"
# Encodings
Unencoded8Bit
,
\
Base64Encoded8BitWithQuotes
,
\
Base64Encoded16BitWithQuotes
,
\
...
...
@@ -88,7 +87,7 @@ def isGoodGdb():
def
hasInferiorThreadList
():
return
False
try
:
a
=
gdb
.
inferiors
()[
0
].
threads
()
a
=
gdb
.
inferiors
()[
0
].
threads
()
return
True
except
:
return
False
...
...
@@ -205,6 +204,7 @@ def templateArgument(type, position):
# That's something like "myns::QList<...>"
return
lookupType
(
extractTemplateArgument
(
type
.
strip_typedefs
(),
position
))
# Workaround for gdb < 7.1
def
numericTemplateArgument
(
type
,
position
):
try
:
...
...
@@ -214,6 +214,7 @@ def numericTemplateArgument(type, position):
msg
=
str
(
error
)
return
int
(
msg
[
14
:
-
1
])
def
parseAndEvaluate
(
exp
):
if
isGoodGdb
():
return
gdb
.
parse_and_eval
(
exp
)
...
...
@@ -380,7 +381,7 @@ class Children:
if
not
self
.
childType
is
None
:
childType
=
stripClassTag
(
str
(
self
.
childType
))
self
.
d
.
put
(
'childtype="%s",'
%
childType
)
if
isSimpleType
(
self
.
childType
)
or
isStringType
(
self
.
d
,
self
.
childType
)
:
if
isSimpleType
(
self
.
childType
):
self
.
d
.
put
(
'childnumchild="0",'
)
childNumChild
=
0
elif
self
.
childType
.
code
==
gdb
.
TYPE_CODE_PTR
:
...
...
Write
Preview
Supports
Markdown
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