[lldb/StringPrinter] Support strings with invalid utf8 sub-sequences
Support printing strings which contain invalid utf8 sub-sequences, e.g. strings like "hello world \xfe", instead of bailing out with "Summary Unavailable". I took the opportunity here to delete some hand-rolled utf8 -> utf32 conversion code and replace it with calls into llvm's Support library. rdar://61554346
Showing
- lldb/source/DataFormatters/StringPrinter.cpp 22 additions, 48 deletionslldb/source/DataFormatters/StringPrinter.cpp
- lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py 2 additions, 2 deletions...matter-stl/libcxx/string/TestDataFormatterLibcxxString.py
- lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/main.cpp 7 additions, 4 deletions.../data-formatter/data-formatter-stl/libcxx/string/main.cpp
- lldb/unittests/DataFormatter/StringPrinterTests.cpp 6 additions, 15 deletionslldb/unittests/DataFormatter/StringPrinterTests.cpp
Loading
Please register or sign in to comment