================ @@ -57,7 +57,9 @@ std::unique_ptr<AppleDWARFIndex> AppleDWARFIndex::Create( return std::make_unique<AppleDWARFIndex>( ---------------- clayborg wrote:
> These asserts might not always pass? I don't know if it's guaranteed that if > one of those sections is present, then the rest of them are as well. You can check the size first and if non-zero then check the buffer: ``` lldbassert(apple_names.GetByteSize() == 0 || apple_names.GetSharedDataBuffer()); lldbassert(apple_namespaces.GetByteSize() == 0 || apple_namespaces.GetSharedDataBuffer()); lldbassert(apple_types.GetByteSize() == 0 || apple_types.GetSharedDataBuffer()); lldbassert(apple_objc.GetByteSize() == 0 || apple_objc.GetSharedDataBuffer()); ``` https://github.com/llvm/llvm-project/pull/71828 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits