1. 29 Jan, 2019 5 commits
    • Max Filippov's avatar
      xtensa: gas: don't keep relocations for constants · 0b404f6e
      Max Filippov authored
      xtensa gas chokes on 8/16 bit data entries representing constant symbols
      because it leaves BFD_RELOC_8/BFD_RELOC_16 fixups for which xtensa BFD
      cannot emit relocations. Resolve fixups for constant symbols in
      md_apply_fix.
      
      gas/
      2019-01-29  Max Filippov  <jcmvbkbc@gmail.com>
      
      	* config/tc-xtensa.c (md_apply_fix): Mark fixups for constant
      	symbols as done in md_apply_fix.
      	* testsuite/gas/all/forward.d: Don't XFAIL for xtensa.
      0b404f6e
    • Alan Modra's avatar
      Control gas enable-checking default by bfd/development.sh · 0d2871ac
      Alan Modra authored
      	* configure.ac (ac_checking): Set from bfd/development.sh
      	development variable.
      	* configure: Regenerate.
      
      (cherry picked from commit e044973b)
      0d2871ac
    • Nick Clifton's avatar
      Fix error in expression evalutation in linker output maps. · 12542b2a
      Nick Clifton authored
      	PR 24008
      	* ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
      	* ldexp.c (fold_name): Move expld.assign_name check later to
      	avoid an extra lookup.
      	(exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
      	values, and don't clear expld.assign_name.
      	* ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
      	(print_assignment): Resolve entire assignment expression.
      	Don't access symbol u.def unless symbol is defined.
      12542b2a
    • Eric Botcazou's avatar
      Skip ld/pr23169 on SPARC. · 5bbcb18f
      Eric Botcazou authored
      The test is already skipped on PowerPC and Aarch64 because it's invalid.
      
      	* testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
      5bbcb18f
    • GDB Administrator's avatar
      Automatic date update in version.in · 7252074a
      GDB Administrator authored
      7252074a
  2. 28 Jan, 2019 3 commits
  3. 27 Jan, 2019 1 commit
  4. 26 Jan, 2019 1 commit
  5. 25 Jan, 2019 6 commits
    • Tamar Christina's avatar
      d6a865ea
    • Sudi Das's avatar
      AArch64: Update encodings for stg, st2g, stzg and st2zg. · aaebbe87
      Sudi Das authored
      This patch is part of a series of patches to introduce a few changes to the
      Armv8.5-A Memory Tagging Extension. This patch updates the st*g instructions
      to use a previously reserved field for a new register operand. Thus the
      new versions of the instructions are as follows:
      
      - STG Xt, [<Xn|SP>, #<simm>]
      - STG Xt, [<Xn|SP>, #<simm>]!
      - STG Xt, [<Xn|SP>], #<simm>
      - STZG Xt, [<Xn|SP>, #<simm>]
      - STZG Xt, [<Xn|SP>, #<simm>]!
      - STZG Xt, [<Xn|SP>], #<simm>
      - ST2G Xt, [<Xn|SP>, #<simm>]
      - ST2G Xt, [<Xn|SP>, #<simm>]!
      - ST2G Xt, [<Xn|SP>], #<simm>
      - STZ2G Xt, [<Xn|SP>, #<simm>]
      - STZ2G Xt, [<Xn|SP>, #<simm>]!
      - STZ2G Xt, [<Xn|SP>], #<simm>
      
      Committed on behalf of Sudakshina Das.
      
      *** gas/ChangeLog ***
      
      	* config/tc-aarch64.c (warn_unpredictable_ldst): Exempt
      	stg, st2g, stzg and stz2g from Xt == Xn with writeback warning.
      	* testsuite/gas/aarch64/armv8_5-a-memtag.d: Change tests for
      	stg, stzg, st2g and stz2g.
      	* testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.l: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.s: Likewise.
      
      *** opcodes/ChangeLog ***
      
      	* aarch64-tbl.h (QL_LDST_AT): Update macro.
      	(aarch64_opcode): Change encoding for stg, stzg
      	st2g and st2zg.
      	* aarch64-asm-2.c: Regenerated.
      	* aarch64-dis-2.c: Regenerated.
      	* aarch64-opc-2.c: Regenerated.
      
      (cherry picked from commit 69105ce4)
      aaebbe87
    • Sudi Das's avatar
      AArch64: Add new STZGM instruction for Armv8.5-A Memory Tagging Extension. · 824d332f
      Sudi Das authored
      This patch is part of a series of patches to introduce a few changes to the
      Armv8.5-A Memory Tagging Extension. This patch adds the new STZGM instruction.
      
      STGZM Xt, [<Xn|SP>]
      
      Committed on behalf of Sudakshina Das.
      
      *** gas/ChangeLog ***
      
      	* testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for stzgm.
      	* testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.l: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.s: Likewise.
      
      *** opcodes/ChangeLog ***
      
      	* aarch64-asm-2.c: Regenerated.
      	* aarch64-dis-2.c: Likewise.
      	* aarch64-opc-2.c: Likewise.
      	* aarch64-tbl.h (aarch64_opcode): Add new stzgm.
      
      (cherry picked from commit 20a4ca55)
      824d332f
    • Sudi Das's avatar
      AArch64: Remove ldgv and stgv instructions from Armv8.5-A Memory Tagging Extension. · 64485cb2
      Sudi Das authored
      This patch is part of a series of patches to introduce a few changes to the
      Armv8.5-A Memory Tagging Extension. This patch removes the LDGV and STGV
      instructions. These instructions needed special infrastructure to support
      [base]! style for addressing mode. That is also removed now.
      
      Committed on behalf of Sudakshina Das.
      
      *** gas/ChangeLog ***
      
      	* config/tc-aarch64.c (parse_address_main): Remove support for
      	[base]! address expression.
      	(parse_operands): Remove support for AARCH64_OPND_ADDR_SIMPLE_2.
      	(warn_unpredictable_ldst): Remove support for ldstgv_indexed.
      	* testsuite/gas/aarch64/armv8_5-a-memtag.d: Remove tests for ldgv
      	and stgv.
      	* testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.l: Likewise.
      	* testsuite/gas/aarch64/illegal-memtag.s: Likewise.
      
      *** include/ChangeLog ***
      
      	* opcode/aarch64.h (enum aarch64_opnd): Remove
      	AARCH64_OPND_ADDR_SIMPLE_2.
      	(enum aarch64_insn_class): Remove ldstgv_indexed.
      
      *** opcodes/ChangeLog ***
      
      	* aarch64-asm.c (aarch64_ins_addr_simple_2): Remove.
      	* aarch64-asm.h (ins_addr_simple_2): Likeiwse.
      	* aarch64-dis.c (aarch64_ext_addr_simple_2): Likewise.
      	* aarch64-dis.h (ext_addr_simple_2): Likewise.
      	* aarch64-opc.c (operand_general_constraint_met_p): Remove
      	case for ldstgv_indexed.
      	(aarch64_print_operand): Remove case for AARCH64_OPND_ADDR_SIMPLE_2.
      	* aarch64-tbl.h (struct aarch64_opcode): Remove ldgv and stgv.
      	(AARCH64_OPERANDS): Remove ADDR_SIMPLE_2.
      	* aarch64-asm-2.c: Regenerated.
      	* aarch64-dis-2.c: Regenerated.
      	* aarch64-opc-2.c: Regenerated.
      
      (cherry picked from commit 550fd7bf)
      64485cb2
    • Nick Clifton's avatar
    • GDB Administrator's avatar
      Automatic date update in version.in · b5824aad
      GDB Administrator authored
      b5824aad
  6. 24 Jan, 2019 1 commit
  7. 23 Jan, 2019 3 commits
  8. 22 Jan, 2019 1 commit
  9. 21 Jan, 2019 2 commits
  10. 19 Jan, 2019 3 commits
  11. 18 Jan, 2019 1 commit
  12. 17 Jan, 2019 11 commits
    • Tom Tromey's avatar
      Make minimal symbol range adapter a method on objfile · 7932255d
      Tom Tromey authored
      This removes class objfile_msymbols in favor of a method on the
      objfile.
      
      2019-01-16  Tom Tromey  <tom@tromey.com>
      
      	* objfiles.h (struct minimal_symbol_iterator): Rename.  Move
      	earlier.
      	(struct objfile) <msymbols_range>: Move from top level.
      	<msymbols>: New method.
      	(class objfile_msymbols): Remove.
      	* symtab.c (default_collect_symbol_completion_matches_break_on):
      	Update.
      	* symmisc.c (dump_msymbols): Update.
      	* stabsread.c (scan_file_globals): Update.
      	* objc-lang.c (info_selectors_command, info_classes_command)
      	(find_methods): Update.
      	* minsyms.c (find_solib_trampoline_target): Update.
      	* hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
      	* coffread.c (coff_symfile_read): Update.
      	* ada-lang.c (ada_lookup_simple_minsym)
      	(ada_collect_symbol_completion_matches): Update.
      
      7932255d
    • Tom Tromey's avatar
      Simplify minsym iteration · 604b1bfb
      Tom Tromey authored
      This simplifies the minimal symbol iterator, by using
      minimal_symbol_count and just doing a somewhat ordinary array-like
      iteration.  array_view is nearly usable, except that it is more
      convenient for this iterator to return pointers rather than
      references.
      
      gdb/ChangeLog
      2019-01-16  Tom Tromey  <tom@tromey.com>
      
      	* objfiles.h (class objfile_msymbols) <iterator>: Change argument
      	type.  Remove no-argument constructor.
      	<iterator::operator++>: Simplify.
      	<begin>: Update.
      	<end>: Use minimal_symbol_count.
      604b1bfb
    • Tom Tromey's avatar
      Make psymtab range adapter a method on objfile · f252c6d5
      Tom Tromey authored
      This removes the objfile_psymtabs class in favor of a method on
      objfile and on psymtab_storage.
      
      2019-01-16  Tom Tromey  <tom@tromey.com>
      
      	* objfiles.h (struct objfile) <psymtabs>: New method.
      	(class objfile_psymtabs): Remove.
      	* psymtab.h (class psymtab_storage) <partial_symtab_range>: New
      	typedef.
      	<range>: New method.
      	(require_partial_symbols): Change return type.
      	* psymtab.c (require_partial_symbols)
      	(psym_expand_symtabs_matching): Update.
      	* mdebugread.c (parse_partial_symbols): Update.
      	* dbxread.c (dbx_end_psymtab): Update.
      
      f252c6d5
    • Tom Tromey's avatar
      Add compunits range adapter to objfile · b669c953
      Tom Tromey authored
      This removes the objfile_compunits range adapter in favor of using a
      method on objfile.
      
      2019-01-15  Tom Tromey  <tom@tromey.com>
      
      	* symtab.c (lookup_objfile_from_block)
      	(lookup_symbol_in_objfile_symtabs)
      	(basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
      	(find_line_symtab, info_sources_command)
      	(default_collect_symbol_completion_matches_break_on)
      	(make_source_files_completion_list): Update.
      	* symmisc.c (print_objfile_statistics, dump_objfile)
      	(maintenance_print_symbols, maintenance_info_symtabs)
      	(maintenance_check_symtabs, maintenance_info_line_tables):
      	Update.
      	* source.c (select_source_symtab)
      	(forget_cached_source_info_for_objfile): Update.
      	* objfiles.h (class objfile_compunits): Remove.
      	(struct objfile) <compunits_range>: New typedef.
      	(compunits): New method.
      	* objfiles.c (objfile_relocate1): Update.
      	* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
      	* maint.c (count_symtabs_and_blocks): Update.
      	* linespec.c (iterate_over_all_matching_symtabs): Update.
      	* cp-support.c (add_symbol_overload_list_qualified): Update.
      	* coffread.c (coff_symtab_read): Update.
      	* ada-lang.c (add_nonlocal_symbols)
      	(ada_collect_symbol_completion_matches)
      	(ada_add_global_exceptions): Update.
      
      b669c953
    • Tom Tromey's avatar
      Change all_objfiles_safe adapter to be a method on program_space · 7e955d83
      Tom Tromey authored
      This changes the all_objfiles_safe range adapter to be a method on the
      program space, and fixes up all the users.
      
      gdb/ChangeLog
      2019-01-15  Tom Tromey  <tom@tromey.com>
      
      	* progspace.h (program_space) <objfiles_safe_range>: New
      	typedef.
      	<objfiles_safe>: New method.
      	* objfiles.h (class all_objfiles_safe): Remove.
      	* objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
      	* jit.c (jit_inferior_exit_hook): Update.
      7e955d83
    • Tom Tromey's avatar
      Change all_objfiles adapter to be a method on program_space · 2030c079
      Tom Tromey authored
      This changes the all_objfiles range adapter to be a method on the
      program space, and fixes up all the users.
      
      gdb/ChangeLog
      2019-01-17  Tom Tromey  <tom@tromey.com>
      
      	* progspace.h (program_space) <objfiles_range>: New typedef.
      	<objfiles>: New method.
      	<objfiles_head>: Rename from objfiles.
      	(object_files): Update.
      	* guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
      	* guile/scm-pretty-print.c
      	(ppscm_find_pretty_printer_from_objfiles): Update.
      	* guile/scm-objfile.c (gdbscm_objfiles): Update.
      	* python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
      	Update.
      	* python/py-progspace.c (pspy_get_objfiles): Update.
      	* python/py-prettyprint.c (find_pretty_printer_from_objfiles):
      	Update.
      	* python/py-objfile.c (objfpy_lookup_objfile_by_name)
      	(objfpy_lookup_objfile_by_build_id): Update.
      	* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
      	* windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
      	Update.
      	* symtab.c (iterate_over_symtabs, matching_obj_sections)
      	(expand_symtab_containing_pc, lookup_objfile_from_block)
      	(lookup_static_symbol, basic_lookup_transparent_type)
      	(find_pc_sect_compunit_symtab, find_symbol_at_address)
      	(find_line_symtab, info_sources_command)
      	(default_collect_symbol_completion_matches_break_on)
      	(make_source_files_completion_list, find_main_name): Update.
      	* symmisc.c (print_symbol_bcache_statistics)
      	(print_objfile_statistics, maintenance_print_symbols)
      	(maintenance_print_msymbols, maintenance_print_objfiles)
      	(maintenance_info_symtabs, maintenance_check_symtabs)
      	(maintenance_expand_symtabs, maintenance_info_line_tables):
      	Update.
      	* symfile.c (remove_symbol_file_command, overlay_invalidate_all)
      	(find_pc_overlay, find_pc_mapped_section, list_overlays_command)
      	(map_overlay_command, unmap_overlay_command)
      	(simple_overlay_update, expand_symtabs_matching)
      	(map_symbol_filenames): Update.
      	* symfile-debug.c (set_debug_symfile): Update.
      	* spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
      	Update.
      	* source.c (select_source_symtab, forget_cached_source_info):
      	Update.
      	* solib.c (solib_read_symbols): Update.
      	* solib-spu.c (append_ocl_sos): Update.
      	* psymtab.c (maintenance_print_psymbols)
      	(maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
      	* probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
      	* printcmd.c (info_symbol_command): Update.
      	* ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
      	Update.
      	* objfiles.h (class all_objfiles): Remove.
      	* objfiles.c (have_partial_symbols, have_full_symbols)
      	(have_minimal_symbols, qsort_cmp, update_section_map)
      	(shared_objfile_contains_address_p)
      	(default_iterate_over_objfiles_in_search_order): Update.
      	* objc-lang.c (info_selectors_command, info_classes_command)
      	(find_methods): Update.
      	* minsyms.c (find_solib_trampoline_target): Update.
      	* maint.c (maintenance_info_sections)
      	(maintenance_translate_address, count_symtabs_and_blocks):
      	Update.
      	* main.c (captured_main_1): Update.
      	* linux-thread-db.c (try_thread_db_load_from_pdir)
      	(has_libpthread): Update.
      	* linespec.c (iterate_over_all_matching_symtabs)
      	(search_minsyms_for_name): Update.
      	* jit.c (jit_find_objf_with_entry_addr): Update.
      	* hppa-tdep.c (find_unwind_entry)
      	(hppa_lookup_stub_minimal_symbol): Update.
      	* gcore.c (gcore_create_callback, objfile_find_memory_regions):
      	Update.
      	* elfread.c (elf_gnu_ifunc_resolve_by_cache)
      	(elf_gnu_ifunc_resolve_by_got): Update.
      	* dwarf2-frame.c (dwarf2_frame_find_fde): Update.
      	* dwarf-index-write.c (save_gdb_index_command): Update.
      	* cp-support.c (add_symbol_overload_list_qualified): Update.
      	* breakpoint.c (create_overlay_event_breakpoint)
      	(create_longjmp_master_breakpoint)
      	(create_std_terminate_master_breakpoint)
      	(create_exception_master_breakpoint): Update.
      	* blockframe.c (find_pc_partial_function): Update.
      	* ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
      	(ada_collect_symbol_completion_matches)
      	(ada_add_global_exceptions): Update.
      2030c079
    • Tom Tromey's avatar
      Remove cleanups from solib-target.c · 776489e0
      Tom Tromey authored
      This removes the remaining cleanups from solib-target.c, plus a VEC,
      by using std::vector and std::unique_ptr.
      
      Tested by the buildbot.
      
      gdb/ChangeLog
      2019-01-17  Tom Tromey  <tom@tromey.com>
      
      	* solib-target.c (lm_info_target_p): Remove typedef.  Don't
      	declare VEC.
      	(solib_target_parse_libraries): Change return type.
      	(library_list_start_segment, library_list_start_section)
      	(library_list_end_library, library_list_start_library); Update.
      	(solib_target_free_library_list): Remove.
      	(solib_target_parse_libraries): Remove cleanup.  Change return
      	type.
      	(solib_target_current_sos): Update.
      776489e0
    • Tom Tromey's avatar
      Replace "the the" with "the" · 6471e7d2
      Tom Tromey authored
      This replaces "the the" with "the" in various comments.
      
      Tested by rebuilding.  This didn't test the solib-dsbt.c change, but
      it looks harmless.
      
      gdb/ChangeLog
      2019-01-17  Tom Tromey  <tromey@bapiya>
      
      	* valprint.c: Replace "the the" with "the".
      	* symtab.c: Replace "the the" with "the".
      	* solib.c: Replace "the the" with "the".
      	* solib-dsbt.c: Replace "the the" with "the".
      	* linespec.c: Replace "the the" with "the".
      	* dwarf2loc.h: Replace "the the" with "the".
      	* amd64-windows-tdep.c: Replace "the the" with "the".
      	* aarch64-tdep.c: Replace "the the" with "the".
      6471e7d2
    • Tamar Christina's avatar
      Arm: Clean up PE GAS testsuite correct THUMB tests. · dee3ee22
      Tamar Christina authored
      The PE targets don't support mapping symbols and so the disassembler is unable
      to correctly output thumb instructions when the input was thumb.
      
      So for testcases that only have thumb output, I have copied them and skipped the
      ones for which auto-detection is supposed to work on PE, and added a new one
      that will force thumb output.  This so that the tests still check the mapping
      symbols.
      
      For the tests that switch between thumb and arm in one file I just skip them
      entirely on PE targets.
      
      This cleans up the PE GAS testsuite.
      
      gas/
      
      	* testsuite/gas/arm/archv6t2-1-pe.d: New test.
      	* testsuite/gas/arm/archv6t2-1.d: Skip pe.
      	* testsuite/gas/arm/csdb.d: Skip pe.
      	* testsuite/gas/arm/sb-thumb1-pe.d: New test.
      	* testsuite/gas/arm/sb-thumb1.d: Skip pe.
      	* testsuite/gas/arm/sb-thumb2-pe.d: New test.
      	* testsuite/gas/arm/sb-thumb2.d: Skip pe.
      	* testsuite/gas/arm/udf.d: Skip pe.
      dee3ee22
    • Nick Clifton's avatar
      Update objdump's --disassemble=<symbol> feature so that if <symbol> is a... · baae986a
      Nick Clifton authored
      Update objdump's --disassemble=<symbol> feature so that if <symbol> is a function, the entire function will be disassembled, regardless of the presence of interveening symbols.
      
      	* objdump.c (disassemble_section): When disassembling from a
      	symbol only stop at the next symbol if the original symbol was not
      	a function symbol.  Otherwise continue disassembling until a new
      	function is reached.
      	* testsuite/binutils-all/objdump.exp: Add tests of extended
      	functionality.
      	* testsuite/binutils-all/disasm.s: New test source file.
      baae986a
    • GDB Administrator's avatar
      Automatic date update in version.in · e89c6941
      GDB Administrator authored
      e89c6941
  13. 16 Jan, 2019 2 commits