LIEF: Library to Instrument Executable Formats
Version 1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
ELF
NoteDetails
core
CoreSigInfo.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
* Copyright 2017 - 2026 Quarkslab
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef LIEF_ELF_CORE_SIGINFO_H
17
#define LIEF_ELF_CORE_SIGINFO_H
18
19
#include <ostream>
20
#include <memory>
21
22
#include "
LIEF/visibility.h
"
23
#include "
LIEF/ELF/Note.hpp
"
24
#include "
LIEF/errors.hpp
"
25
26
namespace
LIEF
{
27
namespace
ELF
{
28
30
class
LIEF_API
CoreSigInfo
:
public
Note {
31
public
:
32
std::unique_ptr<Note>
clone
()
const override
{
33
return
std::unique_ptr<CoreSigInfo>(
new
CoreSigInfo
(*
this
));
34
}
35
37
result<int32_t>
signo
()
const
;
39
result<int32_t>
sigcode
()
const
;
40
42
result<int32_t>
sigerrno
()
const
;
43
44
void
signo
(uint32_t value);
45
void
sigcode
(uint32_t value);
46
void
sigerrno
(uint32_t value);
47
48
void
dump
(std::ostream& os)
const override
;
49
void
accept
(
Visitor
& visitor)
const override
;
50
51
~CoreSigInfo
()
override
=
default
;
52
53
static
bool
classof
(
const
Note* note) {
54
return
note->
type
() ==
Note::TYPE::CORE_SIGINFO
;
55
}
56
57
LIEF_API
friend
58
std::ostream&
operator<<
(std::ostream& os,
const
CoreSigInfo
& note) {
59
note.
dump
(os);
60
return
os;
61
}
62
protected
:
63
using
Note::Note
;
64
};
65
}
// namepsace ELF
66
}
// namespace LIEF
67
68
#endif
Note.hpp
LIEF::ELF::CoreSigInfo
Class representing a core siginfo object.
Definition
CoreSigInfo.hpp:30
LIEF::ELF::CoreSigInfo::operator<<
friend std::ostream & operator<<(std::ostream &os, const CoreSigInfo ¬e)
Definition
CoreSigInfo.hpp:58
LIEF::ELF::CoreSigInfo::clone
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition
CoreSigInfo.hpp:32
LIEF::ELF::CoreSigInfo::dump
void dump(std::ostream &os) const override
LIEF::ELF::CoreSigInfo::sigerrno
void sigerrno(uint32_t value)
LIEF::ELF::CoreSigInfo::classof
static bool classof(const Note *note)
Definition
CoreSigInfo.hpp:53
LIEF::ELF::CoreSigInfo::sigcode
void sigcode(uint32_t value)
LIEF::ELF::CoreSigInfo::accept
void accept(Visitor &visitor) const override
LIEF::ELF::CoreSigInfo::sigcode
result< int32_t > sigcode() const
Signal code of an error if it can't be resolved.
LIEF::ELF::CoreSigInfo::sigerrno
result< int32_t > sigerrno() const
Signal error number of an error if it can't be resolved.
LIEF::ELF::CoreSigInfo::~CoreSigInfo
~CoreSigInfo() override=default
LIEF::ELF::CoreSigInfo::signo
result< int32_t > signo() const
Signal number of an error if it can't be resolved.
LIEF::ELF::CoreSigInfo::signo
void signo(uint32_t value)
LIEF::ELF::Note::TYPE::CORE_SIGINFO
@ CORE_SIGINFO
Definition
Note.hpp:93
LIEF::ELF::Note::type
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
LIEF::ELF::Note::Note
Note(const Note ©)=default
LIEF::Visitor
Definition
Visitor.hpp:210
LIEF::result
Wrapper that contains an Object (T) or an error.
Definition
errors.hpp:75
errors.hpp
LIEF::ELF
Namespace related to the LIEF's ELF module.
Definition
Abstract/Header.hpp:28
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0