1. 01 Feb, 2017 1 commit
  2. 29 May, 2013 1 commit
    • Nick Clifton's avatar
      * dwarf2.c (struct dwarf2_debug): Add fields for handling · 95e34fb4
      Nick Clifton authored
      	alternate debug info source.
      	(dwarf_debug_sections): Add entries for alternate .debug_str and
      	.debug_info sections.
      	(dwarf_debug_section_enum): Likewise.
      	(read_alt_indirect_string): New function.  Handles a
      	DW_FORM_GNU_strp_alt attribute.
      	(read_alt_indirect_ref): New function.  Handles a
      	DW_FORM_GNU_ref_alt attribute.
      	(read_attribute_value): Process DW_FORM_GNU_ref_alt and
      	(find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
      	(_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
      	* opncls.c (GNU_DEBUGALTLINK): Define.
      	(bfd_get_alt_debug_link_info): New function.
      	(separate_alt_debug_file_exists): New function.
      	(find_separate_debug_file): Add parameters for fetch and check
      	(bfd_follow_gnu_debugaltlink): New function.
      	* bfd-in2.h: Regenerate.
  3. 10 Jan, 2013 1 commit
    • H.J. Lu's avatar
      Remove trailing white spaces in bfd · 68ffbac6
      H.J. Lu authored
      	* aout0.c: Remove trailing white spaces.
      	* archive.c: Likewise.
      	* archures.c: Likewise.
      	* bfd-in.h: Likewise.
      	* bfd-in2.h: Likewise.
      	* coff-alpha.c: Likewise.
      	* coff-i860.c: Likewise.
      	* coff-mips.c: Likewise.
      	* coff-ppc.c: Likewise.
      	* coff-tic80.c: Likewise.
      	* coff-x86_64.c: Likewise.
      	* coff-z80.c: Likewise.
      	* coffcode.h: Likewise.
      	* coffgen.c: Likewise.
      	* cofflink.c: Likewise.
      	* compress.c: Likewise.
      	* corefile.c: Likewise.
      	* cpu-arm.c: Likewise.
      	* cpu-avr.c: Likewise.
      	* cpu-bfin.c: Likewise.
      	* cpu-cr16.c: Likewise.
      	* cpu-cr16c.c: Likewise.
      	* cpu-crx.c: Likewise.
      	* cpu-h8300.c: Likewise.
      	* cpu-i386.c: Likewise.
      	* cpu-lm32.c: Likewise.
      	* cpu-m68k.c: Likewise.
      	* cpu-moxie.c: Likewise.
      	* cpu-msp430.c: Likewise.
      	* cpu-sh.c: Likewise.
      	* cpu-xc16x.c: Likewise.
      	* dwarf2.c: Likewise.
      	* ecofflink.c: Likewise.
      	* ecoffswap.h: Likewise.
      	* elf-ifunc.c: Likewise.
      	* elf-m10300.c: Likewise.
      	* elf-vxworks.c: Likewise.
      	* elf32-avr.c: Likewise.
      	* elf32-avr.h: Likewise.
      	* elf32-cr16.c: Likewise.
      	* elf32-cr16c.c: Likewise.
      	* elf32-cris.c: Likewise.
      	* elf32-crx.c: Likewise.
      	* elf32-frv.c: Likewise.
      	* elf32-hppa.c: Likewise.
      	* elf32-i860.c: Likewise.
      	* elf32-ip2k.c: Likewise.
      	* elf32-iq2000.c: Likewise.
      	* elf32-m32c.c: Likewise.
      	* elf32-m68hc1x.c: Likewise.
      	* elf32-msp430.c: Likewise.
      	* elf32-mt.c: Likewise.
      	* elf32-ppc.c: Likewise.
      	* elf32-rl78.c: Likewise.
      	* elf32-s390.c: Likewise.
      	* elf32-score.h: Likewise.
      	* elf32-sh-symbian.c: Likewise.
      	* elf32-sh.c: Likewise.
      	* elf32-spu.c: Likewise.
      	* elf32-tic6x.c: Likewise.
      	* elf32-v850.c: Likewise.
      	* elf32-xc16x.c: Likewise.
      	* elf32-xtensa.c: Likewise.
      	* elf64-alpha.c: Likewise.
      	* elf64-hppa.c: Likewise.
      	* elf64-ppc.c: Likewise.
      	* elf64-s390.c: Likewise.
      	* elfcore.h: Likewise.
      	* elflink.c: Likewise.
      	* elfxx-mips.c: Likewise.
      	* elfxx-sparc.c: Likewise.
      	* elfxx-tilegx.c: Likewise.
      	* ieee.c: Likewise.
      	* libcoff.h: Likewise.
      	* libpei.h: Likewise.
      	* libxcoff.h: Likewise.
      	* linker.c: Likewise.
      	* mach-o-i386.c: Likewise.
      	* mach-o-target.c: Likewise.
      	* mach-o.c: Likewise.
      	* mach-o.h: Likewise.
      	* mmo.c: Likewise.
      	* opncls.c: Likewise.
      	* pdp11.c: Likewise.
      	* pe-x86_64.c: Likewise.
      	* peXXigen.c: Likewise.
      	* pef-traceback.h: Likewise.
      	* pei-x86_64.c: Likewise.
      	* peicode.h: Likewise.
      	* plugin.c: Likewise.
      	* reloc.c: Likewise.
      	* riscix.c: Likewise.
      	* section.c: Likewise.
      	* som.c: Likewise.
      	* syms.c: Likewise.
      	* tekhex.c: Likewise.
      	* ticoff.h: Likewise.
      	* vaxbsd.c: Likewise.
      	* xcofflink.c: Likewise.
      	* xtensa-isa.c: Likewise.
  4. 09 Nov, 2012 1 commit
    • H.J. Lu's avatar
      Remove trailing redundant `;' · 5bb3703f
      H.J. Lu authored
      	* aout-tic30.c (MY_final_link_callback): Remove trailing
      	redundant `;'.
      	* coff-h8500.c (extra_case): Likewise.
      	(bfd_coff_reloc16_get_value): Likewise.
      	* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Likewise.
      	* elf.c (_bfd_elf_slurp_version_tables): Likewise.
      	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
      	* elf32-v850.c (v850_elf_perform_relocation): Likewise.
      	* opncls.c (bfd_calc_gnu_debuglink_crc32): Likewise.
      	* plugin.c (add_symbols): Likewise.
      	* reloc.c (bfd_check_overflow): Likewise.
      	* vms-lib.c (_bfd_vms_lib_archive_p): Likewise.
      	* coffgrok.c (coff_grok): Remove trailing redundant `;'.
      	* resrc.c (open_input_stream): Likewise.
      	* config/atof-ieee.c (gen_to_words): Remove trailing redundant
      	* config/atof-vax.c (flonum_gen2vax): Likewise.
      	* config/tc-d10v.c (write_2_short): Likewise.
      	* config/tc-i386-intel.c (i386_intel_simplify): Likewise.
      	* config/tc-s390.c (tc_s390_force_relocation): Likewise.
      	* config/tc-v850.c (md_parse_option): Likewise.
      	* config/tc-xtensa.c (find_address_of_next_align_frag): Likewise.
      	* dwarf2dbg.c (out_header): Likewise.
      	* symbols.c (dollar_label_name): Likewise.
      	(fb_label_name): Likewise.
      	* testplug.c (record_add_file): Remove trailing redundant `;'.
      	* aarch64-opc.h (gen_mask): Remove trailing redundant `;'.
      	* ia64-gen.c (fetch_insn_class): Likewise.
  5. 01 Aug, 2012 1 commit
  6. 26 Jul, 2012 1 commit
  7. 24 Jul, 2012 1 commit
    • Cary Coutant's avatar
      2012-07-24 Teresa Johnson <tejohnson@google.com> · 9b8d1a36
      Cary Coutant authored
      	* bfd.c (bfd_find_nearest_line_discriminator): New macro.
      	* coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
      	* coff64-rs6000.c: Likewise.
      	* dwarf2.c (struct line_info): Add discriminator field.
      	(add_line_info): Fill in new discriminator field.
      	(decode_line_info): Record discriminator information instead
              of ignoring it.
      	(lookup_address_in_line_info_table): Return discriminator field if
      	(comp_unit_find_nearest_line): Add discriminator argument.
      	(find_line): Likewise.
      	(_bfd_dwarf2_find_nearest_line): Likewise.
      	(_bfd_dwarf2_find_line): Likewise.
      	* elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
              (_bfd_elf_find_line_discriminator): Likewise.
              (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
      	* elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
              that invokes _bfd_elf_find_nearest_line_discriminator with correct
      	(_bfd_elf_find_nearest_line_discriminator): New.
      	(_bfd_elf_find_line): Change to a wrapper
              that invokes _bfd_elf_find_line_discriminator with correct
      	(_bfd_elf_find_line_discriminator): New.
      	* coffgen.c (coff_find_nearest_line_with_names): Handle
              new discriminator argument.
      	* elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
      	* elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
      	* elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
      	* mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
      	* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
              (_bfd_dwarf2_find_line): Likewise.
              (_bfd_generic_find_nearest_line_discriminator): New.
      	* libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Likewise.
      	* targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
              _bfd_find_nearest_line_discriminator with
              (bfd_target): Add _bfd_find_nearest_line_discriminator.
      	* addr2line.c (find_address_in_section): Invoke
              bfd_find_nearest_line_discriminator to get the discriminator.
      	(find_offset_in_section): Likewise.
      	(translate_addresses): Print discriminator if it is non-zero.
      	* objdump.c (show_line): Invoke
              bfd_find_nearest_line_discriminator to get the discriminator,
              and keep track of prev_discriminator. Print discriminator
              if it is non-zero.
      	(disassemble_data): Initialize prev_discriminator.
      	(dump_reloc_set): Invoke bfd_find_nearest_line_discriminator
              to get the discriminator, and keep track of last_discriminator.
              Print discriminator if it is non-zero.
  8. 16 May, 2012 1 commit
    • Alan Modra's avatar
      * dwarf2.c: Formatting. · a2a50954
      Alan Modra authored
      	(arange_add): Pass in unit rather than bfd.  Update callers.
      	Ignore empty ranges.  Don't ask for cleared memory.
      	(parse_comp_unit): Only set unit->base_address if processing
      	(find_debug_info): Optimise section lookup.
      	(place_sections): Use bfd_alloc for stash->adjusted_sections.
      	(find_line): Match previously parsed comp unit addresses as we
      	do for newly parsed comp units.
  9. 03 May, 2012 1 commit
  10. 27 Apr, 2012 1 commit
  11. 04 Jan, 2012 1 commit
    • Tristan Gingold's avatar
      2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> · 2ca7691a
      Tristan Gingold authored
      	* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
      	which reads DWARF2 and stores in stash from find_line.
      	(find_line) Call _bfd_dwarf2_slurp_debug_info.
      	* libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
      	* libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
      	* mach-o.c (dsym_subdir): The name of subdir where debug
      	information may be stored.
      	(bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
      	type is UUID.
      	(bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
      	corresponding to the executable.
      	(bfd_mach_o_find_dsym): New. Find a debug information BFD in the
      	specified binary file.
      	(bfd_mach_o_follow_dsym): New. Find a debug information BFD for
      	the original BFD.
      	(bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
      	executables, dylibs, and bundles.
      	(bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
      	* mach-o.h (dsym_bfd): The BFD of the dSYM file.
  12. 13 Dec, 2011 1 commit
    • Tristan Gingold's avatar
      2011-12-13 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> · d9071b0c
      Tristan Gingold authored
      	* dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an
      	argument like other functions to support formats other than ELF.
      	* elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h.
      	* elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info
      	in tdata as a parameter.
      	* libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from
      	* libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate.
      	* mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the
      	fallback macro.
      	(bfd_mach_o_find_nearest_line): Likewise.
      	* mach-o.c (bfd_mach_o_find_nearest_line): Add the definition
      	which calls _bfd_dwarf2_find_nearest_line.
      	(bfd_mach_o_close_and_cleanup): Likewise.
      	* mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info.
      	(bfd_mach_o_find_nearest_line): Add declaration.
      	(bfd_mach_o_close_and_cleanup): Add declaration.
  13. 30 Sep, 2011 1 commit
    • Tristan Gingold's avatar
      2011-09-30 Tristan Gingold <gingold@adacore.com> · fc28f9aa
      Tristan Gingold authored
      	* dwarf2.c (struct dwarf2_debug): Add field debug_sections.
      	(read_section): Add sec argument. Adjust the code to get section
      	names from it.
      	(read_indirect_string): Adjust call to read_section.
      	(read_abbrevs): Ditto.
      	(decode_line_info): Ditto.
      	(read_debug_ranges): Ditto.
      	(find_debug_info): Add debug_sections parameter.  Use it instead
      	the above macros.
      	(place_sections): Get section names from stash.
      	(find_line): Add debug_sections argument.  Initialize
      	debug_sections field of stash from it.
      	Adjust calls to find_debug_info.
      	(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
      	Adjust call to find_line.
      	(_bfd_dwarf2_find_line): Adjust call to find_line.
      	* libcoff-in.h (struct dwarf_debug_section): New declaration.
      	(coff_find_nearest_line_with_names): Likewise.
      	* libcoff.h: Regenerate.
      	* libbfd-in.h (struct dwarf_debug_section): Move declaration.
      	(dwarf_debug_sections): Likewise.
      	(_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
      	* libbfd.h: Regenerate.
      	* elf.c (_bfd_elf_find_nearest_line): Adjust call to
      	* elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
      	* elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
      	* elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
      	* coffgen.c (coff_find_nearest_line_with_names): New function.
      	(coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
      	* coff-rs6000.c (xcoff_debug_sections): New constant.
      	(xcoff_find_nearest_line): New function.
      	(rs6000coff_vec): Use xcoff_find_nearest_line.
      	(pmac_xcoff_vec): Ditto.
  14. 26 Jul, 2011 1 commit
    • Jakub Jelinek's avatar
      * dwarf2.c (dwarf_debug_sections): Add .debug_macro · 4ccf1e31
      Jakub Jelinek authored
      	and .zdebug_macro entry.
      	(dwarf_debug_section_enum): Add debug_macro.
      	* NEWS: Mention .debug_macro support.
      	* dwarf.c (read_and_display_attr_value): Don't print a tab
      	if attribute is 0.
      	(get_AT_name): Handle DW_AT_GNU_macros.
      	(get_line_filename_and_dirname, display_debug_macro): New
      	(debug_displays): Add an entry for .debug_macro and .zdebug_macro.
      	* readelf.c (process_section_headers): With do_debug_macinfo
      	handle also .debug_macro sections.
      	* dwarf.h (dwarf_section_display_enum): Add macro.
  15. 28 Apr, 2011 1 commit
  16. 07 Apr, 2011 1 commit
  17. 03 Mar, 2011 1 commit
  18. 29 Oct, 2010 1 commit
    • H.J. Lu's avatar
      Add compressed debug section support to binutils and ld. · 4a114e3e
      H.J. Lu authored
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	    Cary Coutant  <ccoutant@google.com>
      	* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
      	and BFD_DECOMPRESS.
      	* bfd.c (BFD_COMPRESS): New.
      	(BFD_DECOMPRESS): Likewise.
      	(BFD_FLAGS_SAVED): Likewise.
      	(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
      	* compress.c (bfd_uncompress_section_contents): Removed.
      	(get_uncompressed_size): New.
      	(decompress_contents): Likewise.
      	(bfd_compress_section_contents): Likewise.
      	(bfd_get_full_section_contents): Likewise.
      	(bfd_is_section_compressed): Likewise.
      	(bfd_init_section_decompress_status): Likewise.
      	(bfd_init_section_compress_status): Likewise.
      	* dwarf2.c (dwarf_debug_sections): New.
      	(dwarf_debug_section_enum): Likewise.
      	(read_section): Remove section_name and compressed_section_name.
      	Add dwarf_debug_section_enum.  Try compressed debug section.
      	(read_indirect_string): Updated.
      	(read_abbrevs): Likewise.
      	(decode_line_info): Likewise.
      	(read_debug_ranges): Likewise.
      	(find_line): Updated.
      	* ecoff.c (bfd_debug_section): Add compress_status and
      	* elf.c (_bfd_elf_make_section_from_shdr): Call
      	bfd_is_section_compressed to check if a DWARF debug section is
      	compressed.  Call bfd_init_section_compress_status or
      	bfd_init_section_decompress_status if needed.
      	* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
      	with bfd_get_full_section_contents.
      	* merge.c (_bfd_add_merge_section): Likewise.
      	* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
      	* simple.c (bfd_simple_get_relocated_section_contents): Likewise.
      	* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
      	(TARGET_LITTLE_SYM): Likewise.
      	* libbfd-in.h (dwarf_debug_section): New.
      	(dwarf_debug_sections): Likewise.
      	* libbfd.c (_bfd_generic_get_section_contents): Issue an error
      	when getting contents on compressed/decompressed section.
      	* section.c (COMPRESS_SECTION_NONE): New.
      	(COMPRESS_SECTION_DONE): Likewise.
      	(BFD_FAKE_SECTION): Add compress_status and compressed_size.
      	(bfd_malloc_and_get_section): Replace bfd_get_section_contents
      	with bfd_get_full_section_contents.
      	* bfd-in2.h: Regenerated.
      	* libbfd.h: Likewise.
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* addr2line.c (process_file): Set BFD_DECOMPRESS.
      	* objcopy.c (do_debug_sections): New.
      	(copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
      	(copy_usage): Add --compress-debug-sections and
      	(copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
      	(copy_section): Replace bfd_get_section_contents with
      	(copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
      	OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
      	rename DWARF debug sections.
      	* objdump.c (load_specific_debug_section): Replace
      	bfd_get_section_contents with bfd_get_full_section_contents.
      	Remove bfd_uncompress_section_contents.
      	(dump_section): Replace bfd_get_section_contents with
      	(display_file): Set BFD_DECOMPRESS if needed.
      	* readelf.c (uncompress_section_contents): Set buffer to NULL
      	to indiate decompression failure.
      	(load_specific_debug_section): Always call
      	* doc/binutils.texi: Document --compress-debug-sections and
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* binutils-all/compress.exp: New.
      	* binutils-all/dw2-1.S: Likewise.
      	* binutils-all/dw2-2.S: Likewise.
      	* binutils-all/libdw2-compressed.out: Likewise.
      	* binutils-all/libdw2.out: Likewise.
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* write.c (compress_debug): Optimize section flags check.
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* elf/dwarf2-1.s: Replace .zdebug_abbrev section with
      	.debug_abbrev section.
      	* elf/dwarf2-2.3: Likewise.
      	* elf/dwarf2-1.d: Pass --compress-debug-sections to assembler.
      	* elf/dwarf2-2.d: Likewise.
      	* gas/i386/i386.exp: Remove xfail on dw2-compress-2 and
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
      	bfd_openr returns.
      	* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
      	* scripttempl/elf.sc: Include compressed DWARF debug sections.
      2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
      	* ld-elf/compress.exp: New.
      	* ld-elf/compress1.s: Likewise.
      	* ld-elf/compress1a.d: Likewise.
      	* ld-elf/compress1b.d: Likewise.
      	* ld-elf/compress1c.d: Likewise.
  19. 14 Jul, 2010 1 commit
    • Cary Coutant's avatar
      PR ld/11817 · 8c2ccebd
      Cary Coutant authored
      	* dwarf2.c (read_section): Revert patch for compressed debug sections.
      	(find_line): Likewise.
      	(read_and_uncompress_section): Remove.
  20. 06 Jul, 2010 1 commit
    • H.J. Lu's avatar
      Initialize prev_line. · f5296ddc
      H.J. Lu authored
      2010-07-06  H.J. Lu  <hongjiu.lu@intel.com>
      	* dwarf2.c (add_line_info): Initialize prev_line.
  21. 03 Jul, 2010 1 commit
    • Cary Coutant's avatar
      bfd/ChangeLog: · 0acf065b
      Cary Coutant authored
      	* compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
      	* dwarf2.c (read_and_uncompress_section): New function.
      	(read_section): Call it.
      	(find_line): Likewise.
      	* objdump.c (load_specific_debug_section): Decompress section contents
      	before applying relocations.
      	* readelf.c (load_specific_debug_section): Update section size after
      	* Makefile.am: Add compress-debug.c and compress-debug.h.
      	* Makefile.in: Regenerate.
      	* config.in: Add HAVE_ZLIB_H.
      	* configure.in: Check for zlib.h.
      	* configure: Regenerate.
      	* as.c (parse_args): Add --compress-debug-sections and
      	* as.h (flag_compress_debug): New variable.
      	* compress-debug.c: New file.
      	* compress-debug.h: New file.
      	* write.c: Include compress-debug.h.
      	(compress_frag): New function.
      	(compress_debug): New function.
      	(write_object_file): Compress debug sections if requested.
  22. 20 Apr, 2010 1 commit
  23. 05 Apr, 2010 1 commit
    • Jakub Jelinek's avatar
      include/ · a233b20c
      Jakub Jelinek authored
      	* dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn
      	* dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
      	(struct line_info): Add op_index field, change end_sequence type to
      	unsigned char.
      	(new_line_sorts_after): For the same address compare op_index.
      	(add_line_info): Add op_index argument, store it into the structure.
      	(decode_line_info): Complain about unknown versions of .debug_line.
      	Initialize maximum_ops_per_insn.  Add op_index state register and
      	track it.
      	* dwarf.c (struct State_Machine_Registers): Add op_index field,
      	change end_sequence type to unsigned char.
      	(reset_state_machine): Clear op_index.
      	(process_extended_line_op): For DW_LNE_set_address clear op_index.
      	(display_debug_lines_raw): Initialize li_max_ops_per_insn.
      	Track op_index state machine register and print it if
      	li_max_ops_per_insn is != 1.
      	(display_debug_lines_decoded): Likewise.
  24. 01 Apr, 2010 1 commit
    • Jakub Jelinek's avatar
      * dwarf2.c (read_attribute_value): Handle CU version 4 · c07cbdd7
      Jakub Jelinek authored
      	for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
      	and DW_FORM_flag_present.  For unknown form value return NULL.
      	(scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
      	like DW_FORM_block.
      	(parse_comp_unit): Allow CU version 4.
  25. 04 Mar, 2010 1 commit
    • Alan Modra's avatar
      PR 11302 · 8af6b354
      Alan Modra authored
      	* dwarf2.c (read_abbrevs): Return NULL on alloc failures.
      	(read_attribute_value, decode_line_info): Likewise.
      	(add_line_info, read_rangelist): Return FALSE on alloc failures.
      	(arange_add, sort_line_sequences): Likewise.
      	(find_abstract_instance_name): Handle failures from called funcs.
      	(scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
      	(find_line): Realloc to a temp, and handle alloc fail.
  26. 19 Jan, 2010 1 commit
  27. 11 Jan, 2010 2 commits
    • Alan Modra's avatar
      update copyright date · 94df17f2
      Alan Modra authored
    • Alan Modra's avatar
      PR 6832 · a358ecb8
      Alan Modra authored
      	* dwarf2.c (struct comp_unit): Add sec_info_ptr.
      	(find_abstract_instance_name): Use it.
      	(parse_comp_unit): Set it.
  28. 04 Jan, 2010 1 commit
  29. 31 Dec, 2009 1 commit
    • Nick Clifton's avatar
      * dwarf2.c (struct line_sequence): New struct. · 0ee19663
      Nick Clifton authored
              (struct line_info_table): Add num_sequences, remove last_line,
              add sequences.
              (add_line_info): Add new sequences as necessary.
              (compare_sequences): New function.
              (sort_line_sequences): New function.
              (decode_line_info): Initialize new fields in line table.
              Call sort_line_sequences.
              (lookup_address_in_line_info_table): Binary search for proper
  30. 11 Dec, 2009 1 commit
  31. 24 Sep, 2009 1 commit
    • Alan Modra's avatar
      PR binutils/10654 · 107601c8
      Alan Modra authored
      	* dwarf2.c (lookup_address_in_line_info_table): Remove workaround
      	for invalid location lists generated by gcc-2.95 and Intel 6.0 C++.
      	Remove "function" parm, adjust caller.
  32. 09 Sep, 2009 1 commit
    • Nick Clifton's avatar
      Updated soruces in bfd/* to compile cleanly with -Wc++-compat. · a50b1753
      Nick Clifton authored
              * bfd/aoutx.h: Add casts.
              * bfd/archive.c: Add casts.
              * bfd/archive64.c: Add casts.
              * bfd/archures.c: Add casts.
              * bfd/bfd-in2.h: Regenerated.
              * bfd/bfd.c: Add casts. (enum bfd_direction): Move out to top
              * bfd/bfdio.c: Add casts.
              * bfd/binary.c: Add casts.
              * bfd/cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
              parameter to use enum value instead of int.
              * bfd/coffcode.h: Add casts.
              * bfd/coffgen.c: Add casts.
              * bfd/cofflink.c: Add casts.
              * bfd/compress.c: Add casts.
              * bfd/dwarf1.c: Add casts.
              * bfd/dwarf2.c: Add casts. (struct dwarf2_debug): Rename member
              bfd to bfd_ptr. Update code to use new name.
              * bfd/elf-attrs.c: Add casts.
              * bfd/elf-bfd.h (elf_link_virtual_table_entry): Gives name to
              anonymous struct. (union gotplt_union, struct
              elf_link_virtual_table_entry): Move to top level.
              * bfd/elf-eh-frame.c: Add casts.
              * bfd/elf-strtab.c: Add casts.
              * bfd/elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
              argument name from typename to type_name.
              * bfd/elf32-i386.c: Add casts.
              * bfd/elf64-x86-64.c: Add casts.
              * bfd/elfcode.h: Add casts.
              * bfd/elfcore.h: Add casts.
              * bfd/elflink.c: Add casts.
              * bfd/format.c: Add casts.
              * bfd/hash.c: Add casts.
              * bfd/ihex.c: Add casts.
              * bfd/libaout.h (enum aout_subformat, enum aout_magic): Move to
              top level.
              * bfd/libbfd.c: Add casts.
              * bfd/linker.c: Add casts.
              * bfd/merge.c: Add casts.
              * bfd/opncls.c: Add casts.
              * bfd/peXXigen.c: Add casts.
              * bfd/peicode.h: Add casts.
              * bfd/reloc.c: Add casts.
              * bfd/section.c: Add casts.
              * bfd/simple.c: Add casts.
              * bfd/srec.c: Add casts.
              * bfd/stabs.c: Add casts.
              * bfd/syms.c: Add casts.
              * bfd/targets.c: Add casts.
              * bfd/tekhex.c: Add casts.
              * bfd/verilog.c: Add casts.
              * include/bfdlink.h (struct bfd_link_hash_common_entry): Move to
              top level.
  33. 10 Jul, 2009 1 commit
    • Tom Tromey's avatar
      bfd · fa8f86ff
      Tom Tromey authored
      	* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
      	(elf-eh-frame.lo): Likewise.
      	(elf32-bfin.lo): Likewise.
      	(elf32-frv.lo): Likewise.
      	(elf32-xc16x.lo): Likewise.
      	* Makefile.in: Rebuild.
      	* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
      	* elf-eh-frame.c: Likewise.
      	* elf32-bfin.c: Likewise.
      	* elf32-frv.c: Likewise.
      	* elf32-xc16x.c: Likewise.
      	* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
      	* Makefile.in: Rebuild.
      	* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
      	* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
      	(DEPTC_alpha_elf): Likewise.
      	(DEPTC_alpha_evax): Likewise.
      	(DEPTC_arm_elf): Likewise.
      	(DEPTC_hppa_elf): Likewise.
      	(DEPTC_i386_aout): Likewise.
      	(DEPTC_i386_coff): Likewise.
      	(DEPTC_i386_elf): Likewise.
      	(DEPTC_m68k_aout): Likewise.
      	(DEPTC_m68k_coff): Likewise.
      	(DEPTC_m68k_elf): Likewise.
      	(DEPTC_mips_coff): Likewise.
      	(DEPTC_mips_ecoff): Likewise.
      	(DEPTC_mips_elf): Likewise.
      	(DEPTC_ppc_coff): Likewise.
      	(DEPTC_ppc_elf): Likewise.
      	(DEPTC_s390_elf): Likewise.
      	(DEPTC_sh_coff): Likewise.
      	(DEPTC_sh_elf): Likewise.
      	(DEPTC_sh64_elf): Likewise.
      	(DEPTC_sparc_aout): Likewise.
      	(DEPTC_sparc_coff): Likewise.
      	(DEPTC_sparc_elf): Likewise.
      	(as.o): Likewise.
      	(dwarf2dbg.o): Likewise.
      	(dw2gencfi.o): Likewise.
      	(ehopt.o): Likewise.
      	(read.o): Likewise.
      	* Makefile.in: Rebuild.
      	* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
      	* dwarf2dbg.c: Likewise.
      	* ehopt.c: Likewise.
      	* dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
      	* dwarf2expr.c: Likewise.
      	* dwarf2loc.c: Likewise.
      	* dwarf2read.c: Likewise.
      	* sh-tdep.c: Likewise.
      	* xtensa-tdep.c: Likewise.
      	* dwarf2.h: New file, moved from elf/.
      	* dwarf2.h: Move to `..'.
  34. 03 Jul, 2009 1 commit
  35. 16 Mar, 2009 1 commit
  36. 12 Mar, 2009 1 commit
  37. 30 Jan, 2009 1 commit
  38. 22 Jan, 2009 1 commit
    • Alan Modra's avatar
      PR 6832 · be04437d
      Alan Modra authored
      	* dwarf2.c (find_line): Don't update stash->sec_info_ptr until
      	after comp_unit_find_line call.
  39. 18 Nov, 2008 1 commit
    • Nick Clifton's avatar
      * dwarf2.c (read_section): Fix formatting. · dc80fd5c
      Nick Clifton authored
              (read_n_bytes): Remove unhelpful comment.
              (read_indirect_string): Pass symbol table to read_section in case
              the .debug_str section needs relocating.
              PR 7037
              * elf32-cr16.c (cr16_elf_howto_table): Zero the src_mask field of
              the reloc descriptions.