aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-08bfd/Alan Modra12-48/+131
* hash.c (bfd_hash_hash): Extract from.. (bfd_hash_lookup): ..here. (bfd_hash_rename): New function. * section.c (bfd_rename_section): New function. * bfd-in.h (bfd_hash_rename): Declare. * bfd-in2.h: Regenerate. * elf.c (_bfd_elf_make_section_from_shdr): Rename input sections when compressing or decompressing. Don't assert name match. * elf64-hppa.c (get_reloc_section): Don't assert name match. * elfxx-ia64.c (get_reloc_section): Likewise. binutils/ * objcopy.c (copy_main): No need to rename sections when compressing or decompressing. binutils/testsuite/ * binutils-all/objdump.W: Adjust expected result for debug section rename.
2010-11-08*** empty log message ***gdbadmin1-1/+1
2010-11-07daily updateAlan Modra1-1/+1
2010-11-07gdb/Jan Kratochvil2-3/+9
* infrun.c (restore_inferior_thread_state): Use discard_inferior_thread_state to free the data. (discard_inferior_thread_state): xfree also siginfo_data.
2010-11-07*** empty log message ***gdbadmin1-1/+1
2010-11-06daily updateAlan Modra1-1/+1
2010-11-06 * ld-plugin/plugin-6.d: Relax file name match.Alan Modra2-1/+5
2010-11-06*** empty log message ***gdbadmin1-1/+1
2010-11-05daily updateAlan Modra1-1/+1
2010-11-05 PR gold/10708Cary Coutant6-3/+64
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Hold a lock on the object when reading from the file. * gold.cc (queue_middle_tasks): Hold a lock on the object when doing second layout pass. * icf.cc (preprocess_for_unique_sections): Hold a lock on the object when reading section contents. (get_section_contents): Likewise. (icf::find_identical_sections): Likewise. * mapfile.cc (Mapfile::print_discarded_sections): Hold a lock on the object when reading from the file. * plugin.cc (Plugin_manager::layout_deferred_objects): Hold a lock on the object when doing deferred section layout.
2010-11-05merge from gccDJ Delorie2-0/+6
2010-11-05Fix spacing.Richard Sandiford1-1/+1
2010-11-05ld/Richard Sandiford2-1/+5
2010-11-05  Pierre Muller  <muller@ics.u-strasbg.fr> * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
2010-11-05 * gdb.python/py-param.exp: Delete, contents moved to ...Doug Evans3-115/+87
* gdb.python/py-parameter.exp: ... here. New file. Add test for gdb.parameter ("directories").
2010-11-05 Make gdb.parameter("directories") work.Doug Evans8-10/+119
New command "set directories". * NEWS: Document them. * source.c (set_directories_command): New function. (show_directories_1): Renamed from show_directories. All callers updated. (show_directories_command): New function. (_initialize_source): Install "directories" as a set/show variable instead of just a show command. doc/ * gdb.texinfo (Source Path): Document "set directories". testsuite/ * gdb.base/help.exp: Update expected output. * gdb.python/py-parameter.exp: New file.
2010-11-05gdb:Ken Werner31-43/+4550
* NEWS: Mention OpenCL C language support. * Makefile.in (SFILES): Add opencl-lang.c. (COMMON_OBS): Add opencl-lang.o. * opencl-lang.c: New File * defs.h (enum language): Add language_opencl. * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the IBM XL C OpenCL compiler. * c-lang.h: Include "parser-defs.h". (evaluate_subexp_c): Declare. * c-lang.c (evaluate_subexp_c): Remove the static qualifier. (c_op_print_tab): Add declaration. * eval.c (binop_promote): Handle language_opencl. * c-exp.y: Lookup the primitive types instead of referring to the builtins. gdb/testsuite: * Makefile.in (ALL_SUBDIRS): Add gdb.opencl. * configure.ac (AC_OUTPUT): Add gdb.opencl/Makefile. * configure: Regenerate. * gdb.opencl/Makefile.in: New File. * gdb.opencl/datatypes.exp: Likewise. * gdb.opencl/datatypes.cl: Likewise. * gdb.opencl/operators.exp: Likewise. * gdb.opencl/operators.cl: Likewise. * gdb.opencl/vec_comps.exp: Likewise. * gdb.opencl/vec_comps.cl: Likewise. * gdb.opencl/convs_casts.exp: Likewise. * gdb.opencl/convs_casts.cl: Likewise. * lib/opencl.exp: Likewise. * lib/opencl_hostapp.c: Likewise. * lib/opencl_kernel.cl: Likewise. * lib/cl_util.c: Likewise. * lib/cl_util.c: Likewise. * gdb.base/default.exp (set language): Add "opencl" to the list of languages. gdb/doc: * gdb.texinfo: (Summary) Add mention about OpenCL C language support. (OpenCL C): New node.
2010-11-05Fix typo in microblaze license.Michael Eager3-2/+7
2010-11-05bfd:Joseph Myers17-0/+119
* 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.
2010-11-05 * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,Joseph Myers2-2/+8
_bfd_elf_merge_unknown_attribute_list): Correct test for matching string attributes.
2010-11-05missed from last commitAlan Modra1-0/+6
2010-11-05 * config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG ->Nick Clifton2-2/+8
MAX_REG. (getprocregp_image): Likewise.
2010-11-05 * bin2c.c: Remove internationalization and version report.Alan Modra3-23/+9
* Makefile.am: Update bin2c rule. * Makefile.in: Regenerate.
2010-11-05bfd/Tristan Gingold14-5847/+9212
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
2010-11-05bfd/Tristan Gingold3-2/+7
2010-11-05 Tristan Gingold <gingold@adacore.com> * configure.in: Bump version to 2.21.51 * configure: Regenerate.
2010-11-05binutils/Tristan Gingold6-0/+21
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.
2010-11-05 * ld-plugin/plugin.exp (testobjfiles): Dont use HOSTING_CRT0.Dave Korn3-4/+18
(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.
2010-11-05 * plugin.h (plugin_active_plugins_p): New prototype.Dave Korn5-15/+42
(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.
2010-11-05 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.Alan Modra2-19/+27
(map_input_to_output_sections): Likewise. (lang_size_sections_1): Likewise. (IGNORE_SECTION): Don't test SEC_NEVER_LOAD. (lang_check_section_addresses): Likewise.
2010-11-05 * ChangeLog: Add missing 'PR' designator to previous entry.Dave Korn1-0/+1
2010-11-05 * config/obj-coff.c (weak_altname2name): Don't infer from the presenceDave Korn2-11/+8
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.
2010-11-05 * ld-elfvers/vers32c.dsym, * ld-elfvers/vers32c.ver: Delete.Alan Modra5-13/+7
* ld-elfvers/vers32d.ver: Delete. * ld-elfvers/vers.exp: Don't run them.
2010-11-05gdb/Jan Kratochvil3-0/+22
Fix configure --enable-plugins --without-python. * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New. * configure: Regenerate.
2010-11-05gdb/Jan Kratochvil2-6/+8
* solib.c (solib_read_symbols): Call exception_fprintf even without FROM_TTY. Print also so->so_name.
2010-11-05*** empty log message ***gdbadmin1-1/+1
2010-11-04Use spawnve on cygwin.Richard Henderson5-13/+237
* 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.
2010-11-04daily updateAlan Modra1-1/+1
2010-11-04Fix derived class overload problem.Sami Wagiaalla7-36/+113
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.
2010-11-04Create and use struct rank.Sami Wagiaalla4-40/+128
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.
2010-11-04 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.Doug Evans2-4/+9
(find_pretty_printer): Fix comments.
2010-11-04gdb/testsuite/Jan Kratochvil2-0/+15
* gdb.ada/null_array.exp (print my_table): Call get_compiler_info and check test_compiler_info.
2010-11-04 PR ld/10144Maciej W. Rozycki2-0/+26
* elfxx-mips.c (_bfd_mips_elf_check_relocs) [R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from SEC_DEBUGGING sections.
2010-11-042010-11-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+10
* vms-lib.c (vms_write_index): Fix thinko: reverse the loop. Use bfd_zmalloc instead of bfd_malloc. Fix comment.
2010-11-04bfd/Kai Tietz5-1/+30
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.
2010-11-042010-11-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-3/+9
* makefile.vms (CFLAGS): Make badalias warnings informational. * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
2010-11-04 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.Alan Modra2-1/+9
2010-11-04 * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,Joseph Myers5-106/+163
_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.
2010-11-042010-11-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-4/+8
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
2010-11-04 * config/tc-ppc.c (nop_limit): New var.Alan Modra2-0/+52
(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.
2010-11-04*** empty log message ***gdbadmin1-1/+1
2010-11-03[Ada] move some variables to scope where they are usedJoel Brobecker2-11/+18
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.