#include "config.h"#include "dwarf_incl.h"#include <stdio.h>#include "dwarf_die_deliv.h"

Go to the source code of this file.
| static int _dwarf_die_attr_unsigned_constant | ( | Dwarf_Die | die, | |
| Dwarf_Half | attr, | |||
| Dwarf_Unsigned * | return_val, | |||
| Dwarf_Error * | error | |||
| ) | [static] |
Definition at line 459 of file dwarf_query.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), _dwarf_get_value_ptr(), Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, dbg, Dwarf_Die_s::di_cu_context, DW_DLE_DIE_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, 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_arrayorder(), dwarf_bitoffset(), dwarf_bitsize(), dwarf_bytesize(), and dwarf_srclang().
| static Dwarf_Byte_Ptr _dwarf_get_value_ptr | ( | Dwarf_Die | die, | |
| Dwarf_Half | attr, | |||
| Dwarf_Half * | attr_form | |||
| ) | [static] |
Definition at line 218 of file dwarf_query.c.
References _dwarf_get_abbrev_for_code(), _dwarf_get_size_of_val(), Dwarf_Abbrev_List_s::ab_abbrev_ptr, Dwarf_CU_Context_s::cc_dbg, DECODE_LEB128_UWORD, Dwarf_Die_s::di_abbrev_list, Dwarf_Die_s::di_cu_context, Dwarf_Die_s::di_debug_info_ptr, DW_FORM_indirect, NULL, and SKIP_LEB128_WORD.
Referenced by _dwarf_die_attr_unsigned_constant(), dwarf_attr(), dwarf_diename(), dwarf_hasattr(), dwarf_highpc(), and dwarf_lowpc().
| int dwarf_arrayorder | ( | Dwarf_Die | die, | |
| Dwarf_Unsigned * | ret_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 576 of file dwarf_query.c.
References _dwarf_die_attr_unsigned_constant(), and DW_AT_ordering.
| int dwarf_attr | ( | Dwarf_Die | die, | |
| Dwarf_Half | attr, | |||
| Dwarf_Attribute * | ret_attr, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 349 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_alloc(), _dwarf_get_value_ptr(), Dwarf_Attribute_s::ar_attribute, Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_attribute_form_direct, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, dbg, Dwarf_Die_s::di_cu_context, DW_DLA_ATTR, DW_DLE_ALLOC_FAIL, DW_DLE_DIE_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, and NULL.
Referenced by _dwarf_internal_printlines(), _dwarf_internal_srclines(), dwarf_get_fde_for_die(), dwarf_srcfiles(), handle_attr_addr(), handle_attr_locdesc(), print_aranges(), and print_infos().
| int dwarf_attr_offset | ( | Dwarf_Die | die, | |
| Dwarf_Attribute | attr, | |||
| Dwarf_Off * | offset, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 597 of file dwarf_query.c.
References Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, Dwarf_Debug_s::de_debug_info, Dwarf_Die_s::di_cu_context, DW_DLV_ERROR, and DW_DLV_OK.
Referenced by handle_attr_addr(), and handle_attr_locdesc().
| int dwarf_attrlist | ( | Dwarf_Die | die, | |
| Dwarf_Attribute ** | attrbuf, | |||
| Dwarf_Signed * | attrcnt, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 108 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_abbrev_for_code(), _dwarf_get_alloc(), _dwarf_get_size_of_val(), Dwarf_Abbrev_List_s::ab_abbrev_ptr, Dwarf_Attribute_s::ar_attribute, Dwarf_Attribute_s::ar_attribute_form, Dwarf_Attribute_s::ar_attribute_form_direct, Dwarf_Attribute_s::ar_cu_context, Dwarf_Attribute_s::ar_debug_info_ptr, Dwarf_Attribute_s::ar_next, Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, dbg, DECODE_LEB128_UWORD, Dwarf_Die_s::di_abbrev_list, Dwarf_Die_s::di_cu_context, Dwarf_Die_s::di_debug_info_ptr, DW_DLA_ATTR, DW_DLA_LIST, DW_DLE_ALLOC_FAIL, DW_DLE_DIE_ABBREV_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_FORM_indirect, i, NULL, and SKIP_LEB128_WORD.
Referenced by get_proc_name(), and print_one_die().
| int dwarf_bitoffset | ( | Dwarf_Die | die, | |
| Dwarf_Unsigned * | ret_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 544 of file dwarf_query.c.
References _dwarf_die_attr_unsigned_constant(), and DW_AT_bit_offset.
| int dwarf_bitsize | ( | Dwarf_Die | die, | |
| Dwarf_Unsigned * | ret_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 529 of file dwarf_query.c.
References _dwarf_die_attr_unsigned_constant(), and DW_AT_bit_size.
| int dwarf_bytesize | ( | Dwarf_Die | die, | |
| Dwarf_Unsigned * | ret_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 516 of file dwarf_query.c.
References _dwarf_die_attr_unsigned_constant(), and DW_AT_byte_size.
| int dwarf_die_CU_offset | ( | Dwarf_Die | die, | |
| Dwarf_Off * | cu_off, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 81 of file dwarf_query.c.
References Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_debug_info_offset, CHECK_DIE, Dwarf_Debug_s::de_debug_info, Dwarf_Die_s::di_cu_context, Dwarf_Die_s::di_debug_info_ptr, DW_DLV_ERROR, and DW_DLV_OK.
Referenced by print_one_die(), print_pubnames(), print_static_funcs(), print_static_vars(), print_types(), and print_weaknames().
| int dwarf_diename | ( | Dwarf_Die | die, | |
| char ** | ret_name, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 271 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_value_ptr(), _dwarf_load_section(), Dwarf_CU_Context_s::cc_dbg, Dwarf_CU_Context_s::cc_length_size, CHECK_DIE, dbg, Dwarf_Debug_s::de_debug_str, Dwarf_Debug_s::de_debug_str_index, Dwarf_Debug_s::de_debug_str_size, Dwarf_Die_s::di_cu_context, DW_AT_name, DW_DLE_ATTR_FORM_BAD, DW_DLE_DIE_BAD, DW_DLE_STRING_OFFSET_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_FORM_string, DW_FORM_strp, NULL, and READ_UNALIGNED.
| int dwarf_dieoffset | ( | Dwarf_Die | die, | |
| Dwarf_Off * | ret_offset, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 63 of file dwarf_query.c.
References Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, Dwarf_Debug_s::de_debug_info, Dwarf_Die_s::di_cu_context, Dwarf_Die_s::di_debug_info_ptr, DW_DLV_ERROR, and DW_DLV_OK.
Referenced by print_one_die(), and process_this_die_attrs().
| int dwarf_get_address_size | ( | Dwarf_Debug | dbg, | |
| Dwarf_Half * | ret_addr_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 47 of file dwarf_query.c.
References _dwarf_error(), Dwarf_Debug_s::de_pointer_size, DW_DLE_DBG_NULL, DW_DLV_ERROR, DW_DLV_OK, and NULL.
Referenced by print_frames().
| int dwarf_hasattr | ( | Dwarf_Die | die, | |
| Dwarf_Half | attr, | |||
| Dwarf_Bool * | return_bool, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 325 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_value_ptr(), Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, Dwarf_Die_s::di_cu_context, DW_DLE_DIE_BAD, DW_DLV_ERROR, DW_DLV_OK, and NULL.
Referenced by print_pubnames(), and process_this_die_attrs().
| int dwarf_highpc | ( | Dwarf_Die | die, | |
| Dwarf_Addr * | return_addr, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 418 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_value_ptr(), Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, dbg, Dwarf_Debug_s::de_pointer_size, Dwarf_Die_s::di_cu_context, DW_AT_high_pc, DW_DLE_DIE_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_FORM_addr, NULL, READ_UNALIGNED, and ret_addr.
| int dwarf_lowpc | ( | Dwarf_Die | die, | |
| Dwarf_Addr * | return_addr, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 387 of file dwarf_query.c.
References _dwarf_error(), _dwarf_get_value_ptr(), Dwarf_CU_Context_s::cc_dbg, CHECK_DIE, dbg, Dwarf_Debug_s::de_pointer_size, Dwarf_Die_s::di_cu_context, DW_AT_low_pc, DW_DLE_DIE_BAD, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_FORM_addr, NULL, READ_UNALIGNED, and ret_addr.
| int dwarf_srclang | ( | Dwarf_Die | die, | |
| Dwarf_Unsigned * | ret_size, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 560 of file dwarf_query.c.
References _dwarf_die_attr_unsigned_constant(), and DW_AT_language.
| int dwarf_tag | ( | Dwarf_Die | die, | |
| Dwarf_Half * | tag, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 97 of file dwarf_query.c.
References Dwarf_Abbrev_List_s::ab_tag, CHECK_DIE, Dwarf_Die_s::di_abbrev_list, DW_DLV_ERROR, and DW_DLV_OK.
1.5.6