================ @@ -983,6 +999,40 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment( } } +bool ProcessElfCore::IsElf(const NT_FILE_Entry entry) { + size_t size = strlen(llvm::ELF::ElfMagic); + uint8_t buf[size]; ---------------- MaskRay wrote:
We can allocate a buffer of 4 and read it. Can ELFHeader::MagicBytesMatch be used here? https://github.com/llvm/llvm-project/pull/92078 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits