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
7b6022be
Commit
7b6022be
authored
Nov 01, 2010
by
hjk
Browse files
debugger: make QFile and QFileInfo visible without top-level inferior call
Reviewed-by: Oswald Buddenhagen
parent
8df0f12e
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
7b6022be
...
...
@@ -242,16 +242,17 @@ def qdump__QDir(d, item):
def
qdump__QFile
(
d
,
item
):
d
.
putStringValue
(
call
(
item
.
value
,
"fileName()"
))
d
.
putNumChild
(
2
)
ptype
=
lookupType
(
d
.
ns
+
"QFilePrivate"
)
d_ptr
=
item
.
value
[
"d_ptr"
][
"d"
].
dereference
()
d
.
putStringValue
(
d_ptr
.
cast
(
ptype
)[
"fileName"
])
d
.
putNumChild
(
1
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
,
2
):
d
.
putCallItem
(
"fileName"
,
item
,
"fileName()"
)
with
Children
(
d
,
1
):
d
.
putCallItem
(
"exists"
,
item
,
"exists()"
)
def
qdump__QFileInfo
(
d
,
item
):
d
.
putStringValue
(
call
(
item
.
value
,
"filePath()"
)
)
d
.
putStringValue
(
item
.
value
[
"d_ptr"
][
"d"
].
dereference
()[
"fileName"
]
)
d
.
putNumChild
(
3
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
,
10
,
lookupType
(
d
.
ns
+
"QString"
)):
...
...
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