================ @@ -570,11 +586,13 @@ static void ParseOpenBSDProcInfo(ThreadData &thread_data, } llvm::Expected<std::vector<CoreNote>> -ProcessElfCore::parseSegment(const DataExtractor &segment) { +ProcessElfCore::parseSegment(const DataExtractor &segment, + unsigned long segment_size) { lldb::offset_t offset = 0; std::vector<CoreNote> result; - - while (offset < segment.GetByteSize()) { + unsigned long note_size = + segment_size == 0 ? segment.GetByteSize() : segment_size; + while (offset < note_size) { ---------------- clayborg wrote:
revert this, we will trim the size of the data down before passing it in. https://github.com/llvm/llvm-project/pull/92492 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits