Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
7d3ace50
Commit
7d3ace50
authored
14 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
debugger: fix merge
parent
52e1894d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/qtcreator/gdbmacros/dumper.py
+10
-10
10 additions, 10 deletions
share/qtcreator/gdbmacros/dumper.py
with
10 additions
and
10 deletions
share/qtcreator/gdbmacros/dumper.py
+
10
−
10
View file @
7d3ace50
...
@@ -186,7 +186,7 @@ def catchCliOutput(command):
...
@@ -186,7 +186,7 @@ def catchCliOutput(command):
# "No symbol table is loaded. Use the \"file\" command."
# "No symbol table is loaded. Use the \"file\" command."
msg
=
str
(
error
)
msg
=
str
(
error
)
except
:
except
:
msg
=
"
Unknown error
"
;
msg
=
"
Unknown error
"
gdb
.
execute
(
"
set logging off
"
)
gdb
.
execute
(
"
set logging off
"
)
gdb
.
execute
(
"
set logging redirect off
"
)
gdb
.
execute
(
"
set logging redirect off
"
)
if
len
(
msg
):
if
len
(
msg
):
...
@@ -319,7 +319,7 @@ class Children:
...
@@ -319,7 +319,7 @@ class Children:
if
self
.
d
.
passExceptions
and
not
exType
is
None
:
if
self
.
d
.
passExceptions
and
not
exType
is
None
:
showException
(
"
CHILDREN
"
,
exType
,
exValue
,
exTraceBack
)
showException
(
"
CHILDREN
"
,
exType
,
exValue
,
exTraceBack
)
if
self
.
d
.
currentMaxNumChilds
<
self
.
d
.
currentNumChilds
:
if
self
.
d
.
currentMaxNumChilds
<
self
.
d
.
currentNumChilds
:
self
.
d
.
putEllipsis
()
;
self
.
d
.
putEllipsis
()
self
.
d
.
currentChildType
=
self
.
savedChildType
self
.
d
.
currentChildType
=
self
.
savedChildType
self
.
d
.
currentChildNumChild
=
self
.
savedChildNumChild
self
.
d
.
currentChildNumChild
=
self
.
savedChildNumChild
self
.
d
.
currentNumChilds
=
self
.
savedNumChilds
self
.
d
.
currentNumChilds
=
self
.
savedNumChilds
...
@@ -446,8 +446,8 @@ def listOfLocals(varList):
...
@@ -446,8 +446,8 @@ def listOfLocals(varList):
hasBlock
=
'
block
'
in
__builtin__
.
dir
(
frame
)
hasBlock
=
'
block
'
in
__builtin__
.
dir
(
frame
)
items
=
[]
items
=
[]
#warn("HAS BLOCK: %s" % hasBlock)
;
#warn("HAS BLOCK: %s" % hasBlock)
#warn("IS GOOD GDB: %s" % isGoodGdb())
;
#warn("IS GOOD GDB: %s" % isGoodGdb())
if
hasBlock
and
isGoodGdb
():
if
hasBlock
and
isGoodGdb
():
#warn("IS GOOD: %s " % varList)
#warn("IS GOOD: %s " % varList)
try
:
try
:
...
@@ -631,7 +631,7 @@ movableTypes = set([
...
@@ -631,7 +631,7 @@ movableTypes = set([
"
QFileInfo
"
,
"
QFixed
"
,
"
QFixedPoint
"
,
"
QFixedSize
"
,
"
QFileInfo
"
,
"
QFixed
"
,
"
QFixedPoint
"
,
"
QFixedSize
"
,
"
QHashDummyValue
"
,
"
QHashDummyValue
"
,
"
QIcon
"
,
"
QImage
"
,
"
QIcon
"
,
"
QImage
"
,
"
QLine
"
,
"
QLineF
"
,
"
QLatin1Char
"
,
"
QLocal
"
,
"
QLine
"
,
"
QLineF
"
,
"
QLatin1Char
"
,
"
QLocal
e
"
,
"
QMatrix
"
,
"
QModelIndex
"
,
"
QMatrix
"
,
"
QModelIndex
"
,
"
QPoint
"
,
"
QPointF
"
,
"
QPen
"
,
"
QPersistentModelIndex
"
,
"
QPoint
"
,
"
QPointF
"
,
"
QPen
"
,
"
QPersistentModelIndex
"
,
"
QResourceRoot
"
,
"
QRect
"
,
"
QRectF
"
,
"
QRegExp
"
,
"
QResourceRoot
"
,
"
QRect
"
,
"
QRectF
"
,
"
QRegExp
"
,
...
@@ -885,7 +885,7 @@ def bbsetup():
...
@@ -885,7 +885,7 @@ def bbsetup():
if
key
.
startswith
(
"
qdump__
"
):
if
key
.
startswith
(
"
qdump__
"
):
name
=
key
[
7
:]
name
=
key
[
7
:]
qqDumpers
[
name
]
=
value
qqDumpers
[
name
]
=
value
qqFormats
[
name
]
=
qqFormats
.
get
(
name
,
""
)
;
qqFormats
[
name
]
=
qqFormats
.
get
(
name
,
""
)
elif
key
.
startswith
(
"
qform__
"
):
elif
key
.
startswith
(
"
qform__
"
):
name
=
key
[
7
:]
name
=
key
[
7
:]
formats
=
""
formats
=
""
...
@@ -1033,7 +1033,7 @@ class Dumper:
...
@@ -1033,7 +1033,7 @@ class Dumper:
#
#
# Locals
# Locals
#
#
locals
=
listOfLocals
(
varList
)
;
locals
=
listOfLocals
(
varList
)
if
"
nolocals
"
in
options
:
if
"
nolocals
"
in
options
:
locals
=
[]
locals
=
[]
...
@@ -1064,7 +1064,7 @@ class Dumper:
...
@@ -1064,7 +1064,7 @@ class Dumper:
self
.
put
(
'
iname=
"
%s
"
,
'
%
item
.
iname
)
self
.
put
(
'
iname=
"
%s
"
,
'
%
item
.
iname
)
self
.
put
(
'
name=
"
%s
"
,
'
%
item
.
name
)
self
.
put
(
'
name=
"
%s
"
,
'
%
item
.
name
)
self
.
put
(
'
addr=
"
<not accessible>
"
,
'
)
self
.
put
(
'
addr=
"
<not accessible>
"
,
'
)
self
.
put
(
'
numchild=
"
0
"'
)
;
self
.
put
(
'
numchild=
"
0
"'
)
self
.
putValue
(
"
<not accessible>
"
)
self
.
putValue
(
"
<not accessible>
"
)
self
.
putType
(
item
.
value
.
type
)
self
.
putType
(
item
.
value
.
type
)
continue
continue
...
@@ -1137,7 +1137,7 @@ class Dumper:
...
@@ -1137,7 +1137,7 @@ class Dumper:
def
handleWatch
(
self
,
exp
,
iname
):
def
handleWatch
(
self
,
exp
,
iname
):
exp
=
str
(
exp
)
exp
=
str
(
exp
)
escapedExp
=
exp
.
replace
(
'"'
,
'
\\
"'
)
;
escapedExp
=
exp
.
replace
(
'"'
,
'
\\
"'
)
#warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname))
#warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname))
if
exp
.
startswith
(
"
[
"
)
and
exp
.
endswith
(
"
]
"
):
if
exp
.
startswith
(
"
[
"
)
and
exp
.
endswith
(
"
]
"
):
#warn("EVAL: EXP: %s" % exp)
#warn("EVAL: EXP: %s" % exp)
...
@@ -1326,7 +1326,7 @@ class Dumper:
...
@@ -1326,7 +1326,7 @@ class Dumper:
return
return
# FIXME: Gui shows references stripped?
# FIXME: Gui shows references stripped?
#warn(" ")
;
#warn(" ")
#warn("REAL INAME: %s " % item.iname)
#warn("REAL INAME: %s " % item.iname)
#warn("REAL NAME: %s " % name)
#warn("REAL NAME: %s " % name)
#warn("REAL TYPE: %s " % item.value.type)
#warn("REAL TYPE: %s " % item.value.type)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment