Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
66a7cc28
Commit
66a7cc28
authored
Apr 07, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: show contents of pointer instead of its address in the python dumpers
parent
9236dd81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+8
-3
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
66a7cc28
...
...
@@ -976,6 +976,10 @@ class Dumper:
self
.
putField
(
"valueencoded"
,
encoding
)
self
.
putField
(
"value"
,
value
)
def
putPointerValue
(
self
,
value
):
self
.
putValue
(
"0x%x"
%
value
.
dereference
().
cast
(
gdb
.
lookup_type
(
"unsigned long"
)))
def
putStringValue
(
self
,
value
):
if
value
is
None
:
self
.
put
(
'value="<not available>",'
)
...
...
@@ -1190,6 +1194,7 @@ class Dumper:
format
=
self
.
itemFormat
(
item
)
if
not
format
is
None
:
#warn("FORMAT %s" % format)
self
.
putAddress
(
value
.
address
)
self
.
putType
(
item
.
value
.
type
)
self
.
putNumChild
(
0
)
...
...
@@ -1197,7 +1202,7 @@ class Dumper:
if
format
==
0
:
# Bald pointer.
self
.
put
Value
(
str
(
cleanAddress
(
value
.
address
))
)
self
.
put
PointerValue
(
value
.
address
)
elif
format
==
1
or
format
==
2
:
# Latin1 or UTF-8
f
=
select
(
format
==
1
,
Hex2EncodedLatin1
,
Hex2EncodedUtf8
)
...
...
@@ -1256,7 +1261,7 @@ class Dumper:
self
.
putItemHelper
(
Item
(
item
.
value
.
dereference
(),
item
.
iname
,
None
,
None
))
self
.
childTypes
.
pop
()
self
.
put
Value
(
"@%s"
%
cleanAddress
(
value
.
address
)
)
self
.
put
PointerValue
(
value
.
address
)
isHandled
=
True
# Fall back to plain pointer printing.
...
...
@@ -1270,7 +1275,7 @@ class Dumper:
self
.
putItem
(
Item
(
item
.
value
.
dereference
(),
item
.
iname
,
"*"
,
"*"
))
self
.
endChildren
()
self
.
put
Value
(
cleanAddress
(
value
.
address
)
)
self
.
put
PointerValue
(
value
.
address
)
elif
str
(
type
).
startswith
(
"<anon"
):
# Anonymous union. We need a dummy name to distinguish
...
...
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