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
Tobias Hunger
qt-creator
Commits
b33b5e52
Commit
b33b5e52
authored
Sep 27, 2010
by
hjk
Browse files
debugger: escape backslashs properly
Reviewed-by: Friedemann Kleint
parent
218d2527
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
b33b5e52
...
...
@@ -1231,7 +1231,7 @@ class Dumper:
def
handleWatch
(
self
,
exp
,
iname
):
exp
=
str
(
exp
)
escapedExp
=
exp
.
replace
(
'"'
,
'
\\
"'
)
escapedExp
=
escapedExp
.
replace
(
'
\'
, '
\\\\
')
escapedExp
=
escapedExp
.
replace
(
'
\
\
'
,
'
\\\\
'
)
#warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname))
if
exp
.
startswith
(
"["
)
and
exp
.
endswith
(
"]"
):
#warn("EVAL: EXP: %s" % exp)
...
...
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