LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_CORE_PRPSINFO_H
17#define LIEF_ELF_CORE_PRPSINFO_H
49 return filename.c_str();
58 uint32_t type, description_t description) :
59 Note(std::move(name), TYPE::CORE_PRPSINFO, type, std::move(description),
""),
60 arch_(arch), class_(cls)
63 std::unique_ptr<Note>
clone()
const override {
64 return std::unique_ptr<Note>(
new CorePrPsInfo(*
this));
66 result<info_t>
info()
const;
69 void info(
const info_t& info);
71 void dump(std::ostream& os)
const override;
73 void accept(Visitor& visitor)
const override;
76 return note->
type() == Note::TYPE::CORE_PRPSINFO;
82 std::ostream&
operator<<(std::ostream& os,
const CorePrPsInfo& note) {
87 [[maybe_unused]]
ARCH arch_ = ARCH::NONE;
88 Header::CLASS class_ = Header::CLASS::NONE;
Class representing the NT_PRPSINFO core note. This kind of note represents general information about ...
Definition CorePrPsInfo.hpp:30
static bool classof(const Note *note)
Definition CorePrPsInfo.hpp:75
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:82
CorePrPsInfo(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, description_t description)
Definition CorePrPsInfo.hpp:57
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CorePrPsInfo.hpp:63
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
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
std::string filename_stripped() const
Initial part of the arguments.
Definition CorePrPsInfo.hpp:48
std::string args_stripped() const
Return the args without the ending \x00
Definition CorePrPsInfo.hpp:53
#define LIEF_API
Definition visibility.h:41