mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
ReadPointedString takes a Stream not a DataBuffer.
llvm-svn: 213314
This commit is contained in:
@@ -1565,12 +1565,12 @@ Process::LoadImage (const FileSpec &image_spec, Error &error)
|
||||
{
|
||||
if (result_valobj_sp->IsCStringContainer(true))
|
||||
{
|
||||
lldb::DataBufferSP buf_sp (new DataBufferHeap());
|
||||
size_t num_chars = result_valobj_sp->ReadPointedString (buf_sp, error);
|
||||
StreamString s;
|
||||
size_t num_chars = result_valobj_sp->ReadPointedString (s, error);
|
||||
if (error.Success() && num_chars > 0)
|
||||
{
|
||||
error.Clear();
|
||||
error.SetErrorStringWithFormat("dlopen failed: %s", buf_sp->GetBytes());
|
||||
error.SetErrorStringWithFormat("dlopen failed: %s", s.GetData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user