16#ifndef LIEF_ELF_CORE_FILE_H
17#define LIEF_ELF_CORE_FILE_H
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;
107 uint64_t page_size_ = 0;
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
std::vector< uint8_t > description_t
Container used to handle the description data.
Definition Note.hpp:46
@ CORE_FILE
Definition Note.hpp:91
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
const std::string & name() const
Return the name of the note (also known as 'owner' ).
Definition Note.hpp:184
Note(const Note ©)=default
span< const uint8_t > description() const
Return the description associated with the note.
Definition Note.hpp:206
Definition Visitor.hpp:210
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
ARCH
Definition ELF/enums.hpp:30
@ NONE
Definition ELF/enums.hpp:31
LIEF namespace.
Definition Abstract/Binary.hpp:40
Core file entry.
Definition CoreFile.hpp:34
std::string path
Path of mapped file.
Definition CoreFile.hpp:38
uint64_t start
Definition CoreFile.hpp:35
uint64_t end
Start address of mapped file.
Definition CoreFile.hpp:36
friend std::ostream & operator<<(std::ostream &os, const entry_t &entry)
uint64_t file_ofs
Offset (in core) of mapped file.
Definition CoreFile.hpp:37
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42