16#ifndef LIEF_ELF_CORE_PRPSINFO_H
17#define LIEF_ELF_CORE_PRPSINFO_H
22#include "LIEF/visibility.h"
23#include "LIEF/ELF/enums.hpp"
24#include "LIEF/ELF/Note.hpp"
50 return filename.c_str();
59 uint32_t type, description_t description) :
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 {
70 void info(
const info_t& info);
72 void dump(std::ostream& os)
const override;
74 void accept(
Visitor& visitor)
const override;
76 static bool classof(
const Note* note) {
77 return note->
type() == Note::TYPE::CORE_PRPSINFO;
83 std::ostream& operator<<(std::ostream& os,
const CorePrPsInfo& note) {
88 ARCH arch_ = ARCH::NONE;
89 Header::CLASS class_ = Header::CLASS::NONE;
Class representing the NT_PRPSINFO core note. This kind of note represents general information about ...
Definition CorePrPsInfo.hpp:31
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CorePrPsInfo.hpp:64
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:36
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:178
Definition Visitor.hpp:219
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:72
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