Fix a problem where the StringPrinter could be mistaking an empty string for a read error, and reporting spurious 'unable to read data' messages. rdar://19007243
llvm-svn: 222190
This commit is contained in:
@@ -566,7 +566,7 @@ ReadUTFBufferAndDumpToStream (const ReadStringAndDumpToStreamOptions& options,
|
||||
else
|
||||
data_read = process_sp->ReadMemoryFromInferior(options.GetLocation(), (char*)buffer_sp->GetBytes(), bufferSPSize, error);
|
||||
|
||||
if (error.Fail() || data_read == 0)
|
||||
if (error.Fail())
|
||||
{
|
||||
options.GetStream()->Printf("unable to read data");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user