16#ifndef LIEF_ELF_CORE_SIGINFO_H
17#define LIEF_ELF_CORE_SIGINFO_H
23#include "LIEF/visibility.h"
24#include "LIEF/ELF/Note.hpp"
25#include "LIEF/errors.hpp"
33 std::unique_ptr<Note>
clone()
const override {
34 return std::unique_ptr<CoreSigInfo>(
new CoreSigInfo(*
this));
45 void signo(uint32_t value);
46 void sigcode(uint32_t value);
47 void sigerrno(uint32_t value);
49 void dump(std::ostream& os)
const override;
50 void accept(
Visitor& visitor)
const override;
54 static bool classof(
const Note* note) {
55 return note->
type() == Note::TYPE::CORE_SIGINFO;
59 std::ostream& operator<<(std::ostream& os,
const CoreSigInfo& note) {
Class representing a core siginfo object.
Definition CoreSigInfo.hpp:31
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CoreSigInfo.hpp:33
result< int32_t > sigcode() const
Signal code of an error if it can't be resolved.
result< int32_t > sigerrno() const
Signal error number of an error if it can't be resolved.
result< int32_t > signo() const
Signal number of an error if it can't be resolved.
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
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