#include "config.h"#include "dwarf_incl.h"#include "dwarf_die_deliv.h"

Go to the source code of this file.
| int dwarf_formaddr | ( | Dwarf_Attribute | attr, | |
| Dwarf_Addr * | return_addr, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 320 of file dwarf_form.c.
References _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, dbg, Dwarf_Debug_s::de_pointer_size, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_addr, NULL, READ_UNALIGNED, and ret_addr.
Referenced by get_attr_value(), get_proc_name(), and handle_attr_addr().
| int dwarf_formblock | ( | Dwarf_Attribute | attr, | |
| Dwarf_Block ** | return_block, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 550 of file dwarf_form.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), _dwarf_get_alloc(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_Block::bl_data, Dwarf_Block::bl_from_loclist, Dwarf_Block::bl_len, Dwarf_Block::bl_section_offset, Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_debug_info_offset, Dwarf_CU_Context_s::cc_extension_size, Dwarf_CU_Context_s::cc_length, Dwarf_CU_Context_s::cc_length_size, dbg, Dwarf_Debug_s::de_debug_info, DW_DLA_BLOCK, DW_DLE_ALLOC_FAIL, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_FORM_SIZE_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_block, DW_FORM_block1, DW_FORM_block2, DW_FORM_block4, length, NULL, and READ_UNALIGNED.
Referenced by dwarf_loclist(), dwarf_loclist_n(), and get_attr_value().
| int dwarf_formflag | ( | Dwarf_Attribute | attr, | |
| Dwarf_Bool * | ret_bool, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 368 of file dwarf_form.c.
References _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_flag, and NULL.
Referenced by get_attr_value().
| int dwarf_formref | ( | Dwarf_Attribute | attr, | |
| Dwarf_Off * | ret_offset, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 161 of file dwarf_form.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_extension_size, Dwarf_CU_Context_s::cc_length, Dwarf_CU_Context_s::cc_length_size, dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_OFFSET_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLE_BAD_REF_FORM, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_ref8, DW_FORM_ref_udata, NULL, offset, and READ_UNALIGNED.
Referenced by get_attr_value().
| int dwarf_formsdata | ( | Dwarf_Attribute | attr, | |
| Dwarf_Signed * | return_sval, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 475 of file dwarf_form.c.
References _dwarf_decode_s_leb128(), _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_data1, DW_FORM_data2, DW_FORM_data4, DW_FORM_data8, DW_FORM_sdata, NULL, and READ_UNALIGNED.
Referenced by dwarf_get_fde_for_die(), get_attr_value(), and print_attribute().
| int dwarf_formstring | ( | Dwarf_Attribute | attr, | |
| char ** | return_str, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 634 of file dwarf_form.c.
References _dwarf_error(), _dwarf_load_section(), _dwarf_string_valid(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_debug_info_offset, Dwarf_CU_Context_s::cc_extension_size, Dwarf_CU_Context_s::cc_length, Dwarf_CU_Context_s::cc_length_size, dbg, Dwarf_Debug_s::de_assume_string_in_bounds, Dwarf_Debug_s::de_debug_info, Dwarf_Debug_s::de_debug_str, Dwarf_Debug_s::de_debug_str_index, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_FORM_SIZE_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_string, DW_FORM_strp, end, NULL, offset, and READ_UNALIGNED.
Referenced by _dwarf_internal_printlines(), _dwarf_internal_srclines(), dwarf_srcfiles(), get_attr_value(), get_proc_name(), print_aranges(), and print_infos().
| int dwarf_formudata | ( | Dwarf_Attribute | attr, | |
| Dwarf_Unsigned * | return_uval, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 399 of file dwarf_form.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_data1, DW_FORM_data2, DW_FORM_data4, DW_FORM_data8, DW_FORM_udata, NULL, and READ_UNALIGNED.
Referenced by _dwarf_get_loclist_header_start(), _dwarf_internal_printlines(), _dwarf_internal_srclines(), dwarf_srcfiles(), and get_attr_value().
| int dwarf_global_formref | ( | Dwarf_Attribute | attr, | |
| Dwarf_Off * | ret_offset, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 235 of file dwarf_form.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_debug_info_offset, Dwarf_CU_Context_s::cc_extension_size, Dwarf_CU_Context_s::cc_length, Dwarf_CU_Context_s::cc_length_size, dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_FORM_OFFSET_BAD, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLE_BAD_REF_FORM, DW_DLV_ERROR, DW_DLV_OK, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_ref8, DW_FORM_ref_addr, DW_FORM_ref_udata, NULL, offset, and READ_UNALIGNED.
Referenced by get_attr_value().
| int dwarf_hasform | ( | Dwarf_Attribute | attr, | |
| Dwarf_Half | form, | |||
| Dwarf_Bool * | return_bool, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 47 of file dwarf_form.c.
References _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_CU_Context_s::cc_dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, and NULL.
| int dwarf_whatattr | ( | Dwarf_Attribute | attr, | |
| Dwarf_Half * | return_attr, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 123 of file dwarf_form.c.
References _dwarf_error(), Dwarf_Attribute_s::ar_attribute, Dwarf_Attribute_s::ar_cu_context, Dwarf_CU_Context_s::cc_dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, and NULL.
Referenced by get_attr_value(), get_proc_name(), and print_one_die().
| int dwarf_whatform | ( | Dwarf_Attribute | attr, | |
| Dwarf_Half * | return_form, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 91 of file dwarf_form.c.
References _dwarf_error(), Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_cu_context, Dwarf_CU_Context_s::cc_dbg, DW_DLE_ATTR_DBG_NULL, DW_DLE_ATTR_NO_CU_CONTEXT, DW_DLE_ATTR_NULL, DW_DLV_ERROR, DW_DLV_OK, and NULL.
Referenced by _dwarf_setup_loc(), dwarf_whatform_direct(), get_attr_value(), handle_attr_addr(), handle_attr_locdesc(), print_aranges(), and print_infos().
| int dwarf_whatform_direct | ( | Dwarf_Attribute | attr, | |
| Dwarf_Half * | return_form, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 77 of file dwarf_form.c.
References Dwarf_Attribute_s::ar_attribute_form_direct, DW_DLV_OK, and dwarf_whatform().
Referenced by get_attr_value().
1.5.6