hanchenye-llvm-project/lldb/tools
Nathan Lanza a0d52cbdc9 Add a check whether or not a str is utf8 prior to emplacing
Summary:
Highlighing junk data on VSCode can send a query for evaluate which
fails. In particular cases on Windows, this the error message can end
up as a c-string of [-35,-35,-35,-35,...]. Attempting to emplace this
as the error message causes an assert failure.

Prior to emplacing the error message, confirm that it is valid UTF8 to
eliminate errors such as mentione above.

Reviewers: xiaobai, clayborg

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D53008

llvm-svn: 346988
2018-11-15 19:49:57 +00:00
..
argdumper Introduce lldb-framework CMake target and centralize its logic 2018-06-18 18:27:16 +00:00
compact-unwind
darwin-debug Remove comments after header includes. 2018-11-11 23:16:43 +00:00
darwin-threads the thread id is easier to read in base16. 2018-03-06 23:33:02 +00:00
debugserver Remove header grouping comments. 2018-11-11 23:17:06 +00:00
driver Add GDB remote packet reproducer. 2018-11-13 19:18:16 +00:00
install-headers
intel-features Remove header grouping comments. 2018-11-11 23:17:06 +00:00
lldb-mi Remove header grouping comments. 2018-11-11 23:17:06 +00:00
lldb-perf
lldb-server Remove header grouping comments. 2018-11-11 23:17:06 +00:00
lldb-test Remove OCaml debugger plugin 2018-11-05 19:34:03 +00:00
lldb-vscode Add a check whether or not a str is utf8 prior to emplacing 2018-11-15 19:49:57 +00:00
CMakeLists.txt [cmake] Add option to skip building lldb-server 2018-08-23 18:05:45 +00:00