#include "globals.h"#include "dwarf_names.h"

Go to the source code of this file.
| string get_fde_proc_name | ( | Dwarf_Debug | dbg, | |
| Dwarf_Addr | low_pc | |||
| ) |
Definition at line 450 of file print_sections.c.
References DW_DLA_DIE, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_child(), dwarf_dealloc(), dwarf_next_cu_header(), dwarf_siblingof(), err, get_nested_proc_name(), NULL, and print_error().
Referenced by print_frames().
| static int get_nested_proc_name | ( | Dwarf_Debug | dbg, | |
| Dwarf_Die | die, | |||
| Dwarf_Addr | low_pc, | |||
| char * | ret_name_buf, | |||
| int | ret_name_buf_len | |||
| ) | [static] |
Definition at line 322 of file print_sections.c.
References DW_DLA_DIE, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_TAG_subprogram, dwarf_child(), dwarf_dealloc(), dwarf_siblingof(), err, get_proc_name(), print_error(), safe_strcpy(), strlen(), and tag.
Referenced by get_fde_proc_name().
| static int get_proc_name | ( | Dwarf_Debug | dbg, | |
| Dwarf_Die | die, | |||
| Dwarf_Addr | low_pc, | |||
| char * | proc_name_buf, | |||
| int | proc_name_buf_len | |||
| ) | [static] |
Definition at line 219 of file print_sections.c.
References DW_AT_low_pc, DW_AT_name, DW_DLA_ATTR, DW_DLA_LIST, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_attrlist(), dwarf_dealloc(), dwarf_formaddr(), dwarf_formstring(), dwarf_whatattr(), err, i, len, print_error(), safe_strcpy(), and strlen().
Referenced by get_nested_proc_name().
| static Dwarf_Unsigned local_dwarf_decode_u_leb128 | ( | unsigned char * | leb128, | |
| unsigned int * | leb128_length | |||
| ) | [static] |
| void print_abbrevs | ( | Dwarf_Debug | dbg | ) |
Definition at line 1501 of file print_sections.c.
References dense, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_get_abbrev(), dwarf_get_abbrev_children_flag(), dwarf_get_abbrev_code(), dwarf_get_abbrev_entry(), dwarf_get_abbrev_tag(), err, i, length, offset, print_error(), printf(), and tag.
Referenced by process_one_file().
| void print_aranges | ( | Dwarf_Debug | dbg | ) |
Definition at line 1627 of file print_sections.c.
References count, cu_name, cu_name_flag, DW_AT_name, DW_DLA_ARANGE, DW_DLA_ATTR, DW_DLA_DIE, DW_DLA_LIST, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_FORM_string, DW_FORM_strp, dwarf_attr(), dwarf_dealloc(), dwarf_formstring(), dwarf_get_arange_cu_header_offset(), dwarf_get_arange_info(), dwarf_get_aranges(), dwarf_offdie(), dwarf_whatform(), err, i, length, NULL, p, print_error(), print_one_die(), printf(), start, strcmp(), strrchr(), tag, TRUE, and verbose.
Referenced by process_one_file().
| static void print_frame_inst_bytes | ( | Dwarf_Debug | dbg, | |
| Dwarf_Ptr | cie_init_inst, | |||
| Dwarf_Signed | len, | |||
| Dwarf_Signed | data_alignment_factor, | |||
| int | code_alignment_factor, | |||
| Dwarf_Half | addr_size | |||
| ) | [static] |
Definition at line 571 of file print_sections.c.
References char, DW_CFA_advance_loc, DW_CFA_advance_loc1, DW_CFA_advance_loc2, DW_CFA_advance_loc4, DW_CFA_cfa_offset_extended_sf, DW_CFA_def_cfa, DW_CFA_def_cfa_expression, DW_CFA_def_cfa_offset, DW_CFA_def_cfa_offset_sf, DW_CFA_def_cfa_register, DW_CFA_def_cfa_sf, DW_CFA_expression, DW_CFA_GNU_args_size, DW_CFA_GNU_window_save, DW_CFA_MIPS_advance_loc8, DW_CFA_nop, DW_CFA_offset, DW_CFA_offset_extended, DW_CFA_offset_extended_sf, DW_CFA_register, DW_CFA_remember_state, DW_CFA_restore, DW_CFA_restore_extended, DW_CFA_restore_state, DW_CFA_same_value, DW_CFA_set_loc, DW_CFA_undefined, local_dwarf_decode_u_leb128(), memcpy, printf(), printreg(), top, and verbose.
Referenced by print_frames().
| void print_frames | ( | Dwarf_Debug | dbg | ) |
Definition at line 868 of file print_sections.c.
References _dwarf_cie_section_offset(), _dwarf_fde_section_offset(), cie_index, cu_name_flag, data_alignment_factor, DW_DLA_LIST, DW_DLV_BADOFFSET, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_DLX_EH_OFFSET_UNAVAILABLE, DW_DLX_NO_EH_OFFSET, DW_FRAME_LAST_REG_NUM, DW_FRAME_SAME_VAL, DW_FRAME_UNDEFINED_VAL, dwarf_dealloc(), dwarf_get_address_size(), dwarf_get_cie_info(), dwarf_get_fde_exception_info(), dwarf_get_fde_info_for_reg(), dwarf_get_fde_instr_bytes(), dwarf_get_fde_list(), dwarf_get_fde_list_eh(), dwarf_get_fde_range(), err, fde_offset_for_cu_high, fde_offset_for_cu_low, get_fde_proc_name(), i, offset, print_error(), print_frame_inst_bytes(), printf(), printreg(), verbose, and version.
Referenced by process_one_file().
| void print_line_numbers_this_cu | ( | Dwarf_Debug | dbg, | |
| Dwarf_Die | cu_die | |||
| ) |
Definition at line 90 of file print_sections.c.
References _dwarf_print_lines(), DW_DLA_LINE, DW_DLA_LIST, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_dealloc(), dwarf_lineaddr(), dwarf_linebeginstatement(), dwarf_lineblock(), dwarf_lineendsequence(), dwarf_lineno(), dwarf_lineoff(), dwarf_linesrc(), dwarf_srclines(), err, filename, i, lineno, new_basic_block(), pc, print_error(), printf(), and verbose.
Referenced by print_infos().
| void print_locs | ( | Dwarf_Debug | dbg | ) |
Definition at line 1472 of file print_sections.c.
References DW_DLV_ERROR, DW_DLV_OK, dwarf_get_loclist_entry(), err, offset, print_error(), and printf().
Referenced by process_one_file().
| void print_macinfo | ( | Dwarf_Debug | dbg | ) |
Definition at line 1400 of file print_sections.c.
References count, Dwarf_Macro_Details_s::dmd_offset, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_OK, dwarf_dealloc(), dwarf_get_macro_details(), err, i, max, macro_counts_s::mc_code_zero, macro_counts_s::mc_define, macro_counts_s::mc_end_file, macro_counts_s::mc_extension, macro_counts_s::mc_start_file, macro_counts_s::mc_undef, macro_counts_s::mc_unknown, memset, offset, print_error(), print_one_macro_entry(), and printf().
Referenced by process_one_file().
| static void print_one_macro_entry | ( | long | i, | |
| struct Dwarf_Macro_Details_s * | mdp, | |||
| struct macro_counts_s * | counts | |||
| ) | [static] |
Definition at line 1347 of file print_sections.c.
References Dwarf_Macro_Details_s::dmd_type, DW_MACINFO_define, DW_MACINFO_end_file, DW_MACINFO_start_file, DW_MACINFO_undef, DW_MACINFO_vendor_ext, macro_counts_s::mc_code_zero, macro_counts_s::mc_define, macro_counts_s::mc_end_file, macro_counts_s::mc_extension, macro_counts_s::mc_start_file, macro_counts_s::mc_undef, macro_counts_s::mc_unknown, print_one_macro_entry_detail(), and snprintf().
Referenced by print_macinfo().
| static void print_one_macro_entry_detail | ( | long | i, | |
| char * | type, | |||
| struct Dwarf_Macro_Details_s * | mdp | |||
| ) | [static] |
Definition at line 1322 of file print_sections.c.
References Dwarf_Macro_Details_s::dmd_fileindex, Dwarf_Macro_Details_s::dmd_lineno, Dwarf_Macro_Details_s::dmd_macro, Dwarf_Macro_Details_s::dmd_offset, and printf().
Referenced by print_one_macro_entry().
| void print_pubnames | ( | Dwarf_Debug | dbg | ) |
Definition at line 1204 of file print_sections.c.
References check_pubname_attr, Dwarf_Check_Result::checks, count, die(), DW_AT_external, DW_DLA_GLOBAL, DW_DLA_LIST, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DWARF_CHECK_ERROR2, dwarf_dealloc(), dwarf_die_CU_offset(), dwarf_get_globals(), dwarf_global_cu_offset(), dwarf_global_name_offsets(), dwarf_hasattr(), dwarf_offdie(), err, Dwarf_Check_Result::errors, exit(), i, print_error(), printf(), and pubname_attr_result.
Referenced by process_one_file().
| void print_static_funcs | ( | Dwarf_Debug | dbg | ) |
Definition at line 1758 of file print_sections.c.
References count, die(), DW_DLA_FUNC, DW_DLA_LIST, DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_dealloc(), dwarf_die_CU_offset(), dwarf_func_cu_offset(), dwarf_func_name_offsets(), dwarf_get_funcs(), dwarf_offdie(), err, exit(), i, print_error(), printf(), and verbose.
Referenced by process_one_file().
| void print_static_vars | ( | Dwarf_Debug | dbg | ) |
Definition at line 1834 of file print_sections.c.
References count, die(), DW_DLA_LIST, DW_DLA_STRING, DW_DLA_VAR, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_dealloc(), dwarf_die_CU_offset(), dwarf_get_vars(), dwarf_offdie(), dwarf_var_cu_offset(), dwarf_var_name_offsets(), err, exit(), i, print_error(), printf(), and verbose.
Referenced by process_one_file().
| void print_strings | ( | Dwarf_Debug | dbg | ) |
Definition at line 1606 of file print_sections.c.
References DW_DLV_ERROR, DW_DLV_OK, dwarf_get_str(), err, length, offset, print_error(), and printf().
Referenced by process_one_file().
| void print_types | ( | Dwarf_Debug | dbg | ) |
Definition at line 1915 of file print_sections.c.
References count, die(), DW_DLA_LIST, DW_DLA_STRING, DW_DLA_TYPENAME, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_dealloc(), dwarf_die_CU_offset(), dwarf_get_types(), dwarf_offdie(), dwarf_type_cu_offset(), dwarf_type_name_offsets(), err, exit(), i, print_error(), printf(), and verbose.
Referenced by process_one_file().
| void print_weaknames | ( | Dwarf_Debug | dbg | ) |
Definition at line 1994 of file print_sections.c.
References count, die(), DW_DLA_LIST, DW_DLA_STRING, DW_DLA_WEAK, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_dealloc(), dwarf_die_CU_offset(), dwarf_get_weaks(), dwarf_offdie(), dwarf_weak_cu_offset(), dwarf_weak_name_offsets(), err, exit(), i, print_error(), printf(), and verbose.
Referenced by process_one_file().
| static void printreg | ( | Dwarf_Signed | reg | ) | [static] |
Definition at line 2075 of file print_sections.c.
References printf(), and regnames.
Referenced by print_frame_inst_bytes(), and print_frames().
| static void safe_strcpy | ( | char * | out, | |
| int | outlen, | |||
| char * | in, | |||
| int | inlen | |||
| ) | [static] |
Definition at line 202 of file print_sections.c.
References strcpy, and strncpy().
Referenced by get_nested_proc_name(), and get_proc_name().
Definition at line 87 of file print_sections.c.
char* regnames[] [static] |
Initial value:
{
"cfa", "r1/at", "r2/v0", "r3/v1",
"r4/a0", "r5/a1", "r6/a2", "r7/a3",
"r8/t0", "r9/t1", "r10/t2", "r11/t3",
"r12/t4", "r13/t5", "r14/t6", "r15/t7",
"r16/s0", "r17/s1", "r18/s2", "r19/s3",
"r20/s4", "r21/s5", "r22/s6", "r23/s7",
"r24/t8", "r25/t9", "r26/k0", "r27/k1",
"r28/gp", "r29/sp", "r30/s8", "r31",
"$f0", "$f1",
"$f2", "$f3",
"$f4", "$f5",
"$f6", "$f7",
"$f8", "$f9",
"$f10", "$f11",
"$f12", "$f13",
"$f14", "$f15",
"$f16", "$f17",
"$f18", "$f19",
"$f20", "$f21",
"$f22", "$f23",
"$f24", "$f25",
"$f26", "$f27",
"$f28", "$f29",
"$f30", "$f31",
"ra", "slk",
}
Definition at line 55 of file print_sections.c.
1.5.6