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
898e84ce
Commit
898e84ce
authored
Jan 15, 2010
by
hjk
Browse files
debugger: add dumper for TLitC<N>, fix encodign for TBuf
parent
4051d822
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
898e84ce
...
...
@@ -1886,16 +1886,29 @@ def qdump__wstring(d, item):
#
#######################################################################
def
encodeSymbianString
(
base
,
size
):
s
=
""
for
i
in
xrange
(
size
):
val
=
int
(
base
[
i
])
if
val
==
9
:
s
+=
"5c007400"
# \t
else
:
s
+=
"%02x%02x"
%
(
val
%
256
,
val
/
256
)
return
s
def
qdump__TBuf
(
d
,
item
):
size
=
item
.
value
[
"iLength"
]
&
0xffff
base
=
item
.
value
[
"iBuf"
]
max
=
numericTemplateArgument
(
item
.
value
.
type
,
0
)
check
(
0
<=
size
and
size
<=
max
)
d
.
putNumChild
(
0
)
d
.
putValue
(
encodeSymbianString
(
base
,
size
),
"7"
)
def
qdump__TLitC
(
d
,
item
):
size
=
item
.
value
[
"iTypeLength"
]
&
0xffff
base
=
item
.
value
[
"iBuf"
]
s
=
""
for
i
in
xrange
(
size
):
val
=
int
(
base
[
i
])
s
+=
"%02x"
%
(
val
%
256
)
s
+=
"%02x"
%
(
val
/
256
)
max
=
numericTemplateArgument
(
item
.
value
.
type
,
0
)
check
(
0
<=
size
and
size
<=
max
)
d
.
putNumChild
(
0
)
d
.
putValue
(
s
,
"
6
"
)
d
.
putValue
(
encodeSymbianString
(
base
,
size
)
,
"
7
"
)
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