[Lldb-commits] [lldb] r180841 - Change CommandReturnObject::AppendMessage to print an empty line if

Jason Molenda jmolenda at apple.com
Wed May 1 01:37:53 PDT 2013


Author: jmolenda
Date: Wed May  1 03:37:52 2013
New Revision: 180841

URL: http://llvm.org/viewvc/llvm-project?rev=180841&view=rev
Log:
Change CommandReturnObject::AppendMessage to print an empty line if
AppendMessage("") is called.  This idiom is used in a handful of places
right now (e.g. to put space between different threads in 'bt all') but
the empty newline is being omitted instead of emitted.
<rdar://problem/13753830> 

Modified:
    lldb/trunk/source/Interpreter/CommandReturnObject.cpp

Modified: lldb/trunk/source/Interpreter/CommandReturnObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandReturnObject.cpp?rev=180841&r1=180840&r2=180841&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandReturnObject.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandReturnObject.cpp Wed May  1 03:37:52 2013
@@ -106,7 +106,7 @@ CommandReturnObject::AppendWarningWithFo
 void
 CommandReturnObject::AppendMessage (const char *in_string)
 {
-    if (!in_string || *in_string == '\0')
+    if (!in_string)
         return;
     GetOutputStream().Printf("%s\n", in_string);
 }





More information about the lldb-commits mailing list