diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2018-10-01 17:08:51 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-10-01 17:08:51 +0000 |
commit | e7dbb9336070abac17d838ec19db5956769f722d (patch) | |
tree | ca81594458538ed8b9dce0bb940629f48a1a4e6a /lldb | |
parent | b6a07f5886d72ed0d1bbb8dcadcec48f65ae03ab (diff) | |
download | bcm5719-llvm-e7dbb9336070abac17d838ec19db5956769f722d.tar.gz bcm5719-llvm-e7dbb9336070abac17d838ec19db5956769f722d.zip |
[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
llvm-svn: 343497
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Symbol/Symtab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp index 18a2dc77891..e1089f9965a 100644 --- a/lldb/source/Symbol/Symtab.cpp +++ b/lldb/source/Symbol/Symtab.cpp @@ -139,6 +139,8 @@ void Symtab::Dump(Stream *s, Target *target, SortOrder sort_order) { } break; } + } else { + s->PutCString("\n"); } } |