1. 05 Nov, 2010 18 commits
    • Michael Eager's avatar
      Fix typo in microblaze license. · aa291e2d
      Michael Eager authored
      aa291e2d
    • Joseph Myers's avatar
      bfd: · 0547accf
      Joseph Myers authored
      	* elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
      	(elf32_tic6x_merge_attributes): Use
      	_bfd_elf_merge_unknown_attribute_low and
      	_bfd_elf_merge_unknown_attribute_list.
      	(elf_backend_obj_attrs_handle_unknown): Define.
      
      ld/testsuite:
      	* ld-tic6x/attr-unknown-1.d, ld-tic6x/attr-unknown-1000-1.s,
      	ld-tic6x/attr-unknown-1000-2.s, ld-tic6x/attr-unknown-1024-1.s,
      	ld-tic6x/attr-unknown-2.d, ld-tic6x/attr-unknown-3.d,
      	ld-tic6x/attr-unknown-4.d, ld-tic6x/attr-unknown-5.d,
      	ld-tic6x/attr-unknown-54-1.s, ld-tic6x/attr-unknown-55-a.s,
      	ld-tic6x/attr-unknown-6.d, ld-tic6x/attr-unknown-7.d,
      	ld-tic6x/attr-unknown-71-a.s, ld-tic6x/attr-unknown-71-b.s: New
      	tests.
      0547accf
    • Joseph Myers's avatar
      * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low, · e1a6b263
      Joseph Myers authored
      	_bfd_elf_merge_unknown_attribute_list): Correct test for matching
      	string attributes.
      e1a6b263
    • Alan Modra's avatar
      missed from last commit · 7603b4ae
      Alan Modra authored
      7603b4ae
    • Nick Clifton's avatar
      * config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG -> · d75d1c9f
      Nick Clifton authored
      	MAX_REG.
      	(getprocregp_image): Likewise.
      d75d1c9f
    • Alan Modra's avatar
      * bin2c.c: Remove internationalization and version report. · 9b585a95
      Alan Modra authored
      	* Makefile.am: Update bin2c rule.
      	* Makefile.in: Regenerate.
      9b585a95
    • Tristan Gingold's avatar
      bfd/ · 2ee0aedf
      Tristan Gingold authored
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/bfd.pot: Regenerate
      
      binutils/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/binutils.pot: Regenerate
      
      gas/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/gas.pot: Regenerate
      	* po/POTFILES.in: Regenerate
      
      gprof/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/gprof.pot: Regenerate
      
      ld/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/ld.pot: Regenerate
      	* po/POTFILES.in: Regenerate
      
      opcodes/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* po/opcodes.pot: Regenerate
      2ee0aedf
    • Tristan Gingold's avatar
      bfd/ · 374817d5
      Tristan Gingold authored
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* configure.in: Bump version to 2.21.51
      	* configure: Regenerate.
      374817d5
    • Tristan Gingold's avatar
      binutils/ · 44f45767
      Tristan Gingold authored
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* NEWS: Add marker for 2.21.
      
      gas/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* NEWS: Add marker for 2.21.
      
      ld/
      2010-11-05  Tristan Gingold  <gingold@adacore.com>
      
      	* NEWS: Add marker for 2.21.
      44f45767
    • Dave Korn's avatar
      * ld-plugin/plugin.exp (testobjfiles): Dont use HOSTING_CRT0. · 36fe835f
      Dave Korn authored
      	(testobjfiles_notext): Likewise.
      	(libs): Don't use HOSTING_LIBS; fill with default symbol defs instead.
      	* lib/ld-lib.exp (ld_simple_link_defsyms): Add cygming clause.
      36fe835f
    • Dave Korn's avatar
      * plugin.h (plugin_active_plugins_p): New prototype. · d44ad554
      Dave Korn authored
      	(is_ir_dummy_bfd): Delete prototype.
      	* plugin.c: Fix formatting issues.
      	(is_ir_dummy_bfd): Make static.
      	(plugin_active_plugins_p): New function.
      	* ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
      	are loaded.  Always close file descriptor after claim handler returns.
      	* ldmain.c (add_archive_element): Likewise.
      d44ad554
    • Alan Modra's avatar
      * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD. · f4eaaf7f
      Alan Modra authored
      	(map_input_to_output_sections): Likewise.
      	(lang_size_sections_1): Likewise.
      	(IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
      	(lang_check_section_addresses): Likewise.
      f4eaaf7f
    • Dave Korn's avatar
    • Dave Korn's avatar
      * config/obj-coff.c (weak_altname2name): Don't infer from the presence · b851162a
      Dave Korn authored
      	of a period that the symbol has been already uniquify-d.
      	(weak_uniquify): Don't worry that the symbol might have been already
      	uniquify-d.
      b851162a
    • Alan Modra's avatar
      * ld-elfvers/vers32c.dsym, * ld-elfvers/vers32c.ver: Delete. · 677ba447
      Alan Modra authored
      	* ld-elfvers/vers32d.ver: Delete.
      	* ld-elfvers/vers.exp: Don't run them.
      677ba447
    • Jan Kratochvil's avatar
      gdb/ · 075ff26d
      Jan Kratochvil authored
      	Fix configure --enable-plugins --without-python.
      	* configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
      	* configure: Regenerate.
      075ff26d
    • Jan Kratochvil's avatar
      gdb/ · 14ad3217
      Jan Kratochvil authored
      	* solib.c (solib_read_symbols): Call exception_fprintf even without
      	FROM_TTY.  Print also so->so_name.
      14ad3217
    • gdbadmin's avatar
      *** empty log message *** · 0bd0fa1e
      gdbadmin authored
      0bd0fa1e
  2. 04 Nov, 2010 15 commits
    • Richard Henderson's avatar
      Use spawnve on cygwin. · 9c55e064
      Richard Henderson authored
      	* configure.ac (AC_CHECK_HEADERS): Add process.h.
      	(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
      	(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
      	* configure, config.in: Rebuild.
      	* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
      	[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
      9c55e064
    • Alan Modra's avatar
      daily update · f445451a
      Alan Modra authored
      f445451a
    • Sami Wagiaalla's avatar
      Fix derived class overload problem. · a9d5ef47
      Sami Wagiaalla authored
      2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
      
      	* gdbtypes.h (struct rank): Created subrank.
      	* gdbtypes.c: Initialized subrank for all
      	'BADNESS' constants.
      	(distance_to_ancestor): New function.
      	(is_ancestor): Use distance_to_ancestor.
      	(is_public_ancestor): Ditto.
      	(sum_ranks): Handle subrank.
      	(compare_ranks): Ditto.
      	(rank_one_type): Subrank base conversions.
      
      2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
      
      	* gdb.cp/overload.exp: Added test for inheritance
      	overload.
      	* gdb.cp/overload.cc: Ditto.
      	* gdb.cp/oranking.exp: Removed releveant kfails.
      a9d5ef47
    • Sami Wagiaalla's avatar
      Create and use struct rank. · 6403aeea
      Sami Wagiaalla authored
      2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
      
      	* gdbtypes.h: Create struct rank.
      	Convert all 'BADNESS' macros to const struct rank declarations.
      	(sum_ranks): New function.
      	(compare_ranks): New function.
      	* valops.c (find_oload_champ): Updated.
      	(classify_oload_match): Use compare_ranks.
      	Improved comments.
      	(compare_parameters): Use compare_ranks.
      	* gdbtypes.c: Initialize 'BADNESS' constants.
      	(sum_ranks): New function.
      	(compare_ranks): New function.
      	(compare_badness): Use compare_ranks.
      	(rank_function): Use global constants instead of literals.
      	(rank_one_type): Ditto.
      	Return struct rank.
      	Use sum_ranks.
      6403aeea
    • Doug Evans's avatar
      * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment. · 23fa7f66
      Doug Evans authored
      	(find_pretty_printer): Fix comments.
      23fa7f66
    • Jan Kratochvil's avatar
      gdb/testsuite/ · 03eb1c79
      Jan Kratochvil authored
      	* gdb.ada/null_array.exp (print my_table): Call get_compiler_info and
      	check test_compiler_info.
      03eb1c79
    • Maciej W. Rozycki's avatar
      PR ld/10144 · 21d790b9
      Maciej W. Rozycki authored
      	* elfxx-mips.c (_bfd_mips_elf_check_relocs)
      	[R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
      	SEC_DEBUGGING sections.
      21d790b9
    • Tristan Gingold's avatar
      2010-11-04 Tristan Gingold <gingold@adacore.com> · dd7f9124
      Tristan Gingold authored
      	* vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
      	Use bfd_zmalloc instead of bfd_malloc.  Fix comment.
      dd7f9124
    • Kai Tietz's avatar
      bfd/ · 802d4822
      Kai Tietz authored
      2010-11-04  Kai Tietz  <kai.tietz@onevision.com>
      
              * coffcode.h (GNU_LINKONCE_WT): New.
              (sec_to_styp_flags): Add handling of new debug
              section.
              (styp_to_sec_flags): Likewise.
      
      ld/
      010-11-04  Kai Tietz  <kai.tietz@onevision.com>
      
             * scripttempl/pe.sc (.debug_types): New.
             * scripttempl/pep.sc: Likewise.
      802d4822
    • Tristan Gingold's avatar
      2010-11-04 Tristan Gingold <gingold@adacore.com> · 52e00d50
      Tristan Gingold authored
      	* makefile.vms (CFLAGS): Make badalias warnings informational.
      	* vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
      52e00d50
    • Alan Modra's avatar
    • Joseph Myers's avatar
      * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low, · e8b36cd1
      Joseph Myers authored
      	_bfd_elf_merge_unknown_attribute_list): New.
      	* elf-bfd.h (struct elf_backend_data): Add
      	obj_attrs_handle_unknown.
      	(_bfd_elf_merge_unknown_attribute_low,
      	_bfd_elf_merge_unknown_attribute_list): Declare.
      	* elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New.  Split
      	out from elf32_arm_merge_eabi_attributes.
      	(elf32_arm_merge_eabi_attributes): Use
      	_bfd_elf_merge_unknown_attribute_low and
      	_bfd_elf_merge_unknown_attribute_list.
      	(elf_backend_obj_attrs_handle_unknown): Define.
      	* elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
      	(elfNN_bed): Update initializer.
      e8b36cd1
    • Hui Zhu's avatar
      2010-11-04 Hui Zhu <teawater@gmail.com> · 608bcef2
      Hui Zhu authored
      	* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
      608bcef2
    • Alan Modra's avatar
      * config/tc-ppc.c (nop_limit): New var. · cef4f754
      Alan Modra authored
      	(OPTION_NOPS): Define.
      	(md_longopts): Add --nops.
      	(md_parse_option): Handle it.
      	(md_show_usage): Publish.
      	(ppc_handle_align): Pad with a branch followed by nops if more
      	than nop_limit nops.
      cef4f754
    • gdbadmin's avatar
      *** empty log message *** · 1dd6f20d
      gdbadmin authored
      1dd6f20d
  3. 03 Nov, 2010 7 commits
    • Joel Brobecker's avatar
      [Ada] move some variables to scope where they are used · 9addb3b9
      Joel Brobecker authored
      I noticed that some variables are only used inside one side of
      an if/else blob. So I moved these variables inside that block for
      better clarity.
      
      gdb/ChangeLog:
      
              * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
              and `len' declaration and computation inside block where they
              are being used.
      9addb3b9
    • Joel Brobecker's avatar
      [Ada] fix warning when printing empty array · 75be741b
      Joel Brobecker authored
      This patch should fix the following regression:
      
           (gdb) print my_table
          -$1 = ()
          -(gdb) PASS: gdb.ada/null_array.exp: print my_table
          +$1 = (warning: unable to get bounds of array, assuming null array
          +)
          +(gdb) FAIL: gdb.ada/null_array.exp: print my_table
      
      The problem was introduced by a change in val_print_array_elements
      which removed a check for the case where the array's high bound
      is smaller than the array's low bound (empty array).
      
      This change restores the check and forces the len to zero in that case.
      Looking at the patch that caused the regression, I suspect that we may
      have other parts that might have been broken (non-zero array low bound?).
      
      gdb/ChangeLog:
      
              * valprint.c (val_print_array_elements): Put back handling of
              empty arrays.
      75be741b
    • Alan Modra's avatar
      daily update · ee7f4c69
      Alan Modra authored
      ee7f4c69
    • Nick Clifton's avatar
      PR ld/12001 · e597fa08
      Nick Clifton authored
              * ldlang.c (ldlang_def_chain_list): New variable.  Contains a list
              of symbols defined via the --defsym command line option and
              currently waiting assignment.
              (insert_defined): Add a defined symbol to the symbol table.
              (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
              (lang_place_defineds): Walk ldlang_def_chain_list defining the
              symbols.
              (lang_process): Call lang_place_defineds.
              (lang_add_assignment): If the assignment has come from a --defsym
              command line option then call lang_add_def.
      
              * ld-script/default-script2.d: Fix expected address for text
              section.
      
              PR gold/12001
              * script.h (class Symbol_assignment: name): New member.  Returns
              the name of the symbol.
              * scrfipt.cc (Script_options::is_pending_assignment): New member.
              Returns true if the given symbol name is on the list of
              assignments wating to be processed.
              * archive.cc (should_incldue_member): If the symbol is undefined,
              check to see if it is on the list of symbols pending assignment.
      e597fa08
    • Dave Korn's avatar
      Sync from gcc/ · 74cea91b
      Dave Korn authored
      	PR lto/46273
      	* configure.ac: Remove libelf tests.  Build lto-plugin on ELF always
      	and on other supported platforms whenever LTO is enabled.
      	* configure: Rebuild.
      74cea91b
    • Ken Werner's avatar
      gdb: · dbc98a8b
      Ken Werner authored
      	* dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
      	DIE and set the length of the type.
      	* gdbtypes.h (get_array_bounds): Move here from valprint.h.
      	* gdbtypes.c (get_array_bounds): Move here from valprint.c and
      	return 0 if the corresponding bounds of the type are undefined.
      	* valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
      	* valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
      	(val_print_array_elements): Use get_array_bounds to compute the number
      	of array elements instead of dividing the length of the array by the
      	length of the element types.
      	* valarith.c (vector_binop): Likewise.
      	* valops.c (value_cast): Likewise.
      	* c-valprint.c (c_val_print): Likewise.
      	* c-typeprint.c (c_type_print_varspec_suffix): Likewise.
      
      gdb/testsuite:
      	* gdb.base/gnu_vector.exp: Adjust expect messages.
      dbc98a8b
    • H.J. Lu's avatar
      Properly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax. · 27dee630
      H.J. Lu authored
      gas/
      
      2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR gas/12186
      	* config/tc-i386-intel.c (i386_intel_fold): Properly fold
      	_GLOBAL_OFFSET_TABLE_.
      
      gas/testsuite/
      
      2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR gas/12186
      	* gas/i386/gotpc.s: Add more _GLOBAL_OFFSET_TABLE_ test.
      	* gas/i386/gotpc.d: Updated.
      27dee630