diff options
author | Ravitheja Addepally <ravitheja.addepally@intel.com> | 2017-07-12 11:54:17 +0000 |
---|---|---|
committer | Ravitheja Addepally <ravitheja.addepally@intel.com> | 2017-07-12 11:54:17 +0000 |
commit | fa73e3408244c8bea79bec35340874d779bb445a (patch) | |
tree | 458eb500e5c21ee54eef1f6a059bc1dfb42a5313 /lldb/source/Utility/StringExtractorGDBRemote.cpp | |
parent | 745266b2a7b4903e592915a5bfad747156076979 (diff) | |
download | llvm-fa73e3408244c8bea79bec35340874d779bb445a.zip llvm-fa73e3408244c8bea79bec35340874d779bb445a.tar.gz llvm-fa73e3408244c8bea79bec35340874d779bb445a.tar.bz2 |
Fixing Android builder
llvm-svn: 307773
Diffstat (limited to 'lldb/source/Utility/StringExtractorGDBRemote.cpp')
-rw-r--r-- | lldb/source/Utility/StringExtractorGDBRemote.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Utility/StringExtractorGDBRemote.cpp b/lldb/source/Utility/StringExtractorGDBRemote.cpp index 8174c15..8e50c01 100644 --- a/lldb/source/Utility/StringExtractorGDBRemote.cpp +++ b/lldb/source/Utility/StringExtractorGDBRemote.cpp @@ -469,12 +469,12 @@ lldb_private::Status StringExtractorGDBRemote::GetStatus() { 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; } |