diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-02-26 18:14:30 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-02-26 18:14:30 +0000 |
commit | da86749a92f60e63aadd25a3cfed173a1cb189e4 (patch) | |
tree | a93a25d62a8fd6ecb4df95f8f39c69e6a73ee4f6 /clang/lib/Basic/Targets.cpp | |
parent | 28a3b86b069c05418234bd16890843ca400b8639 (diff) | |
download | bcm5719-llvm-da86749a92f60e63aadd25a3cfed173a1cb189e4.tar.gz bcm5719-llvm-da86749a92f60e63aadd25a3cfed173a1cb189e4.zip |
Fix process's output to stdout/stderr (MI)
Summary:
* Add CMIUtilString::Escape/Unescape methods (MI)
* Fix process's output to stdout/stderr (MI):
lldb-mi escapes process's output to show it in the following format:
```
~"..."
```
But previously not all characters were escaped by CMICmnLLDBDebuggerHandleEvents::ConvertPrintfCtrlCodeToString and output of
```
printf("'\n` - it's \\n\x12\"\\\"")
```
looked like:
```
~"'\r\n` - it's \n"\""
```
This patch fixes it by using CMIUtilString::Escape method and now it looks like:
```
~"'\r\n` - it's \\n\x12\"\\\""
```
Reviewers: abidh, emaste, clayborg
Reviewed By: clayborg
Subscribers: zturner, lldb-commits, emaste, clayborg, abidh
Differential Revision: http://reviews.llvm.org/D7858
llvm-svn: 230652
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions