2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 30 Sep 2005 14:55:05 +0000 (14:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 30 Sep 2005 14:55:05 +0000 (14:55 +0000)
commit19e6b90ed846a3d7bbbd43ecee86df86a55a59a6
treef2ab34d0006e3d2d5ba56fd277f7867442183fe5
parent1007acb31dab630af1c33753224c009931bff6f5
2005-09-30  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (CFILES): Add dwarf.c.
(readelf_SOURCES): Likewise.
* Makefile.in: Regenerated.

* dwarf.c: New file.
* dwarf.h. Likewise.

* readelf.c: Include "dwarf.h" instead of "bfd.h".
(do_debug_info): Remove the static definition.
(do_debug_abbrevs): Likewise.
(do_debug_lines): Likewise.
(do_debug_pubnames): Likewise.
(do_debug_aranges): Likewise.
(do_debug_ranges): Likewise.
(do_debug_frames): Likewise.
(do_debug_frames_interp): Likewise.
(do_debug_macinfo): Likewise.
(do_debug_str): Likewise.
(do_debug_loc): Likewise.
(is_relocatable): Likewise.
(have_frame_base): Likewise.
(need_base_address): Likewise.
(eh_addr_size): Likewise.
(error): Likewise.
(warn): Likewise.
(cmalloc): Likewise.
(xcmalloc): Likewise.
(xcrealloc): Likewise.
(dwarf_section): Removed.
(byte_get_little_endian): Likewise.
(byte_get_signed): Likewise.
(byte_get_big_endian): Likewise.
(read_leb128): Likewise.
(State_Machine_Registers): Likewise.
(state_machine_regs): Likewise.
(reset_state_machine): Likewise.
(process_extended_line_op): Likewise.
(debug_str_section): Likewise.
(fetch_indirect_string): Likewise.
(debug_abbrev_section): Likewise.
(abbrev_attr): Likewise.
(first_abbrev): Likewise.
(last_abbrev): Likewise.
(free_abbrevs): Likewise.
(add_abbrev_attr): Likewise.
(process_abbrev_section): Likewise.
(get_TAG_name): Likewise.
(get_FORM_name): Likewise.
(display_block): Likewise.
(decode_location_expression): Likewise.
(debug_info): Likewise.
(debug_information): Likewise.
(num_debug_info_entries): Likewise.
(last_pointer_size): Likewise.
(warned_about_missing_comp_units): Likewise.
(read_and_display_attr_value): Likewise.
(get_AT_name): Likewise.
(read_and_display_attr): Likewise.
(process_debug_info): Likewise.
(get_pointer_size_and_offset_of_comp_unit): Likewise.
(get_debug_info): Likewise.
(display_debug_lines): Likewise.
(display_debug_pubnames): Likewise.
(display_debug_macinfo): Likewise.
(display_debug_abbrev): Likewise.
(display_debug_loc): Likewise.
(display_debug_str): Likewise.
(display_debug_aranges): Likewise.
(display_debug_ranges): Likewise.
(Frame_Chunk): Likewise.
(DW_CFA_unreferenced): Likewise.
(frame_need_space): Likewise.
(frame_display_row): Likewise.
(size_of_encoded_value): Likewise.
(get_encoded_value): Likewise.
(GET): Likewise.
(LEB): Likewise.
(SLEB): Likewise.
(display_debug_frames): Likewise.
(display_debug_not_supported): Likewise.
(debug_displays): Likewise.
(load_debug_section): Updated.
(free_debug_section): Likewise.
(display_debug_section): Likewise.
(process_object): Call free_debug_memory to free debug memory.
binutils/Makefile.am
binutils/Makefile.in
binutils/dwarf.c [new file with mode: 0644]
binutils/dwarf.h [new file with mode: 0644]
binutils/readelf.c