Skip to content
GitLab
Menu
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
f9c58528
Commit
f9c58528
authored
Nov 16, 2010
by
hjk
Browse files
debugger: fix display of '"' chars
Task-number: QTCREATORBUG-3084
parent
cb4e6804
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
f9c58528
...
...
@@ -1472,6 +1472,12 @@ class Dumper:
value
=
item
.
value
type
=
value
.
type
if
type
.
code
==
gdb
.
TYPE_CODE_INT
or
type
.
code
==
gdb
.
TYPE_CODE_CHAR
:
self
.
putType
(
realtype
)
self
.
putValue
(
int
(
value
))
self
.
putNumChild
(
0
)
return
typedefStrippedType
=
stripTypedefs
(
type
)
if
isSimpleType
(
typedefStrippedType
):
...
...
tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
View file @
f9c58528
...
...
@@ -1959,6 +1959,16 @@ void testConditional(const QString &str)
res
+=
"x"
;
}
void
testChar
()
{
char
s
[
5
];
s
[
0
]
=
0
;
strcat
(
s
,
"
\"
"
);
// add a quote
strcat
(
s
,
"
\"
"
);
// add a quote
strcat
(
s
,
"
\"
"
);
// add a quote
strcat
(
s
,
"
\"
"
);
// add a quote
}
void
testStuff
()
{
testConditional
(
"foo"
);
...
...
@@ -2099,6 +2109,7 @@ int main(int argc, char *argv[])
testColor
();
testQRegion
();
testTypedef
();
testChar
();
testStuff
();
testPeekAndPoke3
();
testFunctionPointer
();
...
...
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