- 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\"\\\""
Any reason you don't just use a stack based string "char spStdoutBuffer[1024];"?
Also are you making a shared pointer to a char and then feeding it something that needs to be deleted with "delete[]" but it won't, it will get deleted with just "delete"?