LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_CORE_FILE_H
17#define LIEF_ELF_CORE_FILE_H
32 public:
struct entry_t {
37 uint64_t file_ofs = 0;
41 std::ostream&
operator<<(std::ostream& os,
const entry_t& entry);
44 using files_t = std::vector<entry_t>;
45 using iterator = files_t::iterator;
46 using const_iterator = files_t::const_iterator;
49 CoreFile(ARCH arch, Header::CLASS cls, std::string name,
50 uint32_t type, Note::description_t description);
52 std::unique_ptr<Note>
clone()
const override {
53 return std::unique_ptr<Note>(
new CoreFile(*
this));
55 uint64_t
count()
const {
60 const files_t&
files()
const {
67 return files_.begin();
75 return files_.begin();
78 const_iterator
end()
const {
82 void files(
const files_t& file);
84 void dump(std::ostream& os)
const override;
85 void accept(Visitor& visitor)
const override;
88 return note->
type() == Note::TYPE::CORE_FILE;
94 std::ostream&
operator<<(std::ostream& os,
const CoreFile& note) {
107 uint64_t page_size_ = 0;
108 ARCH arch_ = ARCH::NONE;
109 Header::CLASS class_ = Header::CLASS::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
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)
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
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
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
ARCH
Definition ELF/enums.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:36
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