Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
da44415e
Commit
da44415e
authored
May 09, 2011
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: more direct number conversion in putAddress
parent
86b50c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+3
-2
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
da44415e
...
...
@@ -172,7 +172,8 @@ def cleanAddress(addr):
return
"<no address>"
# We cannot use str(addr) as it yields rubbish for char pointers
# that might trigger Unicode encoding errors.
return
addr
.
cast
(
lookupType
(
"void"
).
pointer
())
#return addr.cast(lookupType("void").pointer())
return
hex
(
long
(
addr
))
def
extractTemplateArgument
(
type
,
position
):
level
=
0
...
...
@@ -1436,7 +1437,7 @@ class Dumper:
def
putAddress
(
self
,
addr
):
if
self
.
printsAddress
:
self
.
put
(
'addr="
%s
",'
%
cleanAddress
(
addr
))
self
.
put
(
'addr="
0x%x
",'
%
long
(
addr
))
def
putNumChild
(
self
,
numchild
):
#warn("NUM CHILD: '%s' '%s'" % (numchild, self.currentChildNumChild))
...
...
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