X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=354384a3937f0194ba6eef9bc096008625a5506b;hb=9f26053690299e3a5d295d78c4ceeaf840344f0b;hp=db21675e8e2d2cfc96bc49a2e96d9270e30ef260;hpb=1ef40c1362fc2411ee45ad7251c4e9cc4c906435;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db21675e8e2..354384a3937 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,407 @@ +2021-05-27 Simon Marchi + + * 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 + + * 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 + + PR symtab/27919 + * dwarf2/read.c (process_psymtab_comp_unit): + +2021-05-27 Tom de Vries + + * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf + error. + +2021-05-27 Tom de Vries + + 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 + + * regcache.c (reg_buffer::reg_buffer): Default-initialize + m_registers array. + +2021-05-26 Tom Tromey + + * 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 + + * python/py-tui.c (tui_py_window::refresh_window): + Avoid flickering. + +2021-05-23 Tom de Vries + + 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 + + * main.c (enum cmdarg_kind): Fix option type comments for + CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND. + +2021-05-21 Tom de Vries + + PR testsuite/25047 + * contrib/cc-with-tweaks.sh: Handle -l. + +2021-05-21 Tom de Vries + + 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 + + * linespec.c (linespec_p): Remove. Replace all uses with + "linespec *". + +2021-05-20 Alexandra Hájková + Pedro Alves + + * 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á + + * MAINTAINERS (Write After Approval): Add myself. + +2021-05-19 John Baldwin + + * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const. + +2021-05-18 Alexandra Hájková + + * inflow.c (new_tty): Do not leak tty. + +2021-05-17 Tom Tromey + + * 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 + + * 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) : New methods. + : Add "m_" prefix. Now private. + : 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 + + * 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 + + * 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 + + * .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 + + * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw + if frame is null. + +2021-05-17 Tom Tromey + + * nat/linux-osdata.c (user_from_uid, time_from_time_t) + (group_from_gid): Subtract one from strncpy length. + +2021-05-17 Tom Tromey + + * source.c (add_path): Check 'p' before using 'p[-1]'. + +2021-05-17 Tom Tromey + + * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New. + (dwarf2_per_cu_data_up): New typedef. + (struct dwarf2_per_bfd) : Change return type. + : 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 + + * dwarf2/read.c (tu_abbrev_offset::operator<): New method. + (sort_tu_by_abbrev_offset): Remove. + (build_type_psymtabs): Update. + +2021-05-17 Simon Marchi + + * py-project.toml: New. + * gdb-gdb.py.in: Re-format. + +2021-05-17 Simon Marchi + + * cli/cli-decode.h (cmd_list_element) : + New, use it. + * command.h (cmd_func_p): Remove. + * cli/cli-decode.c (cmd_func_p): Remove. + +2021-05-17 Simon Marchi + + * cli/cli-decode.h (cmd_list_element) : New, use it. + +2021-05-17 Simon Marchi + + * cli/cli-decode.h (cmd_list_element) : Rename + to... + : ... 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 + + * Rename "prefixlist" parameters to "subcommands" throughout. + * cli/cli-decode.h (cmd_list_element) : Rename to... + : ... this. + * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to... + (lookup_cmd_with_subcommands): ... this. + +2021-05-17 Simon Marchi + + * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0. + +2021-05-17 Simon Marchi + + * cli/cli-decode.h (prefixname): Make const, move implementation + to cli/cli-decode.c. + * cli/cli-decode.c (cmd_list_element::prefixname): New. + +2021-05-16 Weimin Pan + + * ctfread.c (new_symbol): Set function address. + (read_func_kind_type): Remove incorrect type name setting. + Don't copy name returned from ctf_type_ame_raw throughout file. + +2021-05-14 Tom Tromey + + * rust-lang.c (rust_language::val_print_struct) + (rust_language::print_enum): Use common_val_print, not + value_print_inner. + +2021-05-14 Tankut Baris Aktemur + + * python/py-inferior.c (infpy_get_connection_num): New function. + (inferior_object_getset): Add a new element for 'connection_num'. + * NEWS: Mention the 'connection_num' attribute of Inferior objects. + +2021-05-14 Andrew Burgess + + * remote.c (check_pending_events_prevent_wildcard_vcont): Change + argument type, update and re-wrap, header comment. + (remote_target::commit_resumed): Convert any_process_wildcard and + may_global_wildcard_vcont from int to bool. + +2021-05-14 Kent Cheung + + * cp-valprint.c (cp_print_value): Replaced duplicate code. + * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth + just before printing child values. + (gdbscm_apply_val_pretty_printer): Don't check max_depth before + printing string representation. + * python/py-prettyprint.c (print_children): Check max_depth just + before printing child values. + (gdbpy_apply_val_pretty_printer): Don't check max_depth before + printing string representation. + +2021-05-14 Mike Frysinger + + * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to + sim/callback.h & sim/sim.h. + +2021-05-13 Mike Frysinger + + * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and + sim-regno.h include. + +2021-05-13 Simon Marchi + + * inf-child.h (inf_child_target) : New. + * inf-child.c (inf_child_target::follow_exec): New. + +2021-05-13 Simon Marchi + + * target.h (struct target_ops) : Add ptid_t + parameter. + (target_follow_exec): Likewise. + * target.c (target_follow_exec): Add ptid_t parameter. + * infrun.c (follow_exec): Adjust call to target_follow_exec, + don't push target nor create thread. + * linux-thread-db.c (class thread_db_target) : New. + (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD. + (thread_db_target::follow_exec): New. + * remote.c (class remote_target) : Add ptid_t parameter. + (remote_target::follow_exec): Call + process_stratum_target::follow_exec. + * target-delegates.c: Re-generate. + +2021-05-13 Simon Marchi + + * infrun.c (follow_exec): Call target_follow_fork when + follow-exec-mode is same. + * target.h (target_follow_fork): Improve doc. + +2021-05-13 Simon Marchi + + * cli/cli-decode.h (struct cmd_list_element) : + Remove. + * cli/cli-setshow.c (do_show_command): Adjust. + +2021-05-13 Luis Machado + + * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't + include the last address in the range. + +2021-05-12 Simon Marchi + + * python/python-internal.h (gdbpy_parse_command_name): Return + gdb::unique_xmalloc_ptr. + * python/py-cmd.c (gdbpy_parse_command_name): Likewise. + (cmdpy_init): Adjust. + * python/py-param.c (parmpy_init): Adjust. + (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it + when done. + +2021-05-12 George Barrett + + * NEWS (Guile API): Note the addition of the new procedure. + * guile/scm-value.c (gdbscm_value_const_value): Add + implementation of value-const-value procedure. + (value_functions): Add value-const-value procedure. + +2021-05-12 George Barrett + + * NEWS (Guile API): Note the addition of new procedures. + * guile/scm-value.c (gdbscm_reference_value): Add helper function + for reference value creation. + (gdbscm_value_reference_value): Add implementation of + value-reference-value procedure. + (gdbscm_value_rvalue_reference_value): Add implementation of + value-rvalue-reference-value procedure. + (value_functions): Add value-reference-value procedure. Add + value-rvalue-reference-value procedure. + +2021-05-12 George Barrett + + * guile/scm-type.c (type_integer_constants): Add binding for + TYPE_CODE_RVALUE_REF. + * guile/scm-value.c (gdbscm_value_referenced_value): Handle + dereferencing of rvalue references. + * NEWS (Guile API): Note improvements in rvalue reference support. + +2021-05-12 Markus Metzger + + * btrace.c (handle_pt_insn_events): Ignore status update enable + events. + +2021-05-11 Simon Marchi + + * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix + indentation. + +2021-05-11 Simon Marchi + + * cli/cli-decode.h (struct cmd_list_element): Fix indentation. + +2021-05-10 Lancelot Six + + PR gdb/27614 + * contrib/gdb-add-index.sh: Fix when called with a symlink as an + argument. + +2021-05-10 Simon Marchi + + * nat/linux-waitpid.c (status_to_str): Show signal name. + +2021-05-09 Andrew Burgess + + * python/py-breakpoint.c (pybp_debug): New static global. + (show_pybp_debug): New function. + (pybp_debug_printf): Define. + (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define. + (gdbpy_breakpoint_created): Add some debugging. + (gdbpy_breakpoint_deleted): Likewise. + (gdbpy_breakpoint_modified): Likewise. + (_initialize_py_breakpoint): New function. + 2021-05-09 Andrew Burgess * python/py-unwind.c (pyuw_debug): Convert to bool. @@ -147,15 +551,6 @@ * Re-format all Python files using black. -2021-05-07 Tom de Vries - - PR symtab/26327 - * dwarf2/read.c (struct dwarf2_cu): Remove ancestor. - (dwarf2_cu::get_builder): Remove ancestor-related code. - (new_symbol): Remove code supporting pre-4.1 gcc that show arguments - of inlined functions as locals. - (follow_die_offset, follow_die_sig_1): Remove setting of ancestor. - 2021-05-07 Andrew Burgess * guile/guile-internal.h (gdbscm_safe_source_script): Change