Data Structures | Functions
eh_frame_list.h File Reference

Go to the source code of this file.

Data Structures

struct  eh_frame_t
 

Functions

struct eh_frame_tget_eh_frame_list () noexcept
 
int64_t register_eh_frame (void *addr, uint64_t size) noexcept
 

Function Documentation

◆ get_eh_frame_list()

struct eh_frame_t* get_eh_frame_list ( )
noexcept

Get EH Framework List

Precondition
expects: none
Postcondition
ensures: ret != nullptr

Returns a list of ".eh_frame" sections, containing their start address, and size. This is used by the unwind library to find stack frames. The list should have one .eh_frame section for each module that is loaded.

Returns
eh_frame list (of size MAX_NUM_MODULES)

Definition at line 75 of file test.cpp.

◆ register_eh_frame()

int64_t register_eh_frame ( void *  addr,
uint64_t  size 
)
noexcept

Register EH Framework

Registers an ".eh_frame" section, containing it's start address, and size. This will add the eh_frame section to a global list that can be retreived using get_eh_frame_list

Precondition
expects: addr != nullptr
expects: size != 0
Postcondition
ensures: none
Parameters
addrthe address of the eh_frame section
sizethe size of the eh_frame section
Returns
REGISTER_EH_FRAME_SUCCESS on success, REGISTER_EH_FRAME_FAILURE on failure

Definition at line 62 of file dummy_misc.cpp.