16#ifndef LIEF_ELF_CORE_PRPSINFO_H
17#define LIEF_ELF_CORE_PRPSINFO_H
50 return filename.c_str();
60 Note(std::move(name),
TYPE::CORE_PRPSINFO, type, std::move(description),
""),
61 arch_(arch), class_(cls)
64 std::unique_ptr<Note>
clone()
const override {
72 void dump(std::ostream& os)
const override;
77 return note->
type() == Note::TYPE::CORE_PRPSINFO;
88 ARCH arch_ = ARCH::NONE;
Class representing the NT_PRPSINFO core note. This kind of note represents general information about ...
Definition CorePrPsInfo.hpp:31
static bool classof(const Note *note)
Definition CorePrPsInfo.hpp:76
void info(const info_t &info)
~CorePrPsInfo() override=default
void dump(std::ostream &os) const override
friend std::ostream & operator<<(std::ostream &os, const CorePrPsInfo ¬e)
Definition CorePrPsInfo.hpp:83
CorePrPsInfo(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, description_t description)
Definition CorePrPsInfo.hpp:58
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CorePrPsInfo.hpp:64
void accept(Visitor &visitor) const override
result< info_t > info() const
Return a elf_prpsinfo-like structure or an error if it can't be parsed.
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
LIEF representation of the ELF NT_ values.
Definition Note.hpp:49
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
tl::expected< T, lief_errors > result
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:74
Definition CorePrPsInfo.hpp:33
std::string filename_stripped() const
Initial part of the arguments.
Definition CorePrPsInfo.hpp:49
std::string args
Filename of the executable.
Definition CorePrPsInfo.hpp:46
std::string filename
Process session id.
Definition CorePrPsInfo.hpp:45
std::string args_stripped() const
Return the args without the ending \x00
Definition CorePrPsInfo.hpp:54
#define LIEF_API
Definition visibility.h:41