X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=d5715a8fa00567096cccfe54adbd978d3aae81b3;hb=64dc2d4bd24ff7119c913fff91184414f09b8042;hp=89f43631cc11bfdf26a7018138370527d62d7375;hpb=66eaca97ebd0f1b456ffe158fce73bafcce561bb;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89f43631cc..d5715a8fa0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,917 @@ +2020-04-01 Bernd Edlinger + + * buildsym.c (record_line): Fix undefined behavior and preserve + lines at eof. + +2020-04-01 Bernd Edlinger + + * buildsym.c (record_line): Fix the resizing condition. + +2020-04-01 Tom Tromey + + * value.h (value_literal_complex): Add comment. + * valops.c (value_literal_complex): Refer to value.h. + +2020-04-01 Tom Tromey + + * 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 + + 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 + + * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. + (exp) : New rules. + (parse_number): Handle complex numbers. + +2020-04-01 Tom Tromey + + * c-valprint.c (c_decorations): Change complex suffix to "i". + +2020-04-01 Tom Tromey + + * 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 + + * 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) : 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 + + * 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 + + * target.h (exists_non_stop_target): New function declaration. + * target.c (exists_non_stop_target): New function. + +2020-04-01 Hannes Domani + + 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 + + * 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 + + * symtab.h (class lookup_name_info) : Change + "name" parameter to rvalue reference. Initialize m_name_holder. + : New overloads. + : Return gdb::string_view. + : New method. + : Update. + : Update. + : Return const char *. + : 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 + + * 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 + + PR tui/25597: + * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. + +2020-03-31 Tom Tromey + + * dwarf2/abbrev.c (abbrev_table::read): Conditionally call + memcpy. + +2020-03-30 Nelson Chu + + * features/riscv/32bit-csr.xml: Regenerated. + * features/riscv/64bit-csr.xml: Regenerated. + +2020-03-30 Tom Tromey + + * 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 + + * ppc-linux-nat.c: Include , , and + . 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) + + + + + + + + + : Declare as + methods. + : New inner struct. + : 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 + + * 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 + + * linux-nat.h (low_new_clone): New method. + * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. + +2020-03-29 Simon Marchi + + * 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 + + * psympriv.h (partial_symtab) : Rename to... + : ... this. + * psymtab.c (partial_symtab::read_dependencies): Rename to... + (partial_symtab::expand_dependencies): ... this. + * dwarf2/read.c (dwarf2_include_psymtab) : + Update. + (dwarf2_psymtab::expand_psymtab): Update. + * dbxread.c (dbx_psymtab_to_symtab_1): Update. + * mdebugread.c (psymtab_to_symtab_1): Update. + * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. + +2020-03-29 Simon Marchi + + * psympriv.h (discard_psymtab): Remove. + * dbxread.c (dbx_end_psymtab): Update. + * xcoffread.c (xcoff_end_psymtab): Update. + +2020-03-28 Tom Tromey + + * dwarf2/attribute.h (struct attribute) : Update + comment. + +2020-03-28 Tom Tromey + + * dwarf2/read.c (read_attribute_reprocess): Fix formatting. + +2020-03-27 Hannes Domani + + * windows-nat.c (windows_add_all_dlls): Fix system dll paths. + +2020-03-26 John Baldwin + + * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) + (mark_common_block_symbol_computed, read_tag_string_type) + (attr_to_dynamic_prop, read_subrange_type): Update. + (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move + to be methods on struct attribute. + (skip_one_die, process_imported_unit_die, read_namespace_alias) + (read_call_site_scope, partial_die_info::read) + (partial_die_info::read, lookup_die_type, follow_die_ref): + Update. + * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, + from dwarf2_get_ref_die_offset. + (attribute::constant_value): New method, from + dwarf2_get_attr_constant_value. + * dwarf2/attribute.h (struct attribute) : + Declare method. + : New method. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) + (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) + (dwarf_type_encoding_name): Move to stringify.c. + * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. + * dwarf2/stringify.c: New file. + * dwarf2/stringify.h: New file. + +2020-03-26 Tom Tromey + + * dwarf2/die.h (struct die_info) : + Rewrite. + +2020-03-26 Tom Tromey + + * dwarf2/die.h (struct die_info) : New + methods. + * dwarf2/read.c (lookup_addr_base): Move to die.h. + (lookup_ranges_base): Likewise. + (read_cutu_die_from_dwo, read_full_die_1): Update. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (read_import_statement, read_file_scope) + (read_type_unit_scope, inherit_abstract_dies, read_func_scope) + (read_lexical_block_scope, read_call_site_scope) + (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) + (handle_struct_member_die, process_structure_scope) + (update_enumeration_type_from_children) + (process_enumeration_scope, read_array_type, read_common_block) + (read_namespace, read_module, read_subroutine_type): Update. + (sibling_die): Remove. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) + (build_type_psymtabs_reader, read_structure_type) + (read_enumeration_type, read_full_die_1): Update. + (dwarf2_attr_no_follow): Move to die.h. + * dwarf2/die.h (struct die_info) : New method. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (struct dwarf2_cu) : Remove. + : Now an optional. + (dwarf2_find_base_address, dwarf2_rnglists_process) + (dwarf2_ranges_process, fill_in_loclist_baton) + (dwarf2_symbol_mark_computed): Update. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (struct die_info): Move to die.h. + * dwarf2/die.h: New file. + +2020-03-26 Tom Tromey + + * dwarf2/line-header.h (dwarf_decode_line_header): Declare. + * dwarf2/read.c + (dwarf2_statement_list_fits_in_line_number_section_complaint): + Move to line-header.c. + (read_checked_initial_length_and_offset, read_formatted_entries): + Likewise. + (dwarf_decode_line_header): Split into two. + * dwarf2/line-header.c + (dwarf2_statement_list_fits_in_line_number_section_complaint): + Move from read.c. + (read_checked_initial_length_and_offset, read_formatted_entries): + Likewise. + (dwarf_decode_line_header): New function, split from read.c. + +2020-03-26 Tom Tromey + + * dwarf2/read.h (struct dwarf2_per_objfile) : + Declare method. + * dwarf2/read.c (read_attribute_value): Update. + (dwarf2_per_objfile::read_line_string): Rename from + read_indirect_line_string. + (read_formatted_entries): Update. + +2020-03-26 Tom Tromey + + * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local + variable. + +2020-03-26 Tom Tromey + + * dwarf2/macro.h (dwarf_decode_macros): Make section parameter + const. + * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) + (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section + parameter const. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. + * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. + * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. + (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. + +2020-03-26 Tom Tromey + + * dwarf2/line-header.h (struct line_header) : Use const. + : Add const overload. + * dwarf2/line-header.c (line_header::file_file_name) + (line_header::file_full_name): Update. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) + (macro_start_file, consume_improper_spaces) + (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) + (dwarf_parse_macro_header, dwarf_decode_macro_bytes) + (dwarf_decode_macros): Move to macro.c. + * dwarf2/macro.c: New file. + * dwarf2/macro.h: New file. + * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. + +2020-03-26 Tom Tromey + + * dwarf2/section.h (struct dwarf2_section_info) : New + method. + * dwarf2/section.c: New method. From + read_indirect_string_at_offset_from. + * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. + (read_indirect_string_at_offset_from): Move to section.c. + (read_indirect_string_at_offset): Rewrite. + (read_indirect_line_string_at_offset): Remove. + (read_indirect_string, read_indirect_line_string) + (dwarf_decode_macro_bytes): Update. + +2020-03-26 Tom Tromey + + * dwarf2/section.h (struct dwarf2_section_info) + : Declare. + (dwarf2_section_buffer_overflow_complaint): Don't declare. + * dwarf2/section.c (dwarf2_section_info::overflow_complaint): + Rename from dwarf2_section_buffer_overflow_complaint. + * dwarf2/read.c (skip_one_die, partial_die_info::read) + (skip_form_bytes, dwarf_decode_macro_bytes): Update. + +2020-03-26 Tom Tromey + + * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): + Declare. + * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): + Move from read.c. + * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move + to section.c. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (macro_start_file): Change "cu" parameter to + "builder". + (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile + parameter. + (dwarf_decode_macros): Update. + +2020-03-26 Tom Tromey + + * dwarf2/read.c (read_attribute_value): Update. + (read_indirect_string_from_dwz): Move to dwz.c; change into + method. + (dwarf_decode_macro_bytes): Update. + * dwarf2/dwz.h (struct dwz_file) : Declare method. + * dwarf2/dwz.c: New file. + * Makefile.in (COMMON_SFILES): Add dwz.c. + +2020-03-26 Tom Tromey + + * dwarf2/read.h (struct dwz_file): Move to dwz.h. + * dwarf2/read.c: Add include. + * dwarf2/index-write.c: Add include. + * dwarf2/index-cache.c: Add include. + * dwarf2/dwz.h: New file. + +2020-03-25 Tom Tromey + + * compile/compile-object-load.c (get_out_value_type): Mention + correct symbol name in error message. + +2020-03-25 Hannes Domani + + * windows-nat.c (windows_add_all_dlls): Fix system dll paths. + +2020-03-25 Tom de Vries + + * symtab.h (is_main_symtab_of_compunit_symtab): New function. + * symmisc.c (dump_symtab_1): Print user and includes fields. + (maintenance_info_symtabs): Same. + +2020-03-25 Andrew Burgess + + PR gdb/25534 + * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. + (riscv_regcache_cooked_write): New function. + (riscv_push_dummy_call): Use new function. + (riscv_return_value): Likewise. + +2020-03-24 Simon Marchi + + * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. + * fbsd-nat.h (class fbsd_nat_target) : Likewise. + * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. + * inf-ptrace.h (struct inf_ptrace_target) : Likewise. + * infrun.c (follow_fork): Likewise. + (follow_fork_inferior): Likewise. + * linux-nat.c (linux_nat_target::follow_fork): Likewise. + * linux-nat.h (class linux_nat_target): Likewise. + * remote.c (class remote_target) : Likewise. + (remote_target::follow_fork): Likewise. + * target-delegates.c: Re-generate. + * target.c (default_follow_fork): Likewise. + (target_follow_fork): Likewise. + * target.h (struct target_ops) : Likewise. + (target_follow_fork): Likewise. + +2020-03-24 Tom de Vries + + * psymtab.c (maintenance_info_psymtabs): Print user field. + +2020-03-20 Tom Tromey + + * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" + const. + * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" + const. + +2020-03-20 Simon Marchi + + * ptrace.m4: Don't check for ptrace declaration. + * config.in: Re-generate. + * configure: Re-generate. + * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is + not defined. + +2020-03-20 Kamil Rytarowski + + * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to + `PTRACE_TYPE_RET'. + * i386-bsd-nat.c (gdb_ptrace): Likewise. + * sparc-nat.c (gdb_ptrace): Likewise. + * x86-bsd-nat.c (gdb_ptrace): Likewise. + +2020-03-20 Tom Tromey + + * c-exp.y (lex_one_token): Fix assert. + +2020-03-20 Tom Tromey + + * ada-tasks.c (read_atcb): Use smaller length in strncpy call. + * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in + strncpy call. + +2020-03-20 Tom Tromey + + * symmisc.c (maintenance_print_one_line_table): Use ui_out. + +2020-03-20 Tom Tromey + + * ada-valprint.c (print_variant_part): Remove parameters; switch + to value-based API. + (print_field_values): Likewise. + (ada_val_print_struct_union): Likewise. + (ada_value_print_1): Update. + +2020-03-20 Kamil Rytarowski + + * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + +2020-03-20 Kamil Rytarowski + + * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass + it to the ptrace call. + * (store_registers): Likewise. + +2020-03-20 Kamil Rytarowski + + * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass + it to the ptrace call. + * (store_registers): Likewise. + +2020-03-19 Luis Machado + + * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not + valid, fetch vg value from ptrace. + +2020-03-19 Kamil Rytarowski + * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. + * inf-ptrace.c: Likewise. + * (gdb_ptrace): Add. + * (inf_ptrace_target::resume): Update. + * (inf_ptrace_target::xfer_partial): Likewise. + * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. + * (inf_ptrace_peek_poke): Update. + +2020-03-19 Kamil Rytarowski + + * x86-bsd-nat.c (gdb_ptrace): New. + * (x86bsd_dr_set): Add new argument `ptid'. + * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, + x86bsd_dr_set_addr): Update. + +2020-03-19 Andrew Burgess + + * remote.c (remote_target::process_stop_reply): Handle events for + all threads differently. + +2020-03-19 Andrew Burgess + + * completer.c (completion_tracker::remove_completion): Define new + function. + * completer.h (completion_tracker::remove_completion): Declare new + function. + * symtab.c (completion_list_add_symbol): Remove aliasing msymbols + when adding a C++ function symbol. + +2020-03-19 Andrew Burgess + + * completer.c (completion_tracker::completion_hash_entry): Define + new class. + (advance_to_filename_complete_word_point): Call + recompute_lowest_common_denominator. + (completion_tracker::completion_tracker): Call discard_completions + to setup the hash table. + (completion_tracker::discard_completions): Allow for being called + from the constructor, pass new equal function, and element deleter + when constructing the hash table. Initialise new class member + variables. + (completion_tracker::maybe_add_completion): Remove use of + m_entries_vec, and store more information into m_entries_hash. + (completion_tracker::recompute_lcd_visitor): New function, most + content taken from... + (completion_tracker::recompute_lowest_common_denominator): + ...here, this now just visits each item in the hash calling the + above visitor. + (completion_tracker::build_completion_result): Remove use of + m_entries_vec, call recompute_lowest_common_denominator. + * completer.h (completion_tracker::have_completions): Remove use + of m_entries_vec. + (completion_tracker::completion_hash_entry): Declare new class. + (completion_tracker::recompute_lowest_common_denominator): Change + function signature. + (completion_tracker::recompute_lcd_visitor): Declare new function. + (completion_tracker::m_entries_vec): Delete. + (completion_tracker::m_entries_hash): Initialize to NULL. + (completion_tracker::m_lowest_common_denominator_valid): New + member variable. + (completion_tracker::m_lowest_common_denominator_max_length): New + member variable. + +2020-03-17 Kamil Rytarowski + + * regformats/regdef.h: Put reg in gdb namespace. + +2020-03-17 Kamil Rytarowski + + * i386-bsd-nat.c (gdb_ptrace): New. + * (i386bsd_fetch_inferior_registers, + i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. + * (i386bsd_fetch_inferior_registers, + i386bsd_store_inferior_registers) Use gdb_ptrace. + +2020-03-17 Kamil Rytarowski + + * amd64-bsd-nat.c (gdb_ptrace): New. + * (amd64bsd_fetch_inferior_registers, + amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. + * (amd64bsd_fetch_inferior_registers, + amd64bsd_store_inferior_registers) Use gdb_ptrace. + +2020-03-17 Kamil Rytarowski + + * user-regs.c (user_reg::read): Rename to... + (user_reg::xread): ...this. + * (append_user_reg): Rename argument `read' to `xread'. + * (user_reg_add_builtin): Likewise. + * (user_reg_add): Likewise. + * (value_of_user_reg): Likewise. + +2020-03-17 Kamil Rytarowski + + * sparc-nat.c (gdb_ptrace): New. + * sparc-nat.c (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers) Remove obsolete comment. + * sparc-nat.c (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers) Switch from pid_t to ptid_t. + * sparc-nat.c (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers) Use gdb_ptrace. + +2020-03-17 Kamil Rytarowski + + * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass + it to the ptrace call. + * sh-nbsd-nat.c (store_registers): Likewise. + +2020-03-17 Kamil Rytarowski + + * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + +2020-03-17 Kamil Rytarowski + + * amd64-bsd-nat.c: Include amd64-bsd-nat.h". + +2020-03-17 Kamil Rytarowski + + * nbsd-nat.c: Include , and + . + * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. + +2020-03-17 Tom de Vries + + PR gdb/23710 + * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang + fields. + * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang + fields. + (process_imported_unit_die): Skip import of c++ CUs. + +2020-03-16 Tom Tromey + + * p-valprint.c (pascal_object_print_value): Initialize + base_value. + +2020-03-16 Anton Kolesov + Shahab Vahedi + + * Makefile.in: Add arch/arc.o + * configure.tgt: Likewise. + * arc-tdep.c (arc_tdesc_init): Use arc_read_description. + (_initialize_arc_tdep): Don't initialize old target descriptions. + (arc_read_description): New function to cache target descriptions. + * arc-tdep.h (arc_read_description): Add proto type. + * arch/arc.c: New file. + * arch/arc.h: Likewise. + * features/Makefile: Replace old target descriptions with new. + * features/arc-arcompact.c: Remove. + * features/arc-arcompact.xml: Likewise. + * features/arc-v2.c: Likewise + * features/arc-v2.xml: Likewise + * features/arc/aux-arcompact.xml: New file. + * features/arc/aux-v2.xml: Likewise. + * features/arc/core-arcompact.xml: Likewise. + * features/arc/core-v2.xml: Likewise. + * features/arc/aux-arcompact.c: Generate. + * features/arc/aux-v2.c: Likewise. + * features/arc/core-arcompact.c: Likewise. + * features/arc/core-v2.c: Likewise. + * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. + +2020-03-16 Tom Tromey + + PR gdb/25663: + * dwarf2/read.c (dwarf2_name): Strip leading namespaces after + putting value into bcache. + +2020-03-16 Simon Marchi + + PR gdb/21500 + * amd64-windows-tdep.c (amd64_windows_init_abi): Rename + to... + (amd64_windows_init_abi_common): ... this. Don't set size of + long type. + (amd64_windows_init_abi): New function. + (amd64_cygwin_init_abi): New function. + (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for + the Cygwin OS ABI. + * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify + comment. + +2020-03-16 Simon Marchi + + * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. + * windows-tdep.c (CYGWIN_DLL_NAME): New. + (pe_import_directory_entry): New struct type. + (is_linked_with_cygwin_dll): New function. + * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select + GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. + * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. + +2020-03-16 Simon Marchi + + * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except + i386_cygwin_core_osabi_sniffer. + +2020-03-16 Simon Marchi + + * i386-cygwin-tdep.c: Rename to... + * i386-windows-tdep.c: ... this. + * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to + i386-windows-tdep.c. + * configure.tgt: Likewise. + +2020-03-16 Simon Marchi + + * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. + * osabi.c (gdb_osabi_names): Add "Windows". + * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return + GDB_OSABI_WINDOWS when the binary's target is "pei-i386". + (i386_cygwin_core_osabi_sniffer): New function, extracted from + i386_cygwin_osabi_sniffer. + (_initialize_i386_cygwin_tdep): Register OS ABI + GDB_OSABI_WINDOWS for i386. + * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return + GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". + (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS + for x86-64. + * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI + when the target matches '*-*-mingw*'. + +2020-03-16 Simon Marchi + + * defs.h (enum gdb_osabi): Move to... + * osabi.h (enum gdb_osabi): ... here. + * gdbarch.sh: Include osabi.h in gdbarch.h. + * gdbarch.h: Re-generate. + +2020-03-16 Simon Marchi + + * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New + function. + (_initialize_amd64_windows_tdep): Register osabi sniffer. + +2020-03-14 Tom Tromey + + * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" + for C++. + (c_type_print_modifier): Likewise. Add "language" parameter. + (c_type_print_varspec_prefix, c_type_print_base_struct_union) + (c_type_print_base_1): Update. + * type-stack.h (enum type_pieces) : New + constants. + * type-stack.c (type_stack::insert): Handle tp_atomic and + tp_restrict. + (type_stack::follow_type_instance_flags): Likewise. + (type_stack::follow_types): Likewise. Merge type-following code. + * c-exp.y (RESTRICT, ATOMIC): New tokens. + (space_identifier, cv_with_space_id) + (const_or_volatile_or_space_identifier_noopt) + (const_or_volatile_or_space_identifier): Remove. + (single_qualifier, qualifier_seq_noopt, qualifier_seq): New + rules. + (ptr_operator, typebase): Update. + (enum token_flag) : New constant. + (ident_tokens): Add "restrict", "__restrict__", "__restrict", and + "_Atomic". + (lex_one_token): Handle FLAG_C. + +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass + it to the ptrace call. + * m68k-bsd-nat.c (store_registers): Likewise. + +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to + gdb_byte *. + * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. + * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. + * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. + +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from + nbsd_nat_target instead of inf_ptrace_target. + * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using + nbsd_nat_target. + +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + +2020-03-14 Kamil Rytarowski + + * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass + it to the ptrace call. + * alpha-bsd-nat.c (store_registers): Likewise. + 2020-03-14 Kamil Rytarowski * alpha-bsd-nat.c: Remove and "gregset.h" from