diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-11-03 11:25:40 -0700 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-11-03 14:44:53 -0700 |
commit | e861d053dd43f2e5a63f150ee2f9d1d643ea29c1 (patch) | |
tree | 2d52e2258229b691ac1feba5f60fdba41eb076d3 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 90608963d40b4765fc95e039d5100940ad822535 (diff) | |
download | llvm-e861d053dd43f2e5a63f150ee2f9d1d643ea29c1.zip llvm-e861d053dd43f2e5a63f150ee2f9d1d643ea29c1.tar.gz llvm-e861d053dd43f2e5a63f150ee2f9d1d643ea29c1.tar.bz2 |
[lldb/Utility] Add GetDescription(Stream&) to StructureData::*
This patch improves the StructuredData classes to provide a
GetDescription(lldb_private::Stream&) affordance.
This is very convenient compared to the Dump method because this try to
pretty print the structure instead of just serializing it into a JSON.
This patch also updates some parts of lldb (i.e. extended crash info) to
use this new affordance instead of StructuredData::Dump.
Differential Revision: https://reviews.llvm.org/D135547
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 28a99ea3..92544c5 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -1537,8 +1537,9 @@ protected: StructuredData::DictionarySP crash_info_sp = *expected_crash_info; if (crash_info_sp) { + strm.EOL(); strm.PutCString("Extended Crash Information:\n"); - crash_info_sp->Dump(strm); + crash_info_sp->GetDescription(strm); } } |