[Lldb-commits] [lldb] r182173 - <rdar://problem/13928053>
Enrico Granata
egranata at apple.com
Fri May 17 16:28:13 PDT 2013
Author: enrico
Date: Fri May 17 18:28:13 2013
New Revision: 182173
URL: http://llvm.org/viewvc/llvm-project?rev=182173&view=rev
Log:
<rdar://problem/13928053>
Fix the fact that an empty NSString (e.g. one obtained from @"" would show no summary)
Modified:
lldb/trunk/source/DataFormatters/CXXFormatterFunctions.cpp
Modified: lldb/trunk/source/DataFormatters/CXXFormatterFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/CXXFormatterFunctions.cpp?rev=182173&r1=182172&r2=182173&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/CXXFormatterFunctions.cpp (original)
+++ lldb/trunk/source/DataFormatters/CXXFormatterFunctions.cpp Fri May 17 18:28:13 2013
@@ -939,8 +939,13 @@ ReadAsciiBufferAndDumpToStream (lldb::ad
if (my_error.Fail())
return false;
+
+ dest.Printf("%c%c",prefix_token,quote);
+
if (my_data_read)
- dest.Printf("%c%c%s%c",prefix_token,quote,(char*)buffer_sp->GetBytes(),quote);
+ dest.Printf("%s",(char*)buffer_sp->GetBytes());
+
+ dest.Printf("%c",quote);
return true;
}
More information about the lldb-commits
mailing list