[Lldb-commits] [lldb] r343497 - [lldb] Start a new line for the next output if there are no symbols in the current symtab

Aaron Smith via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 1 10:08:51 PDT 2018


Author: asmith
Date: Mon Oct  1 10:08:51 2018
New Revision: 343497

URL: http://llvm.org/viewvc/llvm-project?rev=343497&view=rev
Log:
[lldb] Start a new line for the next output if there are no symbols in the current symtab

Summary:
If there is no newline the "lldb" prompt could be on the wrong line. To reproduce the missing newline you can do 'image dump smytab' on any binary.

Previously

Symtab, file = D:\upstream\build\Debug\bin\clang-diff.exe, num_symbols = 0(lldb)

Now

Symtab, file = D:\upstream\build\Debug\bin\clang-diff.exe, num_symbols = 0
(lldb)

Reviewers: zturner, aleksandr.urakov, lldb-commits

Subscribers: abidh

Differential Revision: https://reviews.llvm.org/D52627

Modified:
    lldb/trunk/source/Symbol/Symtab.cpp

Modified: lldb/trunk/source/Symbol/Symtab.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symtab.cpp?rev=343497&r1=343496&r2=343497&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symtab.cpp (original)
+++ lldb/trunk/source/Symbol/Symtab.cpp Mon Oct  1 10:08:51 2018
@@ -139,6 +139,8 @@ void Symtab::Dump(Stream *s, Target *tar
       }
       break;
     }
+  } else {
+    s->PutCString("\n");
   }
 }
 




More information about the lldb-commits mailing list