94 std::unique_ptr<Debug>
clone()
const override {
95 return std::unique_ptr<Debug>(
new FPO(*
this));
span< uint8_t > payload()
Debug data associated with this entry.
const Section * section() const
The section where debug data is located.
Definition debug/Debug.hpp:168
@ FPO
Frame pointer omission information.
Definition debug/Debug.hpp:55
FPO(const FPO &other)=default
it_entries entries()
Definition FPO.hpp:103
FPO & operator=(FPO &&other)=default
it_const_entries entries() const
Iterator over the FPO entries.
Definition FPO.hpp:99
static bool classof(const Debug *debug)
Definition FPO.hpp:107
FPO(const details::pe_debug &hdr, Section *section)
Definition FPO.hpp:85
std::string to_string() const override
const_ref_iterator< const entries_t & > it_const_entries
Definition FPO.hpp:80
std::vector< entry_t > entries_t
Definition FPO.hpp:78
static std::unique_ptr< FPO > parse(const details::pe_debug &hdr, Section *section, span< uint8_t > payload)
FRAME_TYPE
Definition FPO.hpp:29
@ FPO
Definition FPO.hpp:30
ref_iterator< entries_t & > it_entries
Definition FPO.hpp:79
std::unique_ptr< Debug > clone() const override
Definition FPO.hpp:94
FPO & operator=(const FPO &other)=default
Class which represents a PE section.
Definition PE/Section.hpp:46
Iterator which returns reference on container's values.
Definition iterators.hpp:120
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:31
const char * to_string(CODE_PAGES e)
tcb::span< ElementType, Extent > span
Definition span.hpp:22
ref_iterator< CT, U, typename decay_t< CT >::const_iterator > const_ref_iterator
Iterator which returns a const ref on container's values.
Definition iterators.hpp:385
Represents the stack frame layout for a x86 function when frame pointer omission (FPO) optimization i...
Definition FPO.hpp:38
uint32_t proc_size
The number of bytes in the function.
Definition FPO.hpp:43
uint16_t nb_saved_regs
Number of registers saved.
Definition FPO.hpp:55
std::string to_string() const
uint16_t prolog_size
The number of bytes in the function prologue code.
Definition FPO.hpp:52
uint16_t reserved
Reserved for future use.
Definition FPO.hpp:64
friend std::ostream & operator<<(std::ostream &os, const entry_t &entry)
Definition FPO.hpp:71
uint32_t nb_locals
The number of local variables.
Definition FPO.hpp:46
uint32_t parameters_size
The size of the parameters.
Definition FPO.hpp:49
FRAME_TYPE type
Variable that indicates the frame type.
Definition FPO.hpp:67
bool use_seh
Whether the function uses structured exception handling.
Definition FPO.hpp:58
uint32_t rva
The function RVA.
Definition FPO.hpp:40
bool use_bp
Whether the EBP register has been allocated.
Definition FPO.hpp:61
#define LIEF_API
Definition visibility.h:44