================ @@ -98,9 +98,20 @@ class ObjectFileXCOFF : public lldb_private::ObjectFile { const lldb::ProcessSP &process_sp, lldb::addr_t header_addr); protected: + typedef struct llvm::object::XCOFFFileHeader64 xcoff_header_t; + + typedef struct llvm::object::XCOFFAuxiliaryHeader64 xcoff_aux_header_t; + static lldb::WritableDataBufferSP MapFileDataWritable(const lldb_private::FileSpec &file, uint64_t Size, uint64_t Offset); + +private: + bool CreateBinary(); + + xcoff_header_t m_xcoff_header = {}; + xcoff_aux_header_t m_xcoff_aux_header = {}; ---------------- labath wrote:
Can we get rid of these variables? You can access the headers directly from the m_binary member, right? https://github.com/llvm/llvm-project/pull/116338 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits