mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
[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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user