[Lldb-commits] [lldb] 097ac33 - [lldb] Stop emitting pointless newline (NFC) (#171531)

via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 10 09:45:55 PST 2025


Author: Jonas Devlieghere
Date: 2025-12-10T09:45:51-08:00
New Revision: 097ac330c16405a4feedf08d22512b97fa7a38f5

URL: https://github.com/llvm/llvm-project/commit/097ac330c16405a4feedf08d22512b97fa7a38f5
DIFF: https://github.com/llvm/llvm-project/commit/097ac330c16405a4feedf08d22512b97fa7a38f5.diff

LOG: [lldb] Stop emitting pointless newline (NFC) (#171531)

AppendError ends up trimming this "\n" from the end of the string, then
putting another on on. So there's no reason to keep appending the
newline in CommandObjectMultiword::Execute.

Added: 
    

Modified: 
    lldb/source/Commands/CommandObjectMultiword.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp
index e08b33cdce940..a881b19119280 100644
--- a/lldb/source/Commands/CommandObjectMultiword.cpp
+++ b/lldb/source/Commands/CommandObjectMultiword.cpp
@@ -204,7 +204,6 @@ void CommandObjectMultiword::Execute(const char *args_string,
                     " Use \"help " + GetCommandName() + "\" to find out more.")
             .str());
   }
-  error_msg.append("\n");
   result.AppendError(error_msg);
 }
 


        


More information about the lldb-commits mailing list