osprey/libdwarf/dwarfdump/dwarfdump.c File Reference

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

Include dependency graph for dwarfdump.c:

Go to the source code of this file.

Defines

#define OKAY   0
#define FAILED   1
#define BYTES_PER_INSTRUCTION   4
#define PRINT_CHECK_RESULT(str, result)

Functions/Subroutines

static string process_args (int argc, char *argv[])
static void print_infos (Dwarf_Debug dbg)
static int process_one_file (Elf *elf, string file_name, int archive)
int main (int argc, char *argv[])
void print_error (Dwarf_Debug dbg, string msg, int dwarf_code, Dwarf_Error err)

Variables

char * optarg
static string program_name
int check_error = 0
string attrib_buf
int attrib_bufsiz
Dwarf_Die current_cu_die_for_print_frames
boolean info_flag = FALSE
boolean use_old_dwarf_loclist = FALSE
static boolean line_flag = FALSE
static boolean abbrev_flag = FALSE
static boolean frame_flag = FALSE
static boolean exceptions_flag = FALSE
static boolean pubnames_flag = FALSE
static boolean macinfo_flag = FALSE
static boolean loc_flag = FALSE
static boolean aranges_flag = FALSE
static boolean string_flag = FALSE
static boolean reloc_flag = FALSE
static boolean static_func_flag = FALSE
static boolean static_var_flag = FALSE
static boolean type_flag = FALSE
static boolean weakname_flag = FALSE
int verbose = 0
boolean dense = FALSE
boolean ellipsis = FALSE
boolean dst_format = FALSE
boolean check_abbrev_code = FALSE
boolean check_pubname_attr = FALSE
boolean check_reloc_offset = FALSE
boolean check_attr_tag = FALSE
boolean check_tag_tree = FALSE
boolean check_type_offset = FALSE
static boolean dwarf_check = FALSE
char cu_name [BUFSIZ]
boolean cu_name_flag = FALSE
Dwarf_Unsigned cu_offset = 0
Dwarf_Check_Result abbrev_code_result
Dwarf_Check_Result pubname_attr_result
Dwarf_Check_Result reloc_offset_result
Dwarf_Check_Result attr_tag_result
Dwarf_Check_Result tag_tree_result
Dwarf_Check_Result type_offset_result
Dwarf_Error err


Define Documentation

#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

Definition at line 46 of file dwarfdump.c.

Referenced by main().

#define PRINT_CHECK_RESULT ( str,
result   ) 

Value:

{\
    fprintf(stderr, "%-24s%8d%8d\n", str, result.checks, result.errors); \
}

Definition at line 114 of file dwarfdump.c.

Referenced by process_one_file().


Function Documentation

int main ( int argc  ,
char *  argv[] 
)

void print_error ( Dwarf_Debug  dbg,
string  msg,
int  dwarf_code,
Dwarf_Error  err 
)

static void print_infos ( Dwarf_Debug  dbg  )  [static]

static string process_args ( int  argc,
char *  argv[] 
) [static]

static int process_one_file ( Elf elf,
string  file_name,
int  archive 
) [static]


Variable Documentation

Definition at line 105 of file dwarfdump.c.

boolean abbrev_flag = FALSE [static]

Definition at line 73 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean aranges_flag = FALSE [static]

Definition at line 79 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

Definition at line 108 of file dwarfdump.c.

Referenced by print_attribute().

Definition at line 62 of file print_die.c.

Definition at line 63 of file print_die.c.

Referenced by get_attr_value(), and process_one_file().

Definition at line 92 of file dwarfdump.c.

Definition at line 95 of file dwarfdump.c.

Referenced by print_attribute(), process_args(), and process_one_file().

int check_error = 0

Definition at line 55 of file dwarfdump.c.

Referenced by main().

Definition at line 93 of file dwarfdump.c.

Referenced by print_pubnames(), process_args(), and process_one_file().

Definition at line 94 of file dwarfdump.c.

Definition at line 96 of file dwarfdump.c.

Referenced by print_die_and_children(), process_args(), and process_one_file().

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().

Definition at line 103 of file dwarfdump.c.

Referenced by get_attr_value(), and print_infos().

Definition at line 87 of file print_sections.c.

boolean dense = FALSE

Definition at line 90 of file dwarfdump.c.

Referenced by print_one_die().

boolean dwarf_check = FALSE [static]

Definition at line 99 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean ellipsis = FALSE

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 74 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean info_flag = FALSE

Definition at line 66 of file dwarfdump.c.

Referenced by print_die_and_children(), print_infos(), process_args(), and process_one_file().

boolean line_flag = FALSE [static]

Definition at line 72 of file dwarfdump.c.

Referenced by print_infos(), process_args(), and process_one_file().

boolean loc_flag = FALSE [static]

Definition at line 78 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean macinfo_flag = FALSE [static]

Definition at line 77 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

char* optarg

Definition at line 115 of file getopt.c.

string program_name [static]

Definition at line 54 of file dwarfdump.c.

Definition at line 106 of file dwarfdump.c.

Referenced by print_pubnames().

boolean pubnames_flag = FALSE [static]

Definition at line 76 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean reloc_flag = FALSE [static]

Definition at line 81 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

Definition at line 107 of file dwarfdump.c.

boolean static_func_flag = FALSE [static]

Definition at line 82 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

boolean static_var_flag = FALSE [static]

Definition at line 83 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().

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 109 of file dwarfdump.c.

Referenced by print_die_and_children().

boolean type_flag = FALSE [static]

Definition at line 84 of file dwarfdump.c.

Definition at line 110 of file dwarfdump.c.

Referenced by get_attr_value().

Definition at line 67 of file dwarfdump.c.

Referenced by get_location_list(), and process_args().

int verbose = 0

Definition at line 87 of file dwarfdump.c.

boolean weakname_flag = FALSE [static]

Definition at line 85 of file dwarfdump.c.

Referenced by process_args(), and process_one_file().


Generated on Wed Apr 8 15:51:22 2009 for Open64 by  doxygen 1.5.6