libdwarf
Loading...
Searching...
No Matches
checkexamples.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dwarf.h"
#include "libdwarf.h"
Include dependency graph for checkexamples.c:

Macros

#define PRX   "0x%08llx"
#define TRUE   1
#define FALSE   0

Functions

 dwarf_dealloc_error (dbg, error)
 if (res==DW_DLV_NO_ENTRY)
 printf ("The file we actually opened is %s\n", true_pathbuf)
 dwarf_finish (dbg)
 dwarf_dealloc_error (dbg, *error)
 if (errv !=DW_DLV_OK)
 dwarf_get_AT_name (attrnum,&attrname)
 printf ("Attribute[%ld], value %u name %s\n",(long int) i, attrnum, attrname)
 dwarf_dealloc_attribute (atlist[i])
 dwarf_dealloc (dbg, atlist, DW_DLA_LIST)
 if (!sec_nums)
 if (res !=DW_DLV_OK)
 for (i=0;i< group_map_entry_count;++i)
 free (sec_names)
 free (group_nums)
 free (sec_nums)
 dwarf_dealloc_die (return_kid)
 if (cres==DW_DLV_ERROR)
 if (sibres==DW_DLV_ERROR)
 if (vres==DW_DLV_ERROR)
 if (die !=in_die)
int my_needed_data_exists (struct myrecords_struct *myrecords_data)
int examplecuhdre (Dwarf_Debug dbg, struct myrecords_struct *myrec, Dwarf_Error *error)
int examplecuhdrd (Dwarf_Debug dbg, struct myrecords_struct *myrec, Dwarf_Error *error)
 dwarf_dealloc_die (return_die)
 dwarf_dealloc_die (cudie)
 dwarf_dealloc (dbg, offbuf, DW_DLA_LIST)
 if (wres !=DW_DLV_OK)
 if (fc==DW_FORM_CLASS_BLOCK)
 dwarf_dealloc_loc_head_c (loclist_head)
 if (res2==DW_DLV_ERROR)
 dwarf_dealloc_loc_head_c (head)
 if (sres !=DW_DLV_OK)
 if (table_count==0)
 if (sres==DW_DLV_OK)
 dwarf_dealloc (dbg, filename, DW_DLA_STRING)
 dwarf_srclines_dealloc_b (context)
 dwarf_dealloc (dbg, srcfiles, DW_DLA_LIST)
 dwarf_srclines_dealloc_b (line_context)
 dwarf_globals_dealloc (dbg, globs, count)
 dwarf_globals_dealloc (dbg, types, count)
 dwarf_globals_dealloc (dbg, weaks, count)
 dwarf_globals_dealloc (dbg, funcs, count)
 dwarf_globals_dealloc (dbg, vars, count)
int exampledebugnames (Dwarf_Debug dbg, Dwarf_Unsigned *dnentrycount, Dwarf_Error *error)
Dwarf_Unsigned get_next_import_from_list (void)
void mark_this_offset_as_examined (Dwarf_Unsigned macro_unit_offset)
void add_offset_to_list (Dwarf_Unsigned offset)
int examplep5 (Dwarf_Die cu_die, Dwarf_Error *error)
int examplep2 (Dwarf_Debug dbg, Dwarf_Off cur_off, Dwarf_Error *error)
 dwarf_dealloc_fde_cie_list (dbg, cie_data, cie_count, fde_data, fde_count)
 if (fres==DW_DLV_OK)
 dwarf_dealloc_frame_instr_head (head)
 for (;;)
int examplev (Dwarf_Debug dbg, Dwarf_Off rangesoffset_in, Dwarf_Die die, Dwarf_Error *error)
 dwarf_dealloc_gdbindex (gindexptr)
 if (res2 !=DW_DLV_OK)
 dwarf_dealloc_xu_header (xuhdr)
 if (debuglink_fullpath_strlen)
 if (buildid_length)
 printf ("Possible paths count %u\n", paths_count)
 free (debuglink_fullpath)
 free (paths)
 dwarf_dealloc_rnglists_head (rnglhead)

Variables

return res = dwarf_set_tied_dbg(split_dbg,tied_dbg,error)
return DW_DLV_OK
error = 0
 errv = dwarf_whatattr(atlist[i],&attrnum,error)
 atlist [i] = 0
 return
 sec_nums = calloc(group_map_entry_count,sizeof(Dwarf_Unsigned))
 group_nums = calloc(group_map_entry_count,sizeof(Dwarf_Unsigned))
 sec_names = calloc(group_map_entry_count,sizeof(char*))
 return_kid = 0
 cres = dwarf_child(die,&child,error)
 sibdie = 0
 sibres
 vres = dwarf_validate_die_sibling(sibdie,&offset)
 die = 0
void myrecords_data
void d
 return_die = 0
enum Dwarf_Form_Class fc = DW_FORM_CLASS_UNKNOWN
Dwarf_Half version = 0
Dwarf_Half offset_size = 0
int wres = 0
 loclist_head = 0
return lres
 res2
Dwarf_Linelinebuf = 0
Dwarf_Signed linecount = 0
Dwarf_Linelinebuf_actuals = 0
Dwarf_Signed linecount_actuals = 0
Dwarf_Line_Context line_context = 0
Dwarf_Small table_count = 0
Dwarf_Unsigned lineversion = 0
int sres = 0
 else
Dwarf_Signed count = 0
char ** srcfiles = 0
Dwarf_Signed i = 0
char * name = 0
void s
return fres = 0
Dwarf_Ciecie_data = 0
Dwarf_Signed cie_count = 0
Dwarf_Fdefde_data = 0
Dwarf_Signed fde_count = 0
 sot = 0
Dwarf_Arangearange = 0
Dwarf_Unsigned length = 0
Dwarf_Unsigned typeslength = 0
Dwarf_Xu_Index_Header xuhdr = 0
Dwarf_Unsigned version_number = 0
Dwarf_Unsigned offsets_count = 0
Dwarf_Unsigned units_count = 0
Dwarf_Unsigned hash_slots_count = 0
const char * section_name = 0
Dwarf_Unsigned h = 0
highpc = localhighpc
 out = "<unknown TAG>"
Dwarf_Small address_size = 0
Dwarf_Small segment_selector_size = 0
Dwarf_Unsigned offset_entry_count = 0
Dwarf_Unsigned offset_of_offset_array = 0
Dwarf_Unsigned offset_of_first_rangeentry = 0
Dwarf_Unsigned offset_past_last_rangeentry = 0
unsigned colmax = 4
unsigned col = 0
Dwarf_Unsigned global_offset_of_value = 0
Dwarf_Unsigned endoffset = offset_past_last_rangeentry
int rese = 0
Dwarf_Unsigned ct = 0
Dwarf_Half theform = 0
Dwarf_Unsigned entries_count
Dwarf_Unsigned global_offset_of_rle_set
Dwarf_Rnglists_Head rnglhead = 0

Variable Documentation

◆ else

else
Initial value:
{
signed long long Dwarf_Signed
Definition libdwarf.h:197

◆ res2

res2
Initial value:
0,
&lle_value,
&rawlopc, &rawhipc, &debug_addr_unavail, &lopc, &hipc,
&ulocentry_count, &locentry,
&loclist_source, &section_offset, &locdesc_offset,
error)
DW_API int dwarf_get_locdesc_entry_d(Dwarf_Loc_Head_c dw_loclist_head, Dwarf_Unsigned dw_index, Dwarf_Small *dw_lle_value_out, Dwarf_Unsigned *dw_rawlowpc, Dwarf_Unsigned *dw_rawhipc, Dwarf_Bool *dw_debug_addr_unavailable, Dwarf_Addr *dw_lowpc_cooked, Dwarf_Addr *dw_hipc_cooked, Dwarf_Unsigned *dw_locexpr_op_count_out, Dwarf_Locdesc_c *dw_locentry_out, Dwarf_Small *dw_loclist_source_out, Dwarf_Unsigned *dw_expression_offset_out, Dwarf_Unsigned *dw_locdesc_offset_out, Dwarf_Error *dw_error)
Retrieve the details(_d) of a location expression.

◆ sibres

sibres
Initial value:
= dwarf_siblingof_b(dbg,die,is_info,
&sibdie,error)
DW_API int dwarf_siblingof_b(Dwarf_Debug dw_dbg, Dwarf_Die dw_die, Dwarf_Bool dw_is_info, Dwarf_Die *dw_return_siblingdie, Dwarf_Error *dw_error)
Return the first DIE or the next sibling DIE.