#include "globals.h"#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <getopt.h>

Go to the source code of this file.
| #define BYTES_PER_INSTRUCTION 4 |
Definition at line 48 of file dwarfdump.c.
| #define FAILED 1 |
Definition at line 47 of file dwarfdump.c.
| #define OKAY 0 |
| int main | ( | int argc | , | |
| char * | argv[] | |||
| ) |
Definition at line 124 of file dwarfdump.c.
References check_error, cmd, elf32_getehdr(), elf64_getehdr(), elf_begin(), ELF_C_READ, elf_end(), ELF_K_AR, elf_kind(), elf_next(), elf_version(), EV_CURRENT, EV_NONE, exit(), f, FAILED, file_name, fprintf(), O_BINARY, O_RDONLY, OKAY, open, process_args(), process_one_file(), and void.
| void print_error | ( | Dwarf_Debug | dbg, | |
| string | msg, | |||
| int | dwarf_code, | |||
| Dwarf_Error | err | |||
| ) |
Definition at line 602 of file dwarfdump.c.
References DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_errmsg(), dwarf_errno(), exit(), FAILED, and fprintf().
Referenced by _dwarf_print_one_locdesc(), get_attr_value(), get_fde_proc_name(), get_location_list(), get_nested_proc_name(), get_proc_name(), print_abbrevs(), print_aranges(), print_die_and_children(), print_frames(), print_infos(), print_line_numbers_this_cu(), print_locs(), print_macinfo(), print_one_die(), print_pubnames(), print_relocinfo(), print_relocinfo_32(), print_relocinfo_64(), print_static_funcs(), print_static_vars(), print_strings(), print_types(), print_weaknames(), and process_one_file().
| static void print_infos | ( | Dwarf_Debug | dbg | ) | [static] |
Definition at line 451 of file dwarfdump.c.
References cu_name, cu_name_flag, cu_offset, dense, DW_AT_name, 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_errmsg(), dwarf_errno(), dwarf_formstring(), dwarf_next_cu_header(), dwarf_siblingof(), dwarf_srcfiles(), dwarf_whatform(), fprintf(), info_flag, line_flag, NULL, p, print_die_and_children(), print_error(), print_line_numbers_this_cu(), printf(), si, strcmp(), strrchr(), tag, and verbose.
Referenced by process_one_file().
| static string process_args | ( | int | argc, | |
| char * | argv[] | |||
| ) | [static] |
Definition at line 279 of file dwarfdump.c.
References abbrev_flag, aranges_flag, c, check_attr_tag, check_pubname_attr, check_tag_tree, check_type_offset, cu_name, cu_name_flag, dense, dwarf_check, ellipsis, EOF, exit(), FAILED, FALSE, fprintf(), frame_flag, getopt(), info_flag, line_flag, loc_flag, macinfo_flag, optarg, optind, pubnames_flag, reloc_flag, static_func_flag, static_var_flag, strcpy, string_flag, TRUE, type_flag, use_old_dwarf_loclist, verbose, and weakname_flag.
Definition at line 192 of file dwarfdump.c.
References abbrev_flag, Elf_Arhdr::ar_name, aranges_flag, ATTRIB_BUFSIZ, attrib_bufsiz, check_attr_tag, check_pubname_attr, check_tag_tree, check_type_offset, cu_name_flag, dbg, DW_DLC_READ, DW_DLV_NO_ENTRY, DW_DLV_OK, dwarf_check, dwarf_elf_init(), dwarf_finish(), elf_getarhdr(), exit(), FAILED, fprintf(), frame_flag, free(), info_flag, line_flag, loc_flag, macinfo_flag, malloc, NULL, print_abbrevs(), print_aranges(), PRINT_CHECK_RESULT, print_error(), print_frames(), print_infos(), print_locs(), print_macinfo(), print_pubnames(), print_relocinfo(), print_static_funcs(), print_static_vars(), print_strings(), print_types(), print_weaknames(), printf(), pubnames_flag, reloc_flag, static_func_flag, static_var_flag, string_flag, type_flag, and weakname_flag.
Referenced by main().
Definition at line 105 of file dwarfdump.c.
boolean abbrev_flag = FALSE [static] |
boolean aranges_flag = FALSE [static] |
Definition at line 62 of file print_die.c.
| int attrib_bufsiz |
| boolean check_abbrev_code = FALSE |
Definition at line 92 of file dwarfdump.c.
| boolean check_attr_tag = FALSE |
Definition at line 95 of file dwarfdump.c.
Referenced by print_attribute(), process_args(), and process_one_file().
| int check_error = 0 |
| boolean check_pubname_attr = FALSE |
Definition at line 93 of file dwarfdump.c.
Referenced by print_pubnames(), process_args(), and process_one_file().
| boolean check_reloc_offset = FALSE |
Definition at line 94 of file dwarfdump.c.
| boolean check_tag_tree = FALSE |
Definition at line 96 of file dwarfdump.c.
Referenced by print_die_and_children(), process_args(), and process_one_file().
| boolean check_type_offset = FALSE |
Definition at line 97 of file dwarfdump.c.
Referenced by get_attr_value(), process_args(), and process_one_file().
| char cu_name[BUFSIZ] |
Definition at line 101 of file dwarfdump.c.
Referenced by print_aranges(), print_infos(), and process_args().
| boolean cu_name_flag = FALSE |
Definition at line 102 of file dwarfdump.c.
Referenced by get_attr_value(), print_aranges(), print_frames(), print_infos(), process_args(), and process_one_file().
Definition at line 87 of file print_sections.c.
Definition at line 88 of file dwarfdump.c.
Referenced by get_location_list(), print_abbrevs(), print_attribute(), print_infos(), print_one_die(), and process_args().
| boolean dst_format = FALSE |
boolean dwarf_check = FALSE [static] |
Definition at line 89 of file dwarfdump.c.
Referenced by c_parser_objc_method_decl(), cp_parser_label_for_labeled_statement(), cp_parser_labeled_statement(), cp_parser_objc_method_signature(), grokparms(), and process_args().
Definition at line 112 of file dwarfdump.c.
Referenced by $auxinit(), $ssdallc(), $ssdfree(), __c_fp_class_q(), __f77_f_back_com(), _dwarf_addr_finder(), _dwarf_print_one_locdesc(), _dwarf_stream_relocs_to_disk(), _dwarf_symbolic_relocs_to_disk(), _elf_arhdr(), _elf_init_ar(), _elf_output(), _stat(), alpha_ecoff_get_relocated_section_contents(), bfd_check_format_matches(), c_dfe(), c_due(), c_le(), check_buflen(), collect_execute(), compile_re(), complex_divide(), complex_sqrt(), do_this_die_and_dealloc(), do_ui(), do_uio_1dim_work(), Dump_Rta_Scns(), dwarf_transform_to_disk_form(), elfNN_ia64_install_value(), execute(), f_clos_com(), f_del_com(), f_duped(), f_end_com(), f_find_com(), f_open_com(), f_unl_com(), ffestb_R100110_(), fstat(), get_attr_value(), get_fde_proc_name(), get_location_list(), get_nested_proc_name(), get_proc_name(), handle_debug_aranges(), handle_debug_frame(), handle_debug_info(), handle_debug_line(), idxopen(), idxread(), ir_b_create_map(), ISA_Operands_End(), ISA_Pack_End(), ISA_Print_End(), ISA_Subset_End(), l_C(), l_CHAR(), l_L(), l_R(), l_R16(), l_read(), l_write(), lang_specific_pre_link(), load_file_data(), load_symbols(), lwrt_A(), lwrt_I(), main(), mv_cur(), My_Atoq(), NAMEgetvar(), TOP_SCHED_INFO_MAP::Output(), parse_derived_type_stmt(), pex_free(), pex_get_status(), pex_get_times(), pex_read_output(), pexecute(), print_abbrevs(), print_aranges(), print_attribute(), print_die_and_children(), print_elf_error(), print_frames(), print_insn_ia64(), print_line_numbers_this_cu(), print_locs(), print_macinfo(), print_one_die(), print_pubnames(), print_relocinfo(), print_relocinfo_32(), print_relocinfo_64(), print_static_funcs(), print_static_vars(), print_strings(), print_types(), print_weaknames(), process_O_option(), process_this_die_attrs(), pushdecl(), pushdecl_maybe_friend(), QUADOP_ADD(), QUADOP_DIV(), QUADOP_DTOQ(), QUADOP_EQ(), QUADOP_GE(), QUADOP_GT(), QUADOP_ITOQ(), QUADOP_LE(), QUADOP_LT(), QUADOP_MPY(), QUADOP_NE(), QUADOP_NEGATE(), QUADOP_QTOD(), QUADOP_QTOI(), QUADOP_QTOS(), QUADOP_QTOU(), QUADOP_SQRT(), QUADOP_STOQ(), QUADOP_SUB(), QUADOP_UTOQ(), rd_ed(), remove_do_parallel_blk(), remove_pdo_blk(), rtl_verify_flow_info(), rtl_verify_flow_info_1(), s_rsle_com(), s_xsue64_mp(), scan_prog_file(), section_cache_section(), t_runc(), Targ_Atoc(), Targ_Conv(), Targ_Ipower(), Targ_Is_Integral(), Targ_WhirlOp(), tree_verify_flow_info(), utime(), verify_call_clobbering(), verify_def(), verify_dominators(), verify_eh_tree(), verify_flow_info(), verify_flow_insensitive_alias_info(), verify_flow_sensitive_alias_info(), verify_hot_cold_block_grouping(), verify_loop_structure(), verify_name_tags(), verify_phi_args(), verify_ssa(), verify_stmts(), verify_use(), vms_object_p(), w_ed(), w_ned(), wrt_G(), y_getc(), y_gets(), y_ierr(), y_putc(), z_getc(), and z_putc().
boolean exceptions_flag = FALSE [static] |
Definition at line 75 of file dwarfdump.c.
boolean frame_flag = FALSE [static] |
Definition at line 66 of file dwarfdump.c.
Referenced by print_die_and_children(), print_infos(), process_args(), and process_one_file().
Definition at line 72 of file dwarfdump.c.
Referenced by print_infos(), process_args(), and process_one_file().
boolean macinfo_flag = FALSE [static] |
string program_name [static] |
Definition at line 54 of file dwarfdump.c.
boolean pubnames_flag = FALSE [static] |
boolean reloc_flag = FALSE [static] |
Definition at line 107 of file dwarfdump.c.
boolean static_func_flag = FALSE [static] |
boolean static_var_flag = FALSE [static] |
boolean string_flag = FALSE [static] |
Definition at line 80 of file dwarfdump.c.
Referenced by process_args(), process_init_element(), and process_one_file().
Definition at line 84 of file dwarfdump.c.
| boolean use_old_dwarf_loclist = FALSE |
| int verbose = 0 |
Definition at line 87 of file dwarfdump.c.
boolean weakname_flag = FALSE [static] |
1.5.6