gdb: remove unnecessary lookup_cmd when deprecating commands
[binutils-gdb.git] / gdb / ChangeLog
index 4184c9f1ff82deb0c259e4fed872fe9570febbd3..354384a3937f0194ba6eef9bc096008625a5506b 100644 (file)
@@ -1,3 +1,232 @@
+2021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * mi/mi-main.c (_initialize_mi_main):
+       * python/py-auto-load.c (gdbpy_initialize_auto_load):
+       * remote.c (_initialize_remote):
+
+2021-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * command.h (set_show_commands): New.
+       (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
+       add_setshow_boolean_cmd, add_setshow_filename_cmd,
+       add_setshow_string_cmd, add_setshow_string_noescape_cmd,
+       add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
+       add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
+       add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
+       Return set_show_commands.  Adjust callers.
+       * cli/cli-decode.c (add_setshow_cmd_full): Return
+       set_show_commands, remove result parameters, adjust callers.
+
+2021-05-27  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/27919
+       * dwarf2/read.c (process_psymtab_comp_unit):
+
+2021-05-27  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
+       error.
+
+2021-05-27  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/27898
+       * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
+       * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
+       * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
+       * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
+       load_all_dies init.
+       (dwarf2_per_cu_data): Remove load_all_dies field.
+
+2021-05-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * regcache.c (reg_buffer::reg_buffer): Default-initialize
+       m_registers array.
+
+2021-05-26  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (allocate_type_unit_groups_table)
+       (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
+       htab_delete_entry.
+       (free_line_header_voidp): Remove.
+       * completer.c
+       (completion_tracker::completion_hash_entry::deleter): Remove.
+       (completion_tracker::discard_completions): Use htab_delete_entry.
+       * utils.h (htab_delete_entry): New template function.
+
+2021-05-24  Hannes Domani  <ssbssa@yahoo.de>
+
+       * python/py-tui.c (tui_py_window::refresh_window):
+       Avoid flickering.
+
+2021-05-23  Tom de Vries  <tdevries@suse.de>
+
+       PR tdep/27822
+       * target.h (struct target_ops): Mention target_thread_architecture in
+       read_description comment.
+       * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
+       pid to determine if process is 64-bit or 32-bit.
+       * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
+       Same.
+       * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
+        * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
+       * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
+       * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
+       Likewise, use pid to determine if kernel supports reading VFP
+       registers.
+
+2021-05-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * main.c (enum cmdarg_kind): Fix option type comments for
+       CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
+
+2021-05-21  Tom de Vries  <tdevries@suse.de>
+
+       PR testsuite/25047
+       * contrib/cc-with-tweaks.sh: Handle -l.
+
+2021-05-21  Tom de Vries  <tdevries@suse.de>
+
+       PR breakpoint/27889
+       * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
+       objects.  Call get_jiter_objfile_data with the_objfile.
+
+2021-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linespec.c (linespec_p): Remove.  Replace all uses with
+       "linespec *".
+
+2021-05-20  Alexandra Hájková  <ahajkova@redhat.com>
+           Pedro Alves  <pedro@palves.net>
+
+       * cli/cli-script.h (command_line_up): New unique_ptr typedef.
+       * cli/cli-script.c (multi_line_command_p): Use unique_ptr
+       command_line_up instead of struct command_line.
+       (build_command_line): Likewise.
+       (get_command_line): Update the cmd function call parameter.
+       (process_next_line):  Use unique_ptr command_line_up instead
+       of struct command_line.
+       (recurse_read_control_structure): Change the the type of
+       next to command_line_up.
+       (read_command_lines_1): Change type of `next' to be
+       command_line_up and update all references of `next'
+       accordingly.
+
+2021-05-20  Alexandra Hájková  <ahajkova@redhat.com>
+
+       * MAINTAINERS (Write After Approval): Add myself.
+
+2021-05-19  John Baldwin  <jhb@FreeBSD.org>
+
+       * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
+
+2021-05-18  Alexandra Hájková  <ahajkova@redhat.com>
+
+       * inflow.c (new_tty): Do not leak tty.
+
+2021-05-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.h: Update include.
+       * dwarf2/read.c: Update include.
+       * dwarf2/line-header.c: Update include.
+       * dwarf2/cu.h: Update include.
+       * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
+       * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
+       * Makefile.in (COMMON_SFILES): Update.
+
+2021-05-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (maybe_queue_comp_unit)
+       (dwarf2_per_objfile::age_comp_units): Update.
+       (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
+       dwarf2_cu methods.
+       * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
+       add_dependence>: New methods.
+       <m_dependencies>: Add "m_" prefix.  Now private.
+       <m_mark>: Add "m_" prefix.
+       * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
+       (dwarf2_mark_helper): New function.
+       (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
+
+2021-05-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
+       (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
+       (dwarf2_cu::dwarf2_cu): Move to cu.c.
+       * dwarf2/cu.c: New file.
+       * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
+
+2021-05-17  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
+       * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
+       Move to cu.h.
+       * dwarf2/cu.h: New file.
+
+2021-05-17  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * .dir-locals.el: Set sentence-end-double-space for all modes, and
+       set brace-list-open to 0 for C and C++ modes.
+
+2021-05-17  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
+       if frame is null.
+
+2021-05-17  Tom Tromey  <tromey@adacore.com>
+
+       * nat/linux-osdata.c (user_from_uid, time_from_time_t)
+       (group_from_gid): Subtract one from strncpy length.
+
+2021-05-17  Tom Tromey  <tromey@adacore.com>
+
+       * source.c (add_path): Check 'p' before using 'p[-1]'.
+
+2021-05-17  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
+       (dwarf2_per_cu_data_up): New typedef.
+       (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
+       <all_comp_units>: Use dwarf2_per_cu_data_up.
+       * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
+       (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
+       (create_cu_from_index_list): Likewise.
+       (create_signatured_type_table_from_index)
+       (create_cus_from_debug_names_list, add_type_unit)
+       (read_comp_units_from_section): Update.
+       (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
+       (run_test): Update.
+
+2021-05-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
+       (sort_tu_by_abbrev_offset): Remove.
+       (build_type_psymtabs): Update.
+
+2021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * py-project.toml: New.
+       * gdb-gdb.py.in: Re-format.
+
+2021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
+       New, use it.
+       * command.h (cmd_func_p): Remove.
+       * cli/cli-decode.c (cmd_func_p): Remove.
+
+2021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
+
+2021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
+       to...
+       <alias_target>: ... this.
+       (add_alias_cmd): Rename old to target.
+       (add_info_alias): Rename old_name to target_name.
+       (add_com_alias): Likewise.
+
 2021-05-17  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * Rename "prefixlist" parameters to "subcommands" throughout.