libdwarf: Reading the .eh_frame section

libdwarf

Loading...
Searching...
No Matches
Reading the .eh_frame section

Example access to .eh_frame.

Example access to .eh_frame.

*/
int exampler(Dwarf_Debug dbg,Dwarf_Addr mypcval,Dwarf_Error <em>error)
{
/</em> Given a pc value
for a function find the FDE and CIE data for
the function.
Example shows basic access to FDE/CIE plus
one way to access details given a PC value.
dwarf_get_fde_n() allows accessing all FDE/CIE
data so one could build up an application-specific
table of information if that is more useful.
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Debug
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617
Dwarf_Addr
unsigned long long Dwarf_Addr
Definition libdwarf.h:199
dwarf_get_fde_n
DW_API int dwarf_get_fde_n(Dwarf_Fde *dw_fde_data, Dwarf_Unsigned dw_fde_index, Dwarf_Fde *dw_returned_fde, Dwarf_Error *dw_error)
Retrieve an FDE from an FDE table.