Fix crash in SBStructuredData::GetDescription() when there's no StructuredDataPlugin.
authorJim Ingham <jingham@apple.com>
Wed, 30 Sep 2020 18:46:59 +0000 (11:46 -0700)
committerJim Ingham <jingham@apple.com>
Wed, 30 Sep 2020 18:48:54 +0000 (11:48 -0700)
commitafaeb6af79a4278249ef9114755e5685d0b35984
tree4f44bd421843c1dcef87ab294c567b6a2f4493e8
parentad865d9d10b8cf93738470175aae1be7a4a3eb6b
Fix crash in SBStructuredData::GetDescription() when there's no StructuredDataPlugin.

Also, use the StructuredData::Dump method to print the StructuredData if there
is no plugin, rather than just returning an error.

Differential Revision: https://reviews.llvm.org/D88266
lldb/include/lldb/Core/StructuredDataImpl.h
lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py