Author: ravitheja Date: Wed Jul 12 04:54:17 2017 New Revision: 307773 URL: http://llvm.org/viewvc/llvm-project?rev=307773&view=rev Log: Fixing Android builder
Modified: lldb/trunk/source/Utility/StringExtractorGDBRemote.cpp Modified: lldb/trunk/source/Utility/StringExtractorGDBRemote.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/StringExtractorGDBRemote.cpp?rev=307773&r1=307772&r2=307773&view=diff ============================================================================== --- lldb/trunk/source/Utility/StringExtractorGDBRemote.cpp (original) +++ lldb/trunk/source/Utility/StringExtractorGDBRemote.cpp Wed Jul 12 04:54:17 2017 @@ -469,12 +469,12 @@ lldb_private::Status StringExtractorGDBR uint8_t errc = GetHexU8(255); error.SetError(errc, lldb::eErrorTypeGeneric); - std::string error_messg("Error "); - error_messg += std::to_string(errc); - if (GetChar() == ';') + error.SetErrorStringWithFormat("Error %u", errc); + std::string error_messg; + if (GetChar() == ';') { GetHexByteString(error_messg); - - error.SetErrorString(error_messg); + error.SetErrorString(error_messg); + } } return error; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits