+2020-08-25 Shahab Vahedi <shahab@synopsys.com>
+
+ * MAINTAINERS: Add ARC target and maintainer.
+
+2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * configure.tgt: ARC support for GNU/Linux.
+ * Makefile.in (ALL_TARGET_OBJS): Likewise.
+ * arc-linux-tdep.c: New file.
+ * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
+ * arc-tdep.c (arc_write_pc): Use it.
+
+2020-08-25 Shahab Vahedi <shahab@synopsys.com>
+
+ * arc-tdep.c (arc_check_for_hardware_loop): New.
+ * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
+
+2020-08-25 Shahab Vahedi <shahab@synopsys.com>
+
+ * arc-tdep.h: Include "gdbarch.h".
+
+2020-08-25 Shahab Vahedi <shahab@synopsys.com>
+
+ * arch/arc.h
+ (arc_gdbarch_features): New class to stir the selection of target XML.
+ (arc_create_target_description): Use FEATURES to choose XML target.
+ (arc_lookup_target_description): Use arc_create_target_description
+ to create _new_ target descriptions or return the already created
+ ones if the FEATURES is the same.
+ * arch/arc.c: Implementation of prototypes described above.
+ * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
+ (arc_gdbarch_features_init): Initialize the FEATURES struct.
+ * arc-tdep.c (*_feature_name): Make feature names consistent.
+ (arc_register_feature): A new struct to hold information about
+ registers of a particular target/feature.
+ (arc_check_tdesc_feature): Check if XML provides registers in
+ compliance with ARC_REGISTER_FEATURE structs.
+ (arc_update_acc_reg_names): Add aliases for r58 and r59.
+ (determine_*_reg_feature_set): Which feature name to look for.
+ (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
+ (mach_type_to_arc_isa): Convert from a set of binutils machine types
+ to expected ISA enums to be used in arc_gdbarch_features structs.
+ * features/Makefile (FEATURE_XMLFILES): Add new files.
+ * gdb/features/arc/v1-aux.c: New file.
+ * gdb/features/arc/v1-aux.xml: Likewise.
+ * gdb/features/arc/v1-core.c: Likewise.
+ * gdb/features/arc/v1-core.xml: Likewise.
+ * gdb/features/arc/v2-aux.c: Likewise.
+ * gdb/features/arc/v2-aux.xml: Likewise.
+ * gdb/features/arc/v2-core.c: Likewise.
+ * gdb/features/arc/v2-core.xml: Likewise.
+ * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
+
+2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
+ Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR m2/26372
+ * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
+ an assert. Remove single element array indexing pattern as the
+ MULTI_SUBSCRIPT support will handle this case too.
+
+2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * value.h (valprint_check_validity): Move declaration from
+ here...
+ * valprint.h (valprint_check_validity): ... to here.
+
+2020-08-24 Simon Marchi <simon.marchi@efficios.com>
+
+ * debug.h: New file.
+ * debug.c (debug_prefixed_vprintf): New function.
+ * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
+ * linux-nat.c (linux_nat_debug_printf_1): Likewise.
+
+2020-08-24 Simon Marchi <simon.marchi@efficios.com>
+
+ * infrun.h (infrun_debug_printf_1): New function declaration.
+ (infrun_debug_printf): New macro.
+ * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
+ throughout.
+ (infrun_debug_printf): New function.
+ * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
+ (handle_jit_event): Likewise.
+
+2020-08-21 Mark Wielaard <mark@klomp.org>
+
+ * ada-lex.l: Extend register warnings diagnostics comment for g++.
+
+2020-08-22 Simon Marchi <simon.marchi@efficios.com>
+
+ * frame.c (enum class frame_id_status): New.
+ (struct frame_info) <this_id::p>: Change type to frame_id_status.
+ (fprintf_frame): Update.
+ (compute_frame_id): Set frame id status to "computing" on entry.
+ Set it back to "not_computed" on failure and to "computed" on
+ success.
+ (get_frame_id): Assert the frame id is not being computed.
+ (create_sentinel_frame): Use frame_id_status::COMPUTED.
+ (create_new_frame): Likewise.
+ (frame_cleanup_after_sniffer): Update assert.
+
+2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regcache.c (pid_ptid_regcache_map): New type.
+ (target_ptid_regcache_map): Remove.
+ (target_pid_ptid_regcache_map): New type.
+ (regcaches): Change type to target_pid_ptid_regcache_map.
+ (get_thread_arch_aspace_regcache): Update.
+ (regcache_thread_ptid_changed): Update, handle pid-like ptid
+ case.
+ (regcaches_size): Update.
+ (regcache_count): Update.
+ (registers_changed_ptid_target_pid_test): New.
+ (_initialize_regcache): Register new test.
+
+2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regcache.c (regcache_count): New.
+ (struct regcache_test_data): New.
+ (regcache_test_data_up): New.
+ (populate_regcaches_for_test): New.
+ (regcaches_test): Remove.
+ (get_thread_arch_aspace_regcache_test): New.
+ (registers_changed_ptid_all_test): New.
+ (registers_changed_ptid_target_test): New.
+ (registers_changed_ptid_target_ptid_test): New.
+ (regcache_thread_ptid_changed): Remove regcache_count lambda.
+ (_initialize_regcache): Register new tests.
+
+2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
+ (get_thread_arch_aspace_regcache_and_check): ... this. Remove
+ gdbarch and aspace parameter. Use current inferior's aspace.
+ Validate regcache's arch value.
+ (regcaches_test): Update.
+
+2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regcache.c (regcaches_test): Call registers_changed.
+
+2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * infrun.c (process_event_stop_test): Fix typo "breapoint".
+
+2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
+
+ * amd64-tdep.c (amd64_skip_prologue): Using symbol table
+ to find the end of prologue for flang compiled binaries.
+ * arm-tdep.c (arm_skip_prologue): Likewise.
+ * i386-tdep.c (i386_skip_prologue): Likewise.
+ * producer.c (producer_is_llvm): New function.
+ (producer_parsing_tests): Added new tests for clang/flang.
+ * producer.h (producer_is_llvm): New declaration.
+
+2020-08-18 Simon Marchi <simon.marchi@efficios.com>
+
+ * linux-nat.c (linux_nat_debug_printf): New function.
+ (linux_nat_debug_printf_1): New macro. Use throughout the file.
+
+2020-08-18 Aaron Merey <amerey@redhat.com>
+
+ * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
+ (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
+ (CLIBS): Add DEBUGINFOD_LIBS.
+
+2020-08-17 Sergei Trofimovich <siarheit@google.com>
+
+ * ia64-linux-nat.c: Include "gdbarch.h" to declare used
+ 'gdbarch_num_regs'.
+
+2020-08-17 Tom Tromey <tromey@adacore.com>
+
+ * ada-varobj.c (ada_varobj_decode_var): Handle case where
+ ada_get_decoded_value returns NULL.
+
+2020-08-17 Tom Tromey <tromey@adacore.com>
+
+ * python/py-inferior.c (infpy_search_memory): Use
+ gdb_py_object_from_ulongest.
+ * python/py-infevents.c (create_inferior_call_event_object)
+ (create_memory_changed_event_object): Use
+ gdb_py_object_from_ulongest.
+ * python/py-linetable.c (ltpy_entry_get_pc): Use
+ gdb_py_object_from_ulongest.
+
+2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * loc.c (class symbol_needs_eval_context): Fix indentation.
+
+2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
+ bool.
+
+2020-08-17 Tom de Vries <tdevries@suse.de>
+
+ PR gdb/26393
+ * gdbtypes.c (dump_dynamic_prop): New function.
+ (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
+
+2020-08-15 Tom de Vries <tdevries@suse.de>
+
+ PR backtrace/26390
+ * stack.c (print_frame_args): Temporarily set the selected
+ frame to FRAME while printing the frame's arguments.
+
+2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ PR breakpoints/26385
+ * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
+ Always clear watchpoint with PTRACE_SET_DEBUGREG.
+
+2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
+ (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
+ and >= to check return value instead of == -1 and != -1.
+
+2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * utils.h (class gdb_argv) <as_array_view>: New method.
+ * utils.c (gdb_argv_as_array_view_test): New.
+ (_initialize_utils): Register selftest.
+ * maint.c (maintenance_selftest): Use the new method.
+
+2020-08-13 Kamil Rytarowski <n54@gmx.com>
+
+ * target.h (supports_dumpcore, dumpcore): New
+ function declarations.
+ * target.c (supports_dumpcore, dumpcore): New
+ functions.
+ * target-delegates.c: Rebuild.
+ * gcore.c (gcore_command): Use target_supports_dumpcore ()
+ and target_dumpcore ().
+
+2020-08-13 Aaron Merey <amerey@redhat.com>
+
+ * debuginfod-support.c: Replace global variables with user_data.
+
+2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * maint.c (maintenance_selftest): Split args and pass array_view
+ to run_tests.
+
+2020-08-12 Luis Machado <luis.machado@linaro.org>
+
+ * value.c (check_type_length_before_alloc): Use ULONGEST to store a
+ type's length.
+ Use %s and pulongest to print the length.
+
+2020-08-12 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Move "Multi-target debugging support" item to the
+ "Changes since GDB 9" section.
+
+2020-08-12 Pedro Alves <palves@redhat.com>
+
+ PR gdb/26336
+ * progspace.c (program_space::remove_objfile): Invalidate the
+ frame cache.
+
+2020-08-11 Tom de Vries <tdevries@suse.de>
+
+ * MAINTAINERS: Mark ms1 as deleted.
+
+2020-08-10 Luis Machado <luis.machado@linaro.org>
+
+ PR gdb/26310
+
+ * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
+ act accordingly.
+ (aarch64_analyze_prologue_test): Add more unit tests to exercise
+ movz/str/stur/stp skipping behavior.
+
+2020-08-10 Luis Machado <luis.machado@linaro.org>
+
+ * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
+ struct user_sve_header instead of struct sve_context.
+
+2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * read.h (dwarf2_fetch_die_loc_sect_off,
+ dwarf2_fetch_die_loc_cu_off): Replace function pointer +
+ `void *` parameter with function_view.
+ * read.c (dwarf2_fetch_die_loc_sect_off,
+ dwarf2_fetch_die_loc_cu_off): Likewise.
+ * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
+ (per_cu_dwarf_call): Adjust.
+ (get_frame_address_in_block_wrapper): Remove.
+ (indirect_synthetic_pointer): Adjust.
+ (get_ax_pc): Remove.
+ (dwarf2_compile_expr_to_ax): Adjust.
+
+2020-08-08 Tom de Vries <tdevries@suse.de>
+
+ PR build/26344
+ * arch/riscv.c (riscv_lookup_target_description): Use an explicit
+ constructor.
+ * regcache.c (get_thread_arch_aspace_regcache): Same.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c
+ (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
+ New method.
+ (ravenscar_thread_target::wait): Check
+ runtime_initialized.
+ (ravenscar_thread_target::prepare_to_store)
+ (ravenscar_thread_target::stopped_by_sw_breakpoint)
+ (ravenscar_thread_target::stopped_by_hw_breakpoint)
+ (ravenscar_thread_target::stopped_by_watchpoint)
+ (ravenscar_thread_target::stopped_data_address)
+ (ravenscar_thread_target::core_of_thread): Use
+ scoped_restore_current_thread and
+ set_base_thread_from_ravenscar_task.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (ravenscar_thread_target::wait): Call
+ update_inferior_ptid before update_thread_list.
+ (temporarily_change_regcache_ptid): New class.
+ (ravenscar_thread_target::fetch_registers)
+ (ravenscar_thread_target::store_registers)
+ (ravenscar_thread_target::prepare_to_store): Use base thread when
+ forwarding operation.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
+ "is_pid" case.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
+ New methods.
+ (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
+ first.
+ (ravenscar_thread_target::add_thread): Rename from
+ ravenscar_add_thread.
+ (ravenscar_thread_target::update_thread_list): Use a lambda.
+ (ravenscar_thread_target::xfer_partial): New method.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.h (ada_task_list_iterator_ftype): Now a
+ gdb::function_view.
+ (iterate_over_live_ada_tasks): Change type of argument.
+ * ada-tasks.c (iterate_over_live_ada_tasks): Change type
+ of argument.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
+ Remove.
+ (ravenscar_thread_target::extra_thread_info): Remove.
+ (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
+ defer to target beneath for non-Ravenscar threads.
+
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
+ get_base_thread_from_ravenscar_task>: Now methods.
+ <m_cpu_map>: New member.
+ (ravenscar_thread_target::get_thread_base_cpu): Rename from
+ ravenscar_get_thread_base_cpu. Check m_cpu_map.
+ (ravenscar_thread_target::task_is_currently_active): Update.
+ (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
+ Now a method.
+ (ravenscar_thread_target::add_active_thread): Put initial thread
+ into the m_cpu_map.
+
2020-08-07 Tom Tromey <tromey@adacore.com>
* ravenscar-thread.c (ravenscar_thread_target::wait): Return
2020-08-06 Caroline Tice <cmtice@google.com>
- * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
- (struct dwp_sections): Update field comments. Add loclists and
- rnglists fields.
- (struct virtual_v2_dwo_sections): Rename struct to
- 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
- size & offset fields for loclists and rnglists.
- (struct dwp_hash_table): Add a 'v5' struct field to the union section.
- (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
- skipping dummy type units.
- (create_dwp_hash_table): Update the large comment above the function to
- discuss Version 5 DWP files as well, with references. Update all the
- version checks in the function to check for version 5 as well. Add new
- section at the end to create dwp hash table for version 5.
- (create_dwp_v2_section): Rename function to
- 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
- Add V5 to error message text.
- (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
- into calls to create_dwp_v2_or_v5_section.
- (create_dwo_unit_in_dwp_v5): New function.
- (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
- check for version2; add else clause to handle version 5.
- (open_and_init_dwo_file): Add code to check dwarf version & only call
- create_debug_types_hash_table (with sections.types) if version is not 5;
- else call create_debug_type_hash_table, with sections.info.
- (dwarf2_locate_v2_dwp_sections): Update function comment to mention
- version 5.
- (dwarf2_locate_v5_dwp_sections): New function.
- (open_and_init_dwp_file): Add else-if clause for version 5 to call
- bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
+ * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
+ (struct dwp_sections): Update field comments. Add loclists and
+ rnglists fields.
+ (struct virtual_v2_dwo_sections): Rename struct to
+ 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
+ size & offset fields for loclists and rnglists.
+ (struct dwp_hash_table): Add a 'v5' struct field to the union section.
+ (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
+ skipping dummy type units.
+ (create_dwp_hash_table): Update the large comment above the function to
+ discuss Version 5 DWP files as well, with references. Update all the
+ version checks in the function to check for version 5 as well. Add new
+ section at the end to create dwp hash table for version 5.
+ (create_dwp_v2_section): Rename function to
+ 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
+ Add V5 to error message text.
+ (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
+ into calls to create_dwp_v2_or_v5_section.
+ (create_dwo_unit_in_dwp_v5): New function.
+ (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
+ check for version2; add else clause to handle version 5.
+ (open_and_init_dwo_file): Add code to check dwarf version & only call
+ create_debug_types_hash_table (with sections.types) if version is not 5;
+ else call create_debug_type_hash_table, with sections.info.
+ (dwarf2_locate_v2_dwp_sections): Update function comment to mention
+ version 5.
+ (dwarf2_locate_v5_dwp_sections): New function.
+ (open_and_init_dwp_file): Add else-if clause for version 5 to call
+ bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2020-08-06 Simon Marchi <simon.marchi@efficios.com>
"maint print" commands.
2020-07-22 Kevin Buettner <kevinb@redhat.com>
-
+
* linux-tdep.c (dump_note_entry_p): New function.
(linux_dump_mapping_p_ftype): New typedef.
(linux_find_memory_regions_full): Add new parameter,