[Lldb-commits] [lldb] r213314 - ReadPointedString takes a Stream not a DataBuffer.
Jim Ingham
jingham at apple.com
Thu Jul 17 14:53:51 PDT 2014
Author: jingham
Date: Thu Jul 17 16:53:48 2014
New Revision: 213314
URL: http://llvm.org/viewvc/llvm-project?rev=213314&view=rev
Log:
ReadPointedString takes a Stream not a DataBuffer.
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=213314&r1=213313&r2=213314&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Thu Jul 17 16:53:48 2014
@@ -1565,12 +1565,12 @@ Process::LoadImage (const FileSpec &imag
{
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());
}
}
}
More information about the lldb-commits
mailing list