16#ifndef LIEF_ELF_CORE_FILE_H
17#define LIEF_ELF_CORE_FILE_H
37 uint64_t file_ofs = 0;
52 std::unique_ptr<Note>
clone()
const override {
53 return std::unique_ptr<Note>(
new CoreFile(*
this));
67 return files_.begin();
75 return files_.begin();
84 void dump(std::ostream& os)
const override;
88 return note->
type() == Note::TYPE::CORE_FILE;
107 uint64_t page_size_ = 0;
108 ARCH arch_ = ARCH::NONE;
Class representing a core NT_FILE which describes the mapped files of the process.
Definition CoreFile.hpp:31
iterator begin()
Definition CoreFile.hpp:66
void dump(std::ostream &os) const override
files_t::iterator iterator
Definition CoreFile.hpp:45
void accept(Visitor &visitor) const override
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CoreFile.hpp:52
CoreFile(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, Note::description_t description)
files_t::const_iterator const_iterator
Definition CoreFile.hpp:46
std::vector< entry_t > files_t
Definition CoreFile.hpp:44
const_iterator end() const
Definition CoreFile.hpp:78
void files(const files_t &file)
friend std::ostream & operator<<(std::ostream &os, const CoreFile ¬e)
Definition CoreFile.hpp:94
static bool classof(const Note *note)
Definition CoreFile.hpp:87
const_iterator begin() const
Definition CoreFile.hpp:74
const files_t & files() const
Coredump file entries.
Definition CoreFile.hpp:62
iterator end()
Definition CoreFile.hpp:70
~CoreFile() override=default
uint64_t count() const
Number of coredump file entries.
Definition CoreFile.hpp:57
Class which represents an ELF note. This class can be instantiated using the static Note::create func...
Definition Note.hpp:39
std::vector< uint8_t > description_t
Container used to handle the description data.
Definition Note.hpp:46
TYPE type() const
Return the type of the note. This type does not match the NT_ type value. For accessing the original ...
Definition Note.hpp:195
Definition Visitor.hpp:224
ARCH
Machine architectures See current registered ELF machine architectures at: http://www....
Definition ELF/enums.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:32
Core file entry.
Definition CoreFile.hpp:34
std::string path
Path of mapped file.
Definition CoreFile.hpp:38
friend std::ostream & operator<<(std::ostream &os, const entry_t &entry)
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42