]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
gdb: replace some calls to internal_error with gdb_assert
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index 2b4d94ddecaf952a7882f396b9dd5372e4a1c5f7..b3ec9c78b07edd40b1cad13ced9f76fa53d33987 100644 (file)
@@ -1,3 +1,322 @@
+2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * exec.c (build_section_table): Replace internal_error with
+       gdb_assert.
+       (section_table_xfer_memory_partial): Likewise.
+       * mdebugread.c (parse_partial_symbols): Likewise.
+       * psymtab.c (lookup_partial_symbol): Likewise.
+       * utils.c (wrap_here): Likewise.
+
+2020-04-02  Tom Tromey  <tromey@adacore.com>
+
+       * f-lang.c (build_fortran_types): Use arch_type to initialize
+       builtin_complex_s32 in the TYPE_CODE_ERROR case.
+
+2020-04-02  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (partial_die_info::read): Do not create a vector
+       of attributes.
+
+2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
+           Bernd Edlinger <bernd.edlinger@hotmail.de>
+           Tom Tromey  <tromey@adacore.com>
+
+       * buildsym.c (buildsym_compunit::record_line): Remove
+       deduplication code.
+
+2020-04-02  Tom de Vries  <tdevries@suse.de>
+
+       PR ada/24671
+       * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
+
+2020-04-02  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf2/read.c (dwarf2_gdb_index_functions,
+       dwarf2_debug_names_functions): Init lookup_global_symbol_language with
+       NULL.
+       * psymtab.c (psym_lookup_global_symbol_language): New function.
+       (psym_functions): Init psym_lookup_global_symbol_language with
+       psym_lookup_global_symbol_language.
+       * symfile-debug.c (debug_sym_quick_functions): Init
+       lookup_global_symbol_language with NULL.
+       * symfile.c (set_initial_language): Remove fixme comment.
+       * symfile.h (struct quick_symbol_functions): Add
+       lookup_global_symbol_language.
+       * symtab.c (find_quick_global_symbol_language): New function.
+       (find_main_name): Use find_quick_global_symbol_language.
+
+2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
+
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix undefined behavior and preserve
+       lines at eof.
+
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix the resizing condition.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * value.h (value_literal_complex): Add comment.
+       * valops.c (value_literal_complex): Refer to value.h.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
+       (scalar_type): New rule, from typebase.
+       (typebase): Use scalar_type.  Recognize complex types.
+       (field_name): Handle FLOAT_KEYWORD.
+       (ident_tokens): Add _Complex and __complex__.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       PR exp/25299:
+       * valarith.c (promotion_type, complex_binop): New functions.
+       (scalar_binop): Handle complex numbers.  Use promotion_type.
+       (value_pos, value_neg, value_complement): Handle complex numbers.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
+       (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
+       (parse_number): Handle complex numbers.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_decorations): Change complex suffix to "i".
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_complex): Use accessors.
+       * value.h (value_real_part, value_imaginary_part): Declare.
+       * valops.c (value_real_part, value_imaginary_part): New
+       functions.
+       * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
+       (read_range_type): Update.
+       * mdebugread.c (basic_type): Update.
+       * go-lang.c (build_go_types): Use init_complex_type.
+       * gdbtypes.h (struct main_type) <complex_type>: New member.
+       (init_complex_type): Update.
+       (arch_complex_type): Don't declare.
+       * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
+       Make name if none given.  Use alloc_type_copy.  Look for cached
+       complex type.
+       (arch_complex_type): Remove.
+       (gdbtypes_post_init): Use init_complex_type.
+       * f-lang.c (build_fortran_types): Use init_complex_type.
+       * dwarf2/read.c (read_base_type): Update.
+       * d-lang.c (build_d_types): Use init_complex_type.
+       * ctfread.c (read_base_type): Update.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * infrun.c (stop_all_threads): Update assertion, plus when
+       stopping threads, take into account that we might be trying
+       to stop an all-stop target.
+       (stop_waiting): Call 'stop_all_threads' if there exists a
+       non-stop target.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * target.h (exists_non_stop_target): New function declaration.
+       * target.c (exists_non_stop_target): New function.
+
+2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
+
+       PR gdb/24789
+       * eval.c (is_integral_or_integral_reference): New function.
+       (evaluate_subexp_standard): Allow integer references in
+       pointer arithmetic.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * remote.c (remote_target::remote_parse_stop_reply): Remove the
+       check for no ptid in the stop reply when the target is non-stop.
+
+2020-04-01  Tom Tromey  <tromey@adacore.com>
+
+       * symtab.h (class lookup_name_info) <lookup_name_info>: Change
+       "name" parameter to rvalue reference.  Initialize m_name_holder.
+       <lookup_name_info>: New overloads.
+       <name>: Return gdb::string_view.
+       <c_str>: New method.
+       <make_ignore_params>: Update.
+       <search_name_hash>: Update.
+       <language_lookup_name>: Return const char *.
+       <m_name>: Change type.
+       * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
+       (demangle_for_lookup_info::demangle_for_lookup_info): Update.
+       (lookup_name_info::match_any): Update.
+       * psymtab.c (match_partial_symbol, lookup_partial_symbol):
+       Update.
+       * minsyms.c (linkage_name_str): Update.
+       * language.c (default_symbol_name_matcher): Update.
+       * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
+       Update.
+       * ada-lang.c (ada_fold_name): Change parameter to string_view.
+       (ada_lookup_name_info::ada_lookup_name_info): Update.
+       (literal_symbol_name_matcher): Update.
+
+2020-04-01  Tom Tromey  <tromey@adacore.com>
+
+       * psymtab.c (psymtab_search_name): Remove function.
+       (psym_lookup_symbol): Create search name and lookup name here.
+       (lookup_partial_symbol): Remove "name" parameter; add
+       lookup_name.
+       (psym_expand_symtabs_for_function): Update.
+
+2020-03-31  Joel Jones  <joelkevinjones@gmail.com>
+
+       PR tui/25597:
+       * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
+
+2020-03-31  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
+       memcpy.
+
+2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
+
+       * features/riscv/32bit-csr.xml: Regenerated.
+       * features/riscv/64bit-csr.xml: Regenerated.
+
+2020-03-30  Tom Tromey  <tromey@adacore.com>
+
+       * ada-valprint.c (print_variant_part): Update.
+       * ada-lang.h (ada_which_variant_applies): Update.
+       * ada-lang.c (ada_which_variant_applies): Remove outer_type and
+       outer_valaddr parameters; replace with "outer" value parameter.
+       (to_fixed_variant_branch_type): Update.
+
+2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
+       <list>.  Remove inclusion of observable.h.
+       (PPC_DEBUG_CURRENT_VERSION): Move up define.
+       (struct arch_lwp_info): New struct.
+       (class ppc_linux_dreg_interface): New class.
+       (struct ppc_linux_process_info): New struct.
+       (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
+       <low_new_clone, low_forget_process, low_prepare_to_resume>
+       <copy_thread_dreg_state, mark_thread_stale>
+       <mark_debug_registers_changed, register_hw_breakpoint>
+       <clear_hw_breakpoint, register_wp, clear_wp>
+       <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
+       <num_memory_accesses, get_trigger_type>
+       <create_watchpoint_request, hwdebug_point_cmp>
+       <init_arch_lwp_info, get_arch_lwp_info>
+       <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
+       methods.
+       <struct ptid_hash>: New inner struct.
+       <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
+       members.
+       (saved_dabr_value, hwdebug_info, max_slots_number)
+       (struct hw_break_tuple, struct thread_points, ppc_threads)
+       (have_ptrace_hwdebug_interface)
+       (hwdebug_find_thread_points_by_tid)
+       (hwdebug_insert_point, hwdebug_remove_point): Remove.
+       (ppc_linux_nat_target::can_use_hw_breakpoint): Use
+       m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
+       (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
+       use m_dreg_interface.
+       (hwdebug_point_cmp): Change to...
+       (ppc_linux_nat_target::hwdebug_point_cmp): ...this method.  Use
+       reference arguments instead of pointers.
+       (ppc_linux_nat_target::ranged_break_num_registers): Use
+       m_dreg_interface.
+       (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
+       m_dreg_interface.  Call register_hw_breakpoint.
+       (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
+       m_dreg_interface.  Call clear_hw_breakpoint.
+       (get_trigger_type): Change to...
+       (ppc_linux_nat_target::get_trigger_type): ...this method.  Add
+       comment.
+       (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
+       use m_dreg_interface.  Call register_hw_breakpoint.
+       (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
+       use m_dreg_interface.  Call clear_hw_breakpoint.
+       (can_use_watchpoint_cond_accel): Change to...
+       (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
+       method.  Update comment, use m_dreg_interface and
+       m_process_info.
+       (calculate_dvc): Change to...
+       (ppc_linux_nat_target::calculate_dvc): ...this method.  Use
+       m_dreg_interface.
+       (num_memory_accesses): Change to...
+       (ppc_linux_nat_target::num_memory_accesses): ...this method.
+       (check_condition): Change to...
+       (ppc_linux_nat_target::check_condition): ...this method.
+       (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
+       comment, use m_dreg_interface.
+       (create_watchpoint_request): Change to...
+       (ppc_linux_nat_target::create_watchpoint_request): ...this
+       method.  Use m_dreg_interface.
+       (ppc_linux_nat_target::insert_watchpoint): Add comment, use
+       m_dreg_interface.  Call register_hw_breakpoint or register_wp.
+       (ppc_linux_nat_target::remove_watchpoint): Add comment, use
+       m_dreg_interface.  Call clear_hw_breakpoint or clear_wp.
+       (ppc_linux_nat_target::low_forget_process)
+       (ppc_linux_nat_target::low_new_fork)
+       (ppc_linux_nat_target::low_new_clone)
+       (ppc_linux_nat_target::low_delete_thread)
+       (ppc_linux_nat_target::low_prepare_to_resume): New methods.
+       (ppc_linux_nat_target::low_new_thread): Remove previous logic,
+       only call mark_thread_stale.
+       (ppc_linux_thread_exit): Remove.
+       (ppc_linux_nat_target::stopped_data_address): Change to...
+       (ppc_linux_nat_target::low_stopped_data_address): This. Add
+       comment, use m_dreg_interface and m_thread_hw_breakpoints.
+       (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
+       (ppc_linux_nat_target::stopped_by_watchpoint): This.  Add
+       comment.  Call low_stopped_data_address.
+       (ppc_linux_nat_target::watchpoint_addr_within_range): Use
+       m_dreg_interface.
+       (ppc_linux_nat_target::masked_watch_num_registers): Use
+       m_dreg_interface.
+       (ppc_linux_nat_target::copy_thread_dreg_state)
+       (ppc_linux_nat_target::mark_thread_stale)
+       (ppc_linux_nat_target::mark_debug_registers_changed)
+       (ppc_linux_nat_target::register_hw_breakpoint)
+       (ppc_linux_nat_target::clear_hw_breakpoint)
+       (ppc_linux_nat_target::register_wp)
+       (ppc_linux_nat_target::clear_wp)
+       (ppc_linux_nat_target::init_arch_lwp_info)
+       (ppc_linux_nat_target::get_arch_lwp_info): New methods.
+       (_initialize_ppc_linux_nat): Remove observer callback.
+
+2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
+       (ppc_linux_nat_target::auxv_parse)
+       (ppc_linux_nat_target::read_description)
+       (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
+       Move up.
+
+2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * linux-nat.h (low_new_clone): New method.
+       * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
+
+2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
+       (dbx_expand_psymtab): ... this.
+       (start_psymtab): Update.
+       * mdebugread.c (psymtab_to_symtab_1): Rename to...
+       (mdebug_expand_psymtab): ... this.
+       (parse_partial_symbols): Update.
+       (new_psymtab): Update.
+       * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
+       (xcoff_expand_psymtab): ... this.
+       (xcoff_start_psymtab): Update.
+
 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * psympriv.h (partial_symtab) <read_dependencies>: Rename to...