+2020-05-26 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
+ (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
+ (val_atr): New function.
+ (value_val_atr): Use it.
+ * ada-valprint.c (print_optional_low_bound): Change low bound
+ handling for enums.
+ (val_print_packed_array_elements): Don't call discrete_position.
+ * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
+ discrete_position for enum types.
+ * language.c (default_print_array_index): Change type.
+ * language.h (struct language_defn) <la_print_array_index>: Add
+ index_type parameter, change type of index_value.
+ (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
+ (default_print_array_index): Update.
+ * valprint.c (maybe_print_array_index): Don't call
+ value_from_longest. Update.
+ (value_print_array_elements): Don't call discrete_position.
+
+2020-05-26 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
+ * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
+
+2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
+
+ PR gdb/13519
+ * avr-tdep.c (avr_integer_to_address): Return data or code
+ address accordingly to the second 'type' argument of the
+ function.
+
+2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
+
+ * infcmd.c, inferior.h: (construct_inferior_arguments):
+ Moved function from here to gdbsupport/common-inferior.{h,cc}
+
+2020-05-23 Tom Tromey <tom@tromey.com>
+
+ Revert commit eca1f90c:
+ * NEWS: Remove entry for completion styling.
+ * completer.c (_rl_completion_prefix_display_length): Move
+ declaration later.
+ (gdb_fnprint): Revert.
+ (gdb_display_match_list_1): Likewise.
+ * cli/cli-style.c (completion_prefix_style)
+ (completion_difference_style, completion_suffix_style): Remove.
+ (_initialize_cli_style): Revert.
+ * cli/cli-style.h (completion_prefix_style)
+ (completion_difference_style, completion_suffix_style): Don't
+ declare.
+
+2020-05-24 Pedro Alves <palves@redhat.com>
+
+ * symtab.c (completion_list_add_name): Return boolean indication
+ of whether the symbol matched.
+ (completion_list_add_symbol): Don't try to remove C++ aliases if
+ the symbol didn't match in the first place.
+ * symtab.h (completion_list_add_name): Return bool.
+
+2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
+ type::field.
+
+2020-05-23 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 9.2 released.
+
+2020-05-23 Tom Tromey <tom@tromey.com>
+
+ * NEWS: Add entry for completion styling.
+ * completer.c (_rl_completion_prefix_display_length): Move
+ declaration earlier.
+ (gdb_fnprint): Use completion_style.
+ (gdb_display_match_list_1): Likewise.
+ * cli/cli-style.c (completion_prefix_style)
+ (completion_difference_style, completion_suffix_style): New
+ globals.
+ (_initialize_cli_style): Register new globals.
+ * cli/cli-style.h (completion_prefix_style)
+ (completion_difference_style, completion_suffix_style): Declare.
+
+2020-05-23 Pedro Alves <palves@redhat.com>
+
+ * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
+ (parse_escape): Use ISDIGIT instead of isdigit.
+ (puts_debug): Use gdb_isprint instead of isprint.
+ (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
+ (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
+ ISSPACE instead of isspace.
+ (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
+ instead of isspace.
+ (strcmp_iw_ordered): Use ISSPACE instead of isspace.
+ (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
+ instead of isxdigit and ISDIGIT instead of isdigit.
+
+2020-05-22 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (struct type) <field>: New method.
+ (TYPE_FIELDS): Remove, replace all uses with either type::fields
+ or type::field.
+
+2020-05-22 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (struct type) <fields, set_fields>: New methods.
+ (TYPE_FIELDS): Use type::fields. Change all call sites that
+ modify the propery to use type::set_fields instead.
+
+2020-05-22 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
+ type::num_fields instead.
+
+2020-05-22 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
+ methods.
+ (TYPE_NFIELDS): Use type::num_fields. Change all call sites
+ that modify the number of fields to use type::set_num_fields
+ instead.
+
+2020-05-22 Tom Tromey <tromey@adacore.com>
+
+ * compile/compile-object-load.h (munmap_list_free): Don't
+ declare.
+
+2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * annotate.c (annotate_source_line): Update return type, add call
+ to update current symtab and line.
+ * annotate.h (annotate_source_line): Update return type, and
+ extend header comment.
+ * source.c (info_line_command): Check annotation_level before
+ calling annotate_source_line.
+ * stack.c (print_frame_info): If calling annotate_source_line
+ returns true, then don't print any other source line information.
+
+2020-05-21 Simon Marchi <simon.marchi@efficios.com>
+
+ * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
+
+2020-05-21 Simon Marchi <simon.marchi@efficios.com>
+
+ * coffread.c (patch_type): Remove NULL check before xfree.
+ * corefile.c (set_gnutarget): Likewise.
+ * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
+ * exec.c (build_section_table): Likewise.
+ * remote.c (remote_target::pass_signals): Likewise.
+ * utils.c (n_spaces): Likewise.
+ * cli/cli-script.c (document_command): Likewise.
+ * i386-windows-tdep.c (core_process_module_section): Likewise.
+ * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
+
+2020-05-20 Simon Marchi <simon.marchi@efficios.com>
+
+ * symfile.c (reread_symbols): Clear objfile's section_offsets
+ vector and section indices, re-compute them by calling
+ sym_offsets.
+
+2020-05-20 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
+ (desc_one_bound, desc_index_type): Compute field name.
+
+2020-05-20 Tom de Vries <tdevries@suse.de>
+
+ PR symtab/25833
+ * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
+
+2020-05-20 Alan Modra <amodra@gmail.com>
+
+ PR 25993
+ * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
+ bfd_set_filename.
+ * solib-aix.c (solib_aix_bfd_open): Use std::string for name
+ passed to bfd_set_filename.
+ * symfile-mem.c (add_vsyscall_page): Likewise for string
+ passed to symbol_file_add_from_memory.
+ (symbol_file_add_from_memory): Make name param a const char* and
+ don't strdup.
+
+2020-05-20 Alan Modra <amodra@gmail.com>
+
+ * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
+ rather than accessing bfd->filename directly.
+ * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
+ and use bfd_section_name.
+ * dwarf2/frame.c (decode_frame_entry): Likewise.
+ * exec.c (exec_set_section_address): Likewise.
+ * solib-aix.c (solib_aix_bfd_open): Likewise.
+ * stap-probe.c (get_stap_base_address): Likewise.
+ * symfile.c (reread_symbols): Likewise.
+
+2020-05-19 Tom Tromey <tromey@adacore.com>
+
+ * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
+
+2020-05-19 Simon Marchi <simon.marchi@efficios.com>
+
+ * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
+
+2020-05-19 Pedro Alves <palves@redhat.com>
+
+ * NEWS (set exec-file-mismatch): Adjust entry.
+ * exec.c: Include "build-id.h".
+ (validate_exec_file): Try to match build IDs instead of filenames.
+ * gdb_bfd.c (struct gdb_bfd_open_closure): New.
+ (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
+ and pass down 'warn_if_slow'.
+ (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
+ gdb_bfd_open_closure to pass it down.
+ * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
+
+2020-05-19 Pedro Alves <palves@redhat.com>
+
+ * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
+ * target.c (target_fileio_open_1): Rename to target_fileio_open
+ and make extern. Use bool.
+ (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
+ (target_fileio_read_alloc_1): Adjust.
+ * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
+ (target_fileio_open_warn_if_slow): Delete declaration.
+
+2020-05-19 Pedro Alves <palves@redhat.com>
+
+ * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
+ Adjust all callers.
+
+2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * h8300-tdep.c (h8300_is_argument_spill): Change how we check
+ whether disp is negative.
+
+2020-05-19 Simon Marchi <simon.marchi@efficios.com>
+
+ * symfile.h (struct symfile_segment_data)
+ <~symfile_segment_data>: Remove.
+ <segment_info>: Change to std::vector.
+ * symfile.c (default_symfile_segments): Update.
+ * elfread.c (elf_symfile_segments): Update.
+
+2020-05-19 Simon Marchi <simon.marchi@efficios.com>
+
+ * symfile.h (struct symfile_segment_data) <struct segment>: New.
+ <segments>: New.
+ <segment_bases, segment_sizes>: Remove.
+ * symfile.c (default_symfile_segments): Update.
+ * elfread.c (elf_symfile_segments): Update.
+ * remote.c (remote_target::get_offsets): Update.
+ * solib-target.c (solib_target_relocate_section_addresses):
+ Update.
+
+2020-05-19 Simon Marchi <simon.marchi@efficios.com>
+
+ * symfile.h (struct symfile_segment_data): Initialize fields.
+ <~symfile_segment_data>: Add.
+ (symfile_segment_data_up): New.
+ (struct sym_fns) <sym_segments>: Return a
+ symfile_segment_data_up.
+ (default_symfile_segments): Return a symfile_segment_data_up.
+ (free_symfile_segment_data): Remove.
+ (get_symfile_segment_data): Return a symfile_segment_data_up.
+ * symfile.c (default_symfile_segments): Likewise.
+ (get_symfile_segment_data): Likewise.
+ (free_symfile_segment_data): Remove.
+ (symfile_find_segment_sections): Update.
+ * elfread.c (elf_symfile_segments): Return a
+ symfile_segment_data_up.
+ * remote.c (remote_target::get_offsets): Update.
+ * solib-target.c (solib_target_relocate_section_addresses):
+ Update.
+ * symfile-debug.c (debug_sym_segments): Return a
+ symfile_segment_data_up.
+
+2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR build/25981
+ * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
+ Hardcode register numbers.
+
+ PR build/25981
+ * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
+ procfs_find_LDT_entry): Remove.
+ * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
+ procfs_find_LDT_entry): Remove.
+ * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
+ Remove.
+
+2020-05-17 Pedro Alves <palves@redhat.com>
+ Andrew Burgess <andrew.burgess@embecosm.com>
+ Keno Fischer <keno@juliacomputing.com>
+
+ PR gdb/25741
+ * breakpoint.c (build_target_condition_list): Update comments.
+ (build_target_command_list): Update comments and skip matching
+ locations.
+ (insert_bp_location): Move "set breakpoint auto-hw on" handling to
+ a separate function. Simplify "set breakpoint auto-hw off"
+ handling.
+ (insert_breakpoints): Update comment.
+ (tracepoint_locations_match): New parameter. For breakpoints,
+ compare location types too, if the caller wants to.
+ (handle_automatic_hardware_breakpoints): New functions.
+ (bp_location_is_less_than): Also sort by location type and
+ hardware breakpoint length.
+ (update_global_location_list): Handle "set breakpoint auto-hw on"
+ here.
+ (update_breakpoint_locations): Ask breakpoint_locations_match to
+ ignore location types.
+
+2020-05-16 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
+ type::name instead.
+
+2020-05-16 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbtypes.h (struct type) <name, set_name>: New methods.
+ (TYPE_CODE): Use type::name. Change all call sites used to set
+ the name to use type::set_name instead.
+
+2020-05-16 Tom Tromey <tom@tromey.com>
+
+ * top.c (quit_force): Update.
+ * infrun.c (handle_no_resumed): Update.
+ * top.h (all_uis): New function.
+ (ALL_UIS): Remove.
+
+2020-05-16 Simon Marchi <simon.marchi@efficios.com>
+
+ * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
+
+2020-05-16 Pedro Alves <palves@redhat.com>
+
+ * ia64-linux-nat.c
+ (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
+ Declare method.
+ (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
+
+2020-05-15 Simon Marchi <simon.marchi@efficios.com>
+
+ * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
+ (sparc64_adi_info): Likewise.
+
+2020-05-15 Tom Tromey <tom@tromey.com>
+
+ * symtab.c (lookup_language_this, lookup_symbol_aux): Use
+ block_objfile.
+ (lookup_objfile_from_block): Remove.
+ (lookup_symbol_in_block, lookup_symbol_in_static_block)
+ (lookup_global_symbol): Use block_objfile.
+ * symtab.h (lookup_objfile_from_block): Don't declare.
+ * printcmd.c (clear_dangling_display_expressions): Use
+ block_objfile.
+ * parse.c (operator_check_standard): Use block_objfile.
+
+2020-05-15 Tom Tromey <tom@tromey.com>
+
+ * language.c (language_alloc_type_symbol): Set
+ SYMBOL_SECTION.
+ * symtab.c (initialize_objfile_symbol): Remove.
+ (allocate_symbol): Remove.
+ (allocate_template_symbol): Remove.
+ * dwarf2/read.c (fixup_go_packaging): Use "new".
+ (new_symbol): Use "new".
+ (read_variable): Don't call initialize_objfile_symbol. Use
+ "new".
+ (read_func_scope): Use "new".
+ * xcoffread.c (process_xcoff_symbol): Don't call
+ initialize_objfile_symbol.
+ (SYMBOL_DUP): Remove.
+ * coffread.c (process_coff_symbol, coff_read_enum_type): Use
+ "new".
+ * symtab.h (allocate_symbol, initialize_objfile_symbol)
+ (allocate_template_symbol): Don't declare.
+ (struct symbol): Add copy constructor. Change defaults.
+ * jit.c (finalize_symtab): Use "new".
+ * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
+ Use "new".
+ * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
+ (common_block_end): Use "new".
+ * mdebugread.c (parse_symbol): Use "new".
+ (new_symbol): Likewise.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * NEWS: Mention changes to help and apropos.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * command.h (enum command_class): Improve comments, document
+ that class_alias is for user-defined aliases, give the class
+ name for each class, remove unused class_xdb.
+ * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
+ * breakpoint.c (_initialize_breakpoint): Replace class_alias
+ by a precise class.
+ * infcmd.c (_initialize_infcmd): Likewise.
+ * reverse.c (_initialize_reverse): Likewise.
+ * stack.c (_initialize_stack): Likewise.
+ * symfile.c (_initialize_symfile): Likewise.
+ * tracepoint.c (_initialize_tracepoint): Likewise.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-decode.c (apropos_cmd): Produce output for aliases
+ when their aliased command is traversed.
+ (help_cmd): Add fput_command_names_styled call to
+ output command name and aliases when command has an alias.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-decode.h (help_cmd_list): Remove declaration.
+ * cli/cli-decode.c (help_cmd_list): Declare as static,
+ remove prefix argument, use bool for recurse arg, rework to show the aliases of
+ a command together with the command.
+ (fput_command_name_styled, fput_command_names_styled): New functions.
+ (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
+ fput_command_name_styled.
+ (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
+ * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
+ * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
+ * command.h (cmd_show_list): Likewise.
+ * dwarf2/index-cache.c (show_index_cache_command): Likewise.
+ * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * unittests/command-def-selftests.c (traverse_command_structure):
+ Verify all commands of a list have the same prefix command and
+ that only the top cmdlist commands have a null prefix.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
+ as prefix, not one of its aliases.
+ (set_cmd_prefix): Remove.
+ (do_add_cmd): Centralize the setting of the prefix of a command, when
+ command is defined after its full chain of prefix commands.
+ (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
+ (add_setshow_cmd_full): Likewise.
+ (update_prefix_field_of_prefixed_commands): New function.
+ (add_prefix_cmd): Replace non working call to set_cmd_prefix by
+ update_prefix_field_of_prefixed_commands.
+ * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
+ addresses of remote_set_cmdlist and remote_show_cmdlist given
+ as argument, not the address of an argument.
+ * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
+ * gdb/remote.c (_initialize_remote): Likewise.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-cmds.c (alias_command): Check for an existing alias
+ using lookup_cmd_composition, as valid_command_p is too strict
+ and forbids aliases that are the prefix of an existing alias
+ or command.
+ * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
+ command is properly recognised as a valid command.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * unittests/help-doc-selftests.c: Rename to
+ unittests/command-def-selftests.c
+ * unittests/command-def-selftests.c (help_doc_tests): Update some
+ comments.
+ (command_structure_tests, traverse_command_structure): New namespace
+ and function.
+ (command_structure_invariants_tests): New function.
+ (_initialize_command_def_selftests) Renamed from
+ _initialize_help_doc_selftests, register command_structure_invariants
+ selftest.
+
+2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
+ an alias of 'show'.
+
2020-05-15 Joel Brobecker <brobecker@adacore.com>
* ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames