+2018-03-23 Keith Seitz <keiths@redhat.com>
+
+ PR c++/22968
+ * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
+ nested type definitions for C++, too.
+
+2018-03-23 Tom Tromey <tom@tromey.com>
+
+ * machoread.c (struct oso_el): Add a constructor. Don't define as
+ a typedef.
+ (macho_register_oso): Remove.
+ (macho_symtab_read): Take a std::vector.
+ (oso_el_compare_name): Now a std::sort comparator.
+ (macho_symfile_read_all_oso): Take a std::vector.
+ (macho_symfile_read): Use std::vector. Remove cleanups.
+
+2018-03-22 Tom Tromey <tom@tromey.com>
+
+ * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
+ (record_full_goto_bookmark): Use std::string.
+
+2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
+
+ PR tdep/18295
+ * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
+ a single mask.
+
+2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
+
+ * rs6000-tdep.c (store_insn_p): New function.
+ (skip_prologue): New variable alloca_reg_offset. Set lr_reg
+ and cr_reg to their unshifted values. Use store_insn_p to
+ match LR saves using either R1 or fdata->alloca_reg. Use
+ store_insn_p to match CR saves. Set alloca_reg_offset
+ when alloca_reg and framep are set. Remove lr_reg shift
+ when assigning to fdata->lr_register.
+
+2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
+ command line args instead of emitting a warning.
+
+2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * tracepoint.h (struct static_tracepoint_marker): Initialize
+ fields, define default constructor, move constructor and move
+ assignment, disable the rest.
+ <str_id, extra>: Make std::string.
+ (release_static_tracepoint_marker): Remove.
+ (free_current_marker): Remove.
+ * tracepoint.c (free_current_marker): Remove.
+ (parse_static_tracepoint_marker_definition): Adjust to
+ std::string, use new hex2str overload.
+ (release_static_tracepoint_marker): Remove.
+ (print_one_static_tracepoint_marker): Get marker by reference
+ and adjust to std::string.
+ (info_static_tracepoint_markers_command): Adjust to std::vector
+ changes
+ * target.h (static_tracepoint_marker_p): Remove typedef.
+ (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
+ (struct target_ops) <to_static_tracepoint_marker_at>: Return
+ bool.
+ <to_static_tracepoint_markers_by_strid>: Return std::vector.
+ * target-debug.h
+ (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
+ (target_debug_print_std_vector_static_tracepoint_marker): New.
+ (target_debug_print_struct_static_tracepoint_marker_p): Rename
+ to...
+ (target_debug_print_static_tracepoint_marker_p): ... this.
+ * target-delegates.c: Re-generate.
+ * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
+ Make std::string.
+ * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
+ (decode_static_tracepoint_spec): Adjust to std::vector.
+ (tracepoint_print_one_detail): Adjust to std::string.
+ (strace_marker_decode_location): Adjust to std::string.
+ (update_static_tracepoint): Adjust to std::string, remove call
+ to release_static_tracepoint_marker.
+ * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
+ Adjust to std::vector.
+ * remote.c (remote_static_tracepoint_marker_at): Return bool.
+ (remote_static_tracepoint_markers_by_strid): Adjust to
+ std::vector.
+ * common/rsp-low.h (hex2str): New overload with explicit count
+ of bytes.
+ * common/rsp-low.c (hex2str): New overload with explicit count
+ of bytes.
+ * unittests/rsp-low-selftests.c (test_hex2str): New function.
+ (_initialize_rsp_low_selftests): Add test_hex2str test.
+ * unittests/tracepoint-selftests.c
+ (test_parse_static_tracepoint_marker_definition): Adjust to
+ std::string.
+
+2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * tracepoint.c (parse_static_tracepoint_marker_definition):
+ Consider case where the definition is followed by more
+ definitions.
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ tracepoint-selftests.c.
+ * unittests/tracepoint-selftests.c: New.
+
+2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
+
+ * MAINTAINERS (Write After Approval): Add Pedro Franco de
+ Carvalho.
+
+2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
+
+ * gdb/symtab.c (find_pc_sect_line): fixed indentation.
+
+2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
+
+ * gdb/symtab.c (find_pc_sect_line): now uses binary search.
+
+2018-03-19 Tom Tromey <tom@tromey.com>
+
+ * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
+ "IDENT" production.
+
+2018-03-19 Pedro Alves <palves@redhat.com>
+ Tom Tromey <tom@tromey.com>
+
+ * unittests/observable-selftests.c: New file.
+ * common/observable.h: New file.
+ * observable.h: New file.
+ * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
+ arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
+ breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
+ corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
+ extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
+ infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
+ linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
+ mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
+ ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
+ python/py-breakpoint.c, python/py-finishbreakpoint.c,
+ python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
+ record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
+ riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
+ spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
+ symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
+ tui/tui-interp.c, valops.c: Update all users.
+ * tui/tui-hooks.c (tui_bp_created_observer)
+ (tui_bp_deleted_observer, tui_bp_modified_observer)
+ (tui_inferior_exit_observer, tui_before_prompt_observer)
+ (tui_normal_stop_observer, tui_register_changed_observer):
+ Remove.
+ (tui_observers_token): New global.
+ (attach_or_detach, tui_attach_detach_observers): New functions.
+ (tui_install_hooks, tui_remove_hooks): Use
+ tui_attach_detach_observers.
+ * record-btrace.c (record_btrace_thread_observer): Remove.
+ (record_btrace_thread_observer_token): New global.
+ * observer.sh: Remove.
+ * observer.c: Rename to observable.c.
+ * observable.c (namespace gdb_observers): Define new objects.
+ (observer_debug): Move into gdb_observers namespace.
+ (struct observer, struct observer_list, xalloc_observer_list_node)
+ (xfree_observer_list_node, generic_observer_attach)
+ (generic_observer_detach, generic_observer_notify): Remove.
+ (_initialize_observer): Update.
+ Don't include observer.inc.
+ * Makefile.in (generated_files): Remove observer.h, observer.inc.
+ (clean mostlyclean): Likewise.
+ (observer.h, observer.inc): Remove targets.
+ (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
+ (COMMON_SFILES): Use observable.c, not observer.c.
+ * .gitignore: Remove observer.h.
+
+2018-03-18 Tom Tromey <tom@tromey.com>
+
+ * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
+ gdb::def_vector.
+ (bfd_lookup_symbol_from_dyn_symtab): Likewise.
+
+2018-03-17 Tom Tromey <tom@tromey.com>
+
+ * auto-load.c (auto_load_objfile_script_1): Use std::string.
+
+2018-03-17 Tom Tromey <tom@tromey.com>
+
+ * target.c (class scoped_target_fd): New.
+ (target_fileio_close_cleanup): Remove.
+ (target_fileio_read_alloc_1): Use scoped_target_fd.
+
+2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * silent-rules.mk: New.
+ * Makefile.in: Include silent-rules.mk
+ (srcdir, VPATH, top_srcdir): Move up.
+ (COMPILE): Add ECHO_CXX.
+ (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
+ (init.c): Add ECHO_INIT_C.
+ (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
+ (version.c): Add ECHO_GEN.
+ (printcmd.o): Add ECHO_CXX.
+ (target-float.o): Add ECHO_CXX.
+ (ada-exp.o): Add ECHO_CXX.
+ (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
+ (insight$(EXEEXT)): Add ECHO_CXXLD.
+ * gnulib/configure.ac: Add AM_SILENT_RULES.
+ * gnulib/aclocal.m4: Re-generate.
+ * gnulib/configure: Re-generate.
+ * gnulib/import/Makefile.in: Re-generate.
+
+2018-03-16 Tom Tromey <tom@tromey.com>
+
+ * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
+ * utils.h (make_cleanup_free_section_addr_info): Don't declare.
+ * utils.c (do_free_section_addr_info)
+ (make_cleanup_free_section_addr_info): Remove.
+ * symfile.h (struct other_sections): Add constructor.
+ (struct section_addr_info): Remove.
+ (section_addr_info): New typedef.
+ (struct sym_fns) <sym_offsets>: Change type of parameter.
+ (build_section_addr_info_from_objfile)
+ (relative_addr_info_to_section_offsets, addr_info_make_relative)
+ (default_symfile_offsets, symbol_file_add)
+ (symbol_file_add_from_bfd)
+ (build_section_addr_info_from_section_table): Update.
+ (alloc_section_addr_info, free_section_addr_info): Don't declare.
+ * symfile.c (alloc_section_addr_info): Remove.
+ (build_section_addr_info_from_section_table): Change return type.
+ Update.
+ (build_section_addr_info_from_bfd)
+ (build_section_addr_info_from_objfile): Likewise.
+ (free_section_addr_info): Remove.
+ (relative_addr_info_to_section_offsets): Change type of "addrs".
+ (addrs_section_compar): Now a std::sort comparator.
+ (addrs_section_sort): Change return type.
+ (addr_info_make_relative): Change type of "addrs". Update.
+ (default_symfile_offsets, syms_from_objfile_1)
+ (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
+ (symbol_file_add_separate): Update.
+ (symbol_file_add): Change type of "addrs". Update.
+ (add_symbol_file_command): Update. Remove cleanups.
+ * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
+ cleanups.
+ * symfile-debug.c (debug_sym_offsets): Change type of "info".
+ * solib.c (solib_read_symbols): Update.
+ * objfiles.c (objfile_relocate): Update. Remove cleanups.
+ * machoread.c (macho_symfile_offsets): Update.
+ * jit.c (jit_bfd_try_read_symtab): Update.
+
+2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/utils-selftests.c.
+ * unittests/utils-selftests.c: New file.
+
+2018-03-14 Tom Tromey <tom@tromey.com>
+
+ PR cli/14977:
+ * printcmd.c (printf_c_string, printf_wide_c_string): Special case
+ for NULL.
+
+2018-03-14 Tom Tromey <tom@tromey.com>
+
+ PR cli/19918:
+ * printcmd.c (printf_pointer): Allow "-" in format.
+
+2018-03-14 Tom Tromey <tom@tromey.com>
+
+ * printcmd.c (_initialize_printcmd): Add usage to printf.
+
+2018-03-14 Yao Qi <qiyao@sourceware.org>
+
+ * MAINTAINERS: Update my email address.
+
+2018-03-13 Tom Tromey <tom@tromey.com>
+
+ * machoread.c (macho_check_dsym): Change filenamep to a
+ std::string*.
+ (macho_symfile_read): Update.
+ * symfile.c (load_command): Use std::string.
+
+2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
+ to error message string.
+ (riscv_register_name): Use xsnprintf instead of sprintf.
+ (riscv_insn::fetch_instruction): Use gdb_assert instead of
+ internal_error.
+ (riscv_print_arg_location): Use gdb_assert_not_reached instead of
+ error.
+ (riscv_push_dummy_call): Likewise.
+
+2018-03-12 Tom Tromey <tom@tromey.com>
+
+ * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
+ Use gdb::byte_vector.
+ * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
+
+2018-03-12 Yao Qi <yao.qi@linaro.org>
+
+ * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
+ parameter type to readable_regcache.
+ * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
+ the declaration.
+
+2018-03-11 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (struct nextfield): Add initializers.
+ (struct nextfnfield): Remove.
+ (struct fnfieldlist): Add initializers. Remove "length" and
+ "head", use std::vector.
+ (struct decl_field_list): Remove.
+ (struct field_info): Add initializers.
+ <fields, baseclasses>: Now std::vector.
+ <nbaseclasses, nfnfields, typedef_field_list_count,
+ nested_types_list_count>: Remove.
+ (dwarf2_add_field, dwarf2_add_type_defn)
+ (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
+ (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
+ (process_structure_scope): Update.
+
+2018-03-11 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
+ for use by std::sort.
+ (build_type_psymtabs_1): Use std::vector.
+
+2018-03-09 Eli Zaretskii <eliz@gnu.org>
+
+ * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
+ and LIBMPFR in the printed configuration.
+
+2018-03-08 Tom Tromey <tom@tromey.com>
+
+ * source.c (get_filename_and_charpos): Use scoped_fd.
+ * nto-procfs.c (procfs_open_1): Use scoped_fd.
+ (procfs_pidlist): Likewise.
+ * procfs.c (proc_get_LDT_entry): Use scoped_fd.
+ (iterate_over_mappings): Likewise.
+
+2018-03-08 Tom Tromey <tom@tromey.com>
+
+ * infcall.c (struct call_return_meta_info)
+ <stack_temporaries_enabled>: Remove.
+ (get_call_return_value, call_function_by_hand_dummy): Update.
+ * thread.c (disable_thread_stack_temporaries): Remove.
+ (enable_thread_stack_temporaries): Remove.
+ (thread_stack_temporaries_enabled_p): Return bool.
+ (push_thread_stack_temporary, value_in_thread_stack_temporaries)
+ (get_last_thread_stack_temporary): Update.
+ * eval.c (evaluate_subexp): Update.
+ * gdbthread.h (class enable_thread_stack_temporaries): Now a
+ class, not a function.
+ (value_ptr, value_vec): Remove typedefs.
+ (class thread_info) <stack_temporaries_enabled>: Now bool.
+ <stack_temporaries>: Now a std::vector.
+ (thread_stack_temporaries_enabled_p)
+ (value_in_thread_stack_temporaries): Return bool.
+
+2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
+
+ * remote.c (putpkt_binary): Fix omitted bytes reporting.
+ (getpkt_or_notif_sane_1): Likewise.
+
+2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * build-id.c (build_id_to_debug_bfd): Use std::string.
+
+2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * build-id.c (find_separate_debug_file_by_buildid): Return
+ std::string.
+ * build-id.h (find_separate_debug_file_by_buildid): Return
+ std::string.
+ * coffread.c (coff_symfile_read): Adjust to std::string.
+ * elfread.c (elf_symfile_read): Adjust to std::string.
+ * symfile.c (separate_debug_file_exists): Change parameter to
+ std::string.
+ (find_separate_debug_file): Return std::string.
+ (find_separate_debug_file_by_debuglink): Return std::string.
+ * symfile.h (find_separate_debug_file_by_debuglink): Return
+ std::string.
+
+2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common/xml-utils.c (xml_escape_text): Move code to...
+ (xml_escape_text_append): ... this new function.
+ * common/xml-utils.h (xml_escape_text_append): New declaration.
+ * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
+ New function.
+ (_initialize_xml_utils): register test_xml_escape_text_append as
+ a selftest.
+
+2018-03-07 Alan Hayward <alan.hayward@arm.com>
+
+ * defs.h: Remove MAX_REGISTER_SIZE.
+ * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
+ asserts.
+ * python/py-unwind.c (pyuw_sniffer): Likewise.
+
+2018-03-07 Tom Tromey <tom@tromey.com>
+
+ * linux-tdep.c (linux_info_proc): Update.
+ * target.h (struct target_ops) <to_fileio_readlink>: Return
+ optional<string>.
+ (target_fileio_readlink): Return optional<string>.
+ * remote.c (remote_hostio_readlink): Return optional<string>.
+ * inf-child.c (inf_child_fileio_readlink): Return
+ optional<string>.
+ * target.c (target_fileio_readlink): Return optional<string>.
+
+2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * regcache.c (cooked_read_test): Add riscv to the list of
+ architectures that have a save_reggroup.
+
+2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
+ value is not a dynamic class object.
+
+2018-03-06 Tom Tromey <tom@tromey.com>
+
+ * rust-exp.y: Formatting fixes.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_register_name): Remove target description
+ support.
+ (riscv_gdbarch_init): Remove target description check.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c: Remove 'Contributed by ...' lines from header
+ comment.
+ * riscv-tdep.h: Likewise.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_pseudo_register_read): Delete.
+ (riscv_pseudo_register_write): Delete.
+ (riscv_gdbarch_init): Remove all use of pseudo registers.
+
+2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-btrace.c (btrace_print_lines): Replace cleanup
+ parameter with RAII equivalents.
+ (btrace_insn_history): Replace cleanup with RAII equivalents.
+ * ui-out.h (make_cleanup_ui_out_list_begin_end,
+ make_cleanup_ui_out_tuple_begin_end): Remove.
+ * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
+ make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
+ make_cleanup_ui_out_list_begin_end): Remove.
+
+2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-btrace.c (record_btrace_maybe_mark_async_event): Change
+ parameter types to std::vector. Use bool.
+ (record_btrace_wait): Replace VEC(tp_t) with
+ std::vector<thread_info *>.
+ * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
+
+2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-btrace.c (record_btrace_disable_callback): Remove.
+ (struct scoped_btrace_disable): New.
+ (record_btrace_open): Use scoped_btrace_disable.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
+ reading values from registers.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
+ where appropriate.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_print_arg_location): Add header comment,
+ change parameter type. Use GDB's print functions, and use
+ core_addr_to_string where appropriate.
+ (riscv_push_dummy_call): Use core_addr_to_string where
+ appropriate, update call to riscv_print_arg_location, and reindent
+ a few lines.
+ (riscv_return_value): Update call to riscv_print_arg_location.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+ Tim Newsome <tim@sifive.com>
+ Albert Ou <a0u@eecs.berkeley.edu>
+ Darius Rad <darius@bluespec.com>
+
+ * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
+ (HFILES_NO_SRCDIR): Add riscv-tdep.h.
+ (ALLDEPFILES): Add riscv-tdep.c
+ * configure.tgt: Add riscv support.
+ * riscv-tdep.c: New file.
+ * riscv-tdep.h: New file.
+ * NEWS: Mention new target.
+ * MAINTAINERS: Add entry for riscv.
+
+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
+ fields within aggregates.
+
+2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-btrace.c (btrace_print_lines): Change type of flags to
+ gdb_disassembly_flags.
+
+2018-03-04 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c: Include "inf-ptrace.h".
+ (USE_SIGTRAP_SIGINFO): Conditionally define.
+ [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
+ (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
+ [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
+ function.
+ [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
+ Likewise.
+ [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
+ Likewise.
+ (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
+ "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
+ "supports_stopped_by_hw_breakpoint" target methods.
+
+2018-03-04 John Baldwin <jhb@FreeBSD.org>
+
+ * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
+ * fbsd-nat.c (debug_fbsd_nat): New variable.
+ (show_fbsd_nat_debug): New function.
+ (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
+ (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
+
+2018-03-04 John Baldwin <jhb@FreeBSD.org>
+
+ * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
+ * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
+ prototype.
+ * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
+ (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
+ method.
+
+2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common/gdb_vecs.c (free_char_ptr_vec): Remove.
+ * common/gdb_vecs.h (free_char_ptr_vec): Remove.
+
+2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * charset.c (struct charset_vector): New.
+ (charsets): Change type to charset_vector.
+ (find_charset_names): Adjust.
+ (add_one): Adjust.
+ (_initialize_charset): Adjust.
+
+2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * progspace.h (struct program_space) <deleted_solibs>: Change
+ type to std::vector<std::string>.
+ * progspace.c (clear_program_space_solib_cache): Adjust.
+ * breakpoint.c (print_solib_event): Adjust.
+ (check_status_catch_solib): Adjust.
+ * solib.c (update_solib_list): Adjust.
+ * ui-out.h (class ui_out) <field_string>: New overload.
+ * ui-out.c (ui_out::field_string): New overload.
+
+2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * progspace.h (struct program_space): Add constructor and
+ destructor, initialize fields.
+ (add_program_space): Remove.
+ * progspace.c (add_program_space): Rename to...
+ (program_space::program_space): ... this.
+ (release_program_space): Rename to...
+ (program_space::~program_space): ... this.
+ (delete_program_space): Use delete to delete program_space.
+ (initialize_progspace): Use new to allocate program_space.
+ * inferior.c (add_inferior_with_spaces): Likewise.
+ (clone_inferior_command): Likewise.
+ * infrun.c (follow_fork_inferior): Likewise.
+ (handle_vfork_child_exec_or_exit): Likewise.
+
+2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
+ (delim_string_to_char_ptr_vec): Return std::vector of
+ gdb::unique_xmalloc_ptr.
+ (dirnames_to_char_ptr_vec_append): Take std::vector of
+ gdb::unique_xmalloc_ptr.
+ (dirnames_to_char_ptr_vec): Return std::vector of
+ gdb::unique_xmalloc_ptr.
+ * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
+ Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
+ (delim_string_to_char_ptr_vec): Return an std::vector of
+ gdb::unique_xmalloc_ptr, adjust the code.
+ (dirnames_to_char_ptr_vec_append): Take an std::vector of
+ gdb::unique_xmalloc_ptr, adjust the code.
+ (dirnames_to_char_ptr_vec): Return an std::vector of
+ gdb::unique_xmalloc_ptr, adjust the code.
+ * auto-load.c (auto_load_safe_path_vec): Change type to
+ std::vector of gdb::unique_xmalloc_ptr.
+ (auto_load_expand_dir_vars): Return an std::vector of
+ gdb::unique_xmalloc_ptr, adjust the code.
+ (auto_load_safe_path_vec_update): Adjust.
+ (filename_is_in_auto_load_safe_path_vec): Adjust.
+ (auto_load_objfile_script_1): Adjust.
+ * build-id.c (build_id_to_debug_bfd): Adjust.
+ * linux-thread-db.c (thread_db_load_search): Adjust.
+ * source.c (add_path): Adjust.
+ (openp): Adjust.
+ * symfile.c (find_separate_debug_file): Adjust.
+ * utils.c (do_free_char_ptr_vec): Remove.
+ (make_cleanup_free_char_ptr_vec): Remove.
+
+2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/22907
+ * common/pathstuff.c: Conditionally include "<windows.h>".
+
+2018-03-01 Georg Sauthoff <mail@georg.so>
+
+ PR gdb/22888
+ * gcore.in: Quote variables and switch interpreter to bash.
+
+2018-03-01 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (alloc_discriminant_info): Fix default_index
+ assertion. Add assertion for discriminant_index.
+ (quirk_rust_enum): Use correct base type name in univariant case.
+
+2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
+
+ * record.c (get_call_history_modifiers): Return a
+ record_print_flags.
+ (cmd_record_call_history): Adjust.
+ * record-btrace.c (record_btrace_call_history): Adjust.
+ (record_btrace_call_history_range): Adjust.
+ (record_btrace_call_history_from): Adjust.
+ * target-debug.h (target_debug_print_record_print_flags): New.
+ * target-delegates.c: Re-generate.
+ * target.c (target_call_history): Change flags type.
+ (target_call_history_from): Likewise.
+ (target_call_history_range): Likewise.
+ * target.h (struct target_ops) <target_call_history>: Likewise.
+ (target_call_history_from): Likewise.
+ (target_call_history_range): Likewise.
+
+2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
+ Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common/common-utils.c: Include "sys/stat.h".
+ (is_regular_file): Move here from "source.c"; change return
+ type to "bool".
+ * common/common-utils.h (is_regular_file): New prototype.
+ * common/pathstuff.c (contains_dir_separator): New function.
+ * common/pathstuff.h (contains_dir_separator): New prototype.
+ * source.c: Don't include "sys/stat.h".
+ (is_regular_file): Move to "common/common-utils.c".
+
+2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
+ (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
+ * auto-load.c: Include "common/pathstuff.h".
+ * common/common-def.h (current_directory): Move here.
+ * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
+ function.
+ * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
+ prototype.
+ * common/pathstuff.c: New file.
+ * common/pathstuff.h: New file.
+ * compile/compile.c: Include "common/pathstuff.h".
+ * defs.h (current_directory): Move to "common/common-defs.h".
+ * dwarf2read.c: Include "common/pathstuff.h".
+ * exec.c: Likewise.
+ * guile/scm-safe-call.c: Likewise.
+ * linux-thread-db.c: Likewise.
+ * main.c: Likewise.
+ * nto-tdep.c: Likewise.
+ * objfiles.c: Likewise.
+ * source.c: Likewise.
+ * symtab.c: Likewise.
+ * utils.c: Include "common/pathstuff.h".
+ (gdb_realpath): Move to "common/pathstuff.c".
+ (gdb_realpath_keepfile): Likewise.
+ (gdb_abspath): Likewise.
+ * utils.h (gdb_realpath): Move to "common/pathstuff.h".
+ (gdb_realpath_keepfile): Likewise.
+ (gdb_abspath): Likewise.
+
+2018-02-28 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
+ wildcard process pid for super_resume for kernels with a
+ specific bug.
+
+2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
+
+ * compile/compile.c (get_args): Add additional comments
+ explaining function.
+
+2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
+ Tom Tromey <tom@tromey.com>
+
+ * target.h (memory_write_request_s): Remove typedef. Don't define
+ VEC.
+ (target_write_memory_blocks): Change argument to std::vector.
+ (struct memory_write_request): Add constructor.
+ * target-memory.c (compare_block_starting_address): Return bool.
+ Change argument types.
+ (claim_memory): Change arguments to use std::vector.
+ (split_regular_and_flash_blocks, blocks_to_erase)
+ (compute_garbled_blocks): Likewise.
+ (cleanup_request_data, cleanup_write_requests_vector): Remove.
+ (target_write_memory_blocks): Change argument to std::vector.
+ * symfile.c (struct load_section_data): Add constructor and
+ destructor. Use std::vector for "requests".
+ (struct load_progress_data): Add initializers.
+ (load_section_callback): Update. Use "new".
+ (clear_memory_write_data): Remove.
+ (generic_load): Update.
+
+2018-02-27 Alan Hayward <alan.hayward@arm.com>
+
+ * arch/aarch64.h: Use common/tdesc.h.
+
+2018-02-26 Maciej W. Rozycki <macro@mips.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
+ architecture with a 64-bit ABI.
+
+2018-02-26 Maciej W. Rozycki <macro@mips.com>
+
+ * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
+ ahead of target description loading.
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ * stack.c (backtrace_command_1): Update.
+ * python/python-internal.h (gdbpy_apply_frame_filter): Change type
+ of "flags".
+ * python/py-framefilter.c (py_print_frame)
+ (gdbpy_apply_frame_filter): Change type of "flags".
+ * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
+ of "flags".
+ (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
+ (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
+ * extension.h (enum frame_filter_flag): Rename from
+ frame_filter_flags.
+ (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
+ (apply_ext_lang_frame_filter): Change type of "flags".
+ * extension.c (apply_ext_lang_frame_filter): Change type of
+ "flags".
+ * extension-priv.h (struct extension_language_ops)
+ <apply_frame_filter>: Change type of "flags".
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ PR python/16497:
+ * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
+ off-by-one in py_end computation.
+ * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
+ PRINT_MORE_FRAMES.
+ * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
+ constant.
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (struct variant_field): New.
+ (struct nextfield) <variant>: New field.
+ (dwarf2_add_field): Handle DW_TAG_variant_part.
+ (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
+ discriminated union.
+ (read_structure_type): Handle DW_TAG_variant_part.
+ (handle_struct_member_die): New function, extracted from
+ process_structure_scope. Handle DW_TAG_variant.
+ (process_structure_scope): Handle discriminated unions. Call
+ handle_struct_member_die.
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.h (rust_last_path_segment): Declare.
+ * rust-lang.c (rust_last_path_segment): Now public. Change
+ contract.
+ (struct disr_info): Remove.
+ (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
+ (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
+ (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
+ (rust_enum_p, rust_enum_variant): New function.
+ (rust_underscore_fields): Remove "offset" parameter.
+ (rust_print_enum): New function.
+ (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
+ <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
+ (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
+ enums.
+ (rust_internal_print_type): New function, from rust_print_type.
+ Remove enum code.
+ (rust_print_type): Call rust_internal_print_type.
+ (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
+ Update enum handling.
+ * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
+ (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
+ (rust_union_quirks): New functions.
+ (process_full_comp_unit, process_full_type_unit): Call
+ rust_union_quirks.
+ (process_structure_scope): Update rust_unions if necessary.
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ * value.h (value_union_variant): Declare.
+ * valops.c (value_union_variant): New function.
+ * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
+ (struct discriminant_info): New.
+ (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
+ enumerator.
+ (struct main_type) <flag_discriminated_union>: New field.
+
+2018-02-26 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/unpack-selftests.c.
+ * unittests/unpack-selftests.c: New file.
+ * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (struct partial_die_info) <read>: New method.
+ (read_partial_die): Remove the declaration.
+ (load_partial_dies): Update.
+ (partial_die_info::partial_die_info):
+ (read_partial_die): Change it to partial_die_info::read.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (struct partial_die_info) <fixup>: New method.
+ (fixup_partial_die): Remove declaration.
+ (scan_partial_symbols): Update.
+ (partial_die_parent_scope): Likewise.
+ (partial_die_full_name): Likewise.
+ (fixup_partial_die): Change it to partial_die_info::fixup.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (read_partial_die): Update the declaration.
+ (load_partial_dies): Caller update.
+ (read_partial_die): Remove one argument abbrev_len.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (struct partial_die_info): Add ctor, delete
+ assignment operator.
+ (load_partial_dies): Use ctor and copy ctor.
+ (read_partial_die): Update.
+ (dwarf2_cu::find_partial_die): Use ctor.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
+ (find_partial_die_in_comp_unit): Change it to
+ dwarf2_cu::find_partial_die.
+ (find_partial_die): Update.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (read_partial_die): Remove the code checking abbrev
+ is NULL.
+
+2018-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
+
+2018-02-26 Alan Hayward <alan.hayward@arm.com>
+
+ * arch/amd64.h: Use common/tdesc.h.
+ * arch/i386.c: Likewise.
+ * arch/i386.h: Likewise.
+ * arch/tic6x.c: Likewise.
+ * arch/tdesc.h: Move file from here...
+ * common/tdesc.h: ...to here.
+ * features/aarch64-core.c: Regenerate.
+ * features/aarch64-fpu.c: Regenerate.
+ * features/i386/32bit-avx.c: Regenerate.
+ * features/i386/32bit-avx512.c: Regenerate.
+ * features/i386/32bit-core.c: Regenerate.
+ * features/i386/32bit-linux.c: Regenerate.
+ * features/i386/32bit-mpx.c: Regenerate.
+ * features/i386/32bit-pkeys.c: Regenerate.
+ * features/i386/32bit-sse.c: Regenerate.
+ * features/i386/64bit-avx.c: Regenerate.
+ * features/i386/64bit-avx512.c: Regenerate.
+ * features/i386/64bit-core.c: Regenerate.
+ * features/i386/64bit-linux.c: Regenerate.
+ * features/i386/64bit-mpx.c: Regenerate.
+ * features/i386/64bit-pkeys.c: Regenerate.
+ * features/i386/64bit-segments.c: Regenerate.
+ * features/i386/64bit-sse.c: Regenerate.
+ * features/i386/x32-core.c: Regenerate.
+ * features/tic6x-c6xp.c: Regenerate.
+ * features/tic6x-core.c: Regenerate.
+ * features/tic6x-gp.c: Regenerate.
+ * target-descriptions.c: Use common/tdesc.h.
+ * target-descriptions.h: Likewise.
+
+2018-02-24 Tom Tromey <tom@tromey.com>
+
+ * linux-thread-db.c (try_thread_db_load_from_pdir_1)
+ (try_thread_db_load_from_dir, thread_db_load_search): Use
+ std::string.
+ (info_auto_load_libthread_db_compare): Return bool. Change
+ argument types.
+ (info_auto_load_libthread_db): Use std::vector, std::string.
+ Remove cleanups.
+
+2018-02-24 Tom Tromey <tom@tromey.com>
+
+ * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
+ std::string.
+ * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
+ std::string*.
+ * gdbarch.c: Rebuild.
+ * gdbarch.h: Rebuild.
+ * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
+ * arch-utils.h (default_fast_tracepoint_valid_at): Update.
+ * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
+ std::string*.
+
+2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdbtypes.h (sect_offset): Change type to uint64_t.
+ (sect_offset_str): New function.
+ * dwarf2read.c (create_addrmap_from_aranges): Use
+ sect_offset_str.
+ (error_check_comp_unit_head): Likewise.
+ (create_debug_type_hash_table): Likewise.
+ (read_cutu_die_from_dwo): Likewise.
+ (init_cutu_and_read_dies): Likewise.
+ (init_cutu_and_read_dies_no_follow): Likewise.
+ (process_psymtab_comp_unit_reader): Likewise.
+ (partial_die_parent_scope): Likewise.
+ (peek_die_abbrev): Likewise.
+ (process_queue): Likewise.
+ (dwarf2_physname): Likewise.
+ (read_namespace_alias): Likewise.
+ (read_import_statement): Likewise.
+ (create_dwo_cu_reader): Likewise.
+ (create_cus_hash_table): Likewise.
+ (lookup_dwo_cutu): Likewise.
+ (inherit_abstract_dies): Likewise.
+ (read_func_scope): Likewise.
+ (read_call_site_scope): Likewise.
+ (dwarf2_add_member_fn): Likewise.
+ (read_common_block): Likewise.
+ (read_module_type): Likewise.
+ (read_typedef): Likewise.
+ (read_subrange_type): Likewise.
+ (load_partial_dies): Likewise.
+ (read_partial_die): Likewise.
+ (find_partial_die): Likewise.
+ (read_str_index): Likewise.
+ (dwarf2_string_attr): Likewise.
+ (build_error_marker_type): Likewise.
+ (lookup_die_type): Likewise.
+ (dump_die_shallow): Likewise.
+ (follow_die_ref): Likewise.
+ (dwarf2_fetch_die_loc_sect_off): Likewise.
+ (dwarf2_fetch_constant_bytes): Likewise.
+ (follow_die_sig): Likewise.
+ (get_signatured_type): Likewise.
+ (get_DW_AT_signature_type): Likewise.
+ (dwarf2_find_containing_comp_unit): Likewise.
+ (set_die_type): Likewise.
+
+2018-02-21 John Baldwin <jhb@FreeBSD.org>
+
+ * arch/aarch64.c: Include "common-defs.h".
+ * arch/amd64.c: Likewise.
+ * arch/i386.c: Likewise.
+
+2018-02-21 Tom Tromey <tom@tromey.com>
+
+ * value.h: (extract_field_op): Update.
+ * eval.c (extract_field_op): Return a const char *.
+ * expression.h (parse_expression_for_completion): Update.
+ * completer.c (complete_expression): Update.
+ (add_struct_fields): Make fieldname const.
+ * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
+ (mark_completion_tag, parse_exp_in_context_1): Update.
+ (parse_expression_for_completion): Change "name" to
+ unique_xmalloc_ptr*.
+
+2018-02-21 Tom Tromey <tom@tromey.com>
+
+ * infcall.c (call_function_by_hand_dummy): Use std::vector.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * avr-tdep.c (avr_read_pc): Change parameter type to
+ readable_regcache.
+ * gdbarch.sh (read_pc): Likewise.
+ * gdbarch.c: Re-generated.
+ * gdbarch.h: Re-generated.
+ * hppa-tdep.c (hppa_read_pc): Change parameter type to
+ readable_regcache.
+ * ia64-tdep.c (ia64_read_pc): Likewise.
+ * mips-tdep.c (mips_read_pc): Likewise.
+ * spu-tdep.c (spu_read_pc): Likewise.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * Makefile.in (COMMON_SFILES): Add regcache-dump.c
+ * regcache-dump.c: New file.
+ * regcache.c: Move register_dump to regcache-dump.c.
+ (maintenance_print_registers): Likewise.
+ (maintenance_print_raw_registers): Likewise.
+ (maintenance_print_cooked_registers): Likewise.
+ (maintenance_print_register_groups): Likewise.
+ (maintenance_print_remote_registers): Likewise.
+ (_initialize_regcache): Likewise.
+ * regcache.h (register_dump): Moved from regcache.c.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c (regcache::regcache): Update.
+ (regcache::invalidate): Move it to detached_regcache::invalidate.
+ (get_thread_arch_aspace_regcache): Update.
+ (regcache::raw_update): Update.
+ (regcache::cooked_read): Remove some code.
+ (regcache::cooked_read_value): Likewise.
+ (regcache::raw_write): Remove assert on m_readonly_p.
+ (regcache::raw_supply_integer): Move it to
+ detached_regcache::raw_supply_integer.
+ (regcache::raw_supply_zeroed): Likewise.
+ * regcache.h (detached_regcache) <raw_supply_integer>: New
+ declaration.
+ <raw_supply_zeroed, invalidate>: Likewise.
+ (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
+ <invalidate>: Likewise.
+ <m_readonly_p>: Removed.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * infcmd.c (get_return_value): Let stop_regs point to
+ get_current_regcache.
+ * regcache.c (regcache::regcache): Remove.
+ (register_dump_reg_buffer): New class.
+ (regcache_print): Adjust.
+ * regcache.h (regcache): Remove constructors.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c (class register_dump): New class.
+ (register_dump_regcache, register_dump_none): New class.
+ (register_dump_remote, register_dump_groups): New class.
+ (regcache_print): Update.
+ * regcache.h (regcache_dump_what): Move it to regcache.c.
+ (regcache) <dump>: Remove.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * jit.c (struct jit_unwind_private) <regcache>: Change its type to
+ reg_buffer_rw *.
+ (jit_unwind_reg_set_impl): Call raw_supply.
+ (jit_frame_sniffer): Use reg_buffer_rw.
+ * record-full.c (record_full_core_regbuf): Change its type.
+ (record_full_core_open_1): Use reg_buffer_rw.
+ (record_full_close): Likewise.
+ (record_full_core_fetch_registers): Use regcache->raw_supply.
+ (record_full_core_store_registers): Likewise.
+ * regcache.c (regcache::get_register_status): Move it to
+ reg_buffer.
+ (regcache_raw_set_cached_value): Remove.
+ (regcache::raw_set_cached_value): Remove.
+ (regcache::raw_write): Call raw_supply.
+ (regcache::raw_supply): Move it to reg_buffer_rw.
+ * regcache.h (regcache_raw_set_cached_value): Remove.
+ (reg_buffer_rw): New class.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
+ readonly_detached_regcache.
+ (dummy_frame_prev_register): Use regcache->cooked_read.
+ * frame.c (frame_save_as_regcache): Change return type.
+ (frame_pop): Update.
+ * frame.h (frame_save_as_regcache): Update declaration.
+ * inferior.h (get_infcall_suspend_state_regcache): Update
+ declaration.
+ * infrun.c (infcall_suspend_state) <registers>: use
+ readonly_detached_regcache.
+ (save_infcall_suspend_state): Don't use regcache_dup.
+ (get_infcall_suspend_state_regcache): Change return type.
+ * linux-fork.c (struct fork_info) <savedregs>: Change to
+ readonly_detached_regcache.
+ <pc>: New field.
+ (fork_save_infrun_state): Don't use regcache_dup.
+ (info_checkpoints_command): Adjust.
+ * mi/mi-main.c (register_changed_p): Update declaration.
+ (mi_cmd_data_list_changed_registers): Use
+ readonly_detached_regcache.
+ (register_changed_p): Change parameter type to
+ readonly_detached_regcache.
+ * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
+ readonly_detached_regcache.
+ (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
+ * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
+ New.
+ (regcache::save): Move it to reg_buffer.
+ (regcache::restore): Change parameter type.
+ (regcache_dup): Remove.
+ * regcache.h (reg_buffer) <save>: New method.
+ (readonly_detached_regcache): New class.
+ * spu-tdep.c (spu2ppu_cache) <regcache>: Use
+ readonly_detached_regcache.
+ (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * frame.c (frame_save_as_regcache): Use regcache method save.
+ (frame_pop): Use regcache method restore.
+ * infrun.c (restore_infcall_suspend_state): Likewise.
+ * linux-fork.c (fork_load_infrun_state): Likewise.
+ * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
+ save.
+ * regcache.c (regcache_save): Remove.
+ (regcache::restore): More asserts.
+ (regcache_cpy): Remove.
+ * regcache.h (regcache_save): Remove the declaration.
+ (regcache::restore): Move from private to public.
+ Remove the friend declaration of regcache_cpy.
+ (regcache_cpy): Remove declaration.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
+ parameter type to 'readable_regcache *'.
+ * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
+ * arm-tdep.c (arm_neon_quad_read): Likewise.
+ (arm_pseudo_read): Likewise.
+ * avr-tdep.c (avr_pseudo_register_read): Likewise.
+ * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
+ * frv-tdep.c (frv_pseudo_register_read): Likewise.
+ * gdbarch.c: Re-generated.
+ * gdbarch.h: Re-generated.
+ * gdbarch.sh (pseudo_register_read): Change parameter type to
+ 'readable_regcache *'.
+ (pseudo_register_read_value): Likewise.
+ * h8300-tdep.c (pseudo_from_raw_register): Likewise.
+ (h8300_pseudo_register_read): Likewise.
+ * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
+ * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
+ (i386_pseudo_register_read_into_value): Likewise.
+ (i386_pseudo_register_read_value): Likewise.
+ * i386-tdep.h (i386_pseudo_register_read_into_value): Update
+ declaration.
+ * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
+ * m32c-tdep.c (m32c_raw_read): Likewise.
+ (m32c_read_flg): Likewise.
+ (m32c_banked_register): Likewise.
+ (m32c_banked_read): Likewise.
+ (m32c_sb_read): Likewise.
+ (m32c_part_read): Likewise.
+ (m32c_cat_read): Likewise.
+ (m32c_r3r2r1r0_read): Likewise.
+ (m32c_pseudo_register_read): Likewise.
+ * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
+ * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
+ (mep_pseudo_cr64_read): Likewise.
+ (mep_pseudo_register_read): Likewise.
+ * mips-tdep.c (mips_pseudo_register_read): Likewise.
+ * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
+ * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
+ * regcache.c (regcache::raw_read): Move it to readable_regcache.
+ (regcache::cooked_read): Likewise.
+ (regcache::cooked_read_value): Likewise.
+ (regcache_cooked_read_signed):
+ (regcache::cooked_read): Likewise.
+ * regcache.h (readable_regcache): New class.
+ (regcache): Inherit readable_regcache. Move some methods to
+ readable_regcache.
+ * rl78-tdep.c (rl78_pseudo_register_read): Change
+ parameter type to 'readable_regcache *'.
+ * rs6000-tdep.c (do_regcache_raw_read): Remove.
+ (e500_pseudo_register_read): Change parameter type to
+ 'readable_regcache *'.
+ (dfp_pseudo_register_read): Likewise.
+ (vsx_pseudo_register_read): Likewise.
+ (efpr_pseudo_register_read): Likewise.
+ * s390-tdep.c (s390_pseudo_register_read): Likewise.
+ * sh-tdep.c (sh_pseudo_register_read): Likewise.
+ * sh64-tdep.c (pseudo_register_read_portions): Likewise.
+ (sh64_pseudo_register_read): Likewise.
+ * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
+ * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
+ * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
+ (spu_pseudo_register_read): Likewise.
+ * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
+ (xtensa_pseudo_register_read): Likewise.
+
+2018-02-21 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c (regcache::regcache): Call reg_buffer ctor.
+ (regcache::arch): Move it to reg_buffer::arch.
+ (regcache::register_buffer): Likewise.
+ (regcache::assert_regnum): Likewise.
+ (regcache::num_raw_registers): Likewise.
+ * regcache.h (reg_buffer): New class.
+ (regcache): Inherit reg_buffer.
+
+2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
+
+ * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
+ gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
+
+2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
+
+ * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
+
+2018-02-19 Alan Hayward <alan.hayward@arm.com>
+
+ * Makefile.in: (COMMON_SFILES): Add common/*.c files.
+ (SFILES): Remove common/*.c files.
+ (COMMON_OBS): Remove some *.o files built from common/*.c files.
+ * common/common.host: Add common reference.
+ * configure.ac: Likewise.
+ * configure: Regenerate.
+
+2018-02-16 Yao Qi <yao.qi@linaro.org>
+
+ * block.c (block_namespace_info): Inherit allocate_on_obstack.
+ (block_initialize_namespace): Use new.
+ * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
+ (dwarf2_free_objfile): Use delete.
+ * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
+ (copy_type_recursive): Use new.
+ * gdb_obstack.h (allocate_on_obstack): New.
+
+2018-02-15 Yao Qi <yao.qi@linaro.org>
+
+ PR gdb/22849
+ * inferior.c (exit_inferior_1): Reset inf->control.
+
+2018-02-15 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_to_fixed_value_create): Delete advance
+ declaration.
+
+2018-02-14 Pedro Alves <palves@redhat.com>
+
+ * frame-unwind.c (frame_unwind_try_unwinder): Always call
+ frame_cleanup_after_sniffer on exception.
+
+2018-02-14 Tom Tromey <tom@tromey.com>
+
+ * solist.h (struct target_so_ops) <bfd_open>: Make pathname
+ const.
+ (solib_bfd_open): Make pathname const.
+ * solib.c (solib_bfd_open): Make pathname const.
+ * solib-spu.c (spu_bfd_fopen): Make name const.
+ (spu_bfd_open): Make pathname const.
+ * solib-darwin.c (darwin_bfd_open): Make pathname const.
+ * solib-aix.c (solib_aix_bfd_open): Make pathname const.
+
+2018-02-14 Tom Tromey <tom@tromey.com>
+
+ * symfile.c (symfile_bfd_open): Update.
+ * source.h (openp, source_full_path_of, find_and_open_source):
+ Change argument type to unique_xmalloc_ptr.
+ * source.c (openp): Take a unique_xmalloc_ptr.
+ (source_full_path_of, find_and_open_source): Likewise.
+ (open_source_file, symtab_to_fullname): Update.
+ * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
+ unique_xmalloc_ptr.
+ * solib.c (solib_find_1): Use unique_xmalloc_ptr.
+ (exec_file_find): Update.
+ * psymtab.c (psymtab_to_fullname): Update.
+ * nto-tdep.h (nto_find_and_open_solib): Update.
+ * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
+ unique_xmalloc_ptr.
+ * exec.c (exec_file_attach): Update.
+ * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
+ * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
+
+2018-02-14 Tom Tromey <tom@tromey.com>
+
+ * solib.c: Include source.h.
+ * nto-tdep.c: Include source.h.
+ * mi/mi-cmd-env.c: Include source.h.
+ * infcmd.c: Include source.h.
+ * exec.c: Include source.h.
+ * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
+ (add_path, directory_switch, source_path, init_source_path): Move
+ declarations...
+ * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
+ (add_path, directory_switch, source_path, init_source_path):
+ ...here.
+
+2018-02-14 Tom Tromey <tom@tromey.com>
+
+ * solist.h (exec_file_find, solib_find): Return
+ unique_xmalloc_ptr.
+ (solib_bfd_fopen): Take a const char *.
+ * solib.c (solib_find_1): Return unique_xmalloc_ptr.
+ (exec_file_find, solib_find): Likewise.
+ (solib_bfd_fopen): Do not take ownership of "pathname".
+ (solib_bfd_open): Use unique_xmalloc_ptr.
+ * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
+ * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
+ * infrun.c (follow_exec): Use unique_xmalloc_ptr.
+ * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
+
+2018-02-14 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (name_match_type_from_name): Remove reference to
+ ada_name_for_lookup in function's documentation.
+ * ada-lang.h (ada_name_for_lookup): Delete declaration.
+
+2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * defs.h (enum openp_flags): New enum.
+ (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
+ Move to enum openp_flags.
+ (openp_flags): New enum flags.
+ (openp): Change parameter type to openp_flags.
+ * source.c (openp): Change parameter type to openp_flags.
+ * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
+ * dwarf2read.c (try_open_dwop_file): Use openp_flags.
+
+2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
+ per-command.
+
+2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * dwarf2read.c (dwarf2_release_queue): Delete function, move body
+ into...
+ (class dwarf2_queue_guard): ...the destructor of this new class.
+ (dw2_do_instantiate_symtab): Create instance of the new class
+ dwarf2_queue_guard, remove cleanup.
+
+2018-02-09 Tom Tromey <tom@tromey.com>
+
+ * source.c (find_source_lines): Don't reference past the end of
+ the vector.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * remote.c (remote_btrace_maybe_reopen): Change error message.
+ * btrace.c (btrace_enable): Likewise.
+ (parse_xml_btrace): Likewise.
+ (parse_xml_btrace_conf): Likewise.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
+ (linux_enable_pt, linux_enable_bts): Call
+ diagnose_perf_event_open_fail.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
+ Remove parameter and change return type. Update callers. Move it.
+ (linux_enable_bts, linux_enable_pt): Improve error message.
+ (linux_enable_pt): Remove zero buffer size check.
+ (linux_enable_btrace): Improve error messages. Remove NULL return
+ check.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * btrace.c (btrace_enable): Remove target_supports_btrace call.
+ * nat/linux-btrace.c (perf_event_pt_event_type): Move.
+ (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
+ (linux_supports_pt, linux_supports_btrace): Remove.
+ (linux_enable_bts): Call cpu_supports_bts.
+ * nat/linux-btrace.h (linux_supports_btrace): Remove.
+ * remote.c (remote_supports_btrace): Remove.
+ (init_remote_ops): Remove remote_supports_btrace.
+ * target-delegates.c: Regenerated.
+ * target.c (target_supports_btrace): Remove.
+ * target.h (target_ops) <to_supports_btrace>: Remove
+ (target_supports_btrace): Remove.
+ * x86-linux-nat.c (x86_linux_create_target): Remove
+ linux_supports_btrace.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
+ btrace failed.
+ * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
+ exception and use message in own exception.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
+ (perf_event_pt_event_type): Use gdb_file_up.
+ (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
+ scoped_fd, and scoped_mmap.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * common/scoped_mmap.h: New.
+ * unittests/scoped_mmap-selftest.c: New.
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/scoped_mmap-selftest.c.
+
+2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * common/scoped_fd.h: New.
+ * unittests/scoped_fd-selftest.c: New.
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/scoped_fd-selftest.c.
+
+2018-02-09 Tom Tromey <tom@tromey.com>
+
+ * auto-load.c (auto_load_section_scripts): Use
+ gdb::unique_xmalloc_ptr.
+
+2018-02-09 Tom Tromey <tom@tromey.com>
+
+ * auto-load.c (execute_script_contents): Use std::string.
+
+2018-02-09 Joel Brobecker <brobecker@adacore.com>
+
+ * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
+ Python function, rather than a new command.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * solib.c (solib_find_1): Use std::string.
+ (solib_bfd_fopen): Use unique_xmalloc_ptr.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * source.c (find_source_lines): Use gdb::def_vector.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * macrocmd.c (struct temporary_macro_definition): New.
+ (macro_define_command): Use temporary_macro_definition. Remove
+ cleanups.
+ (free_macro_definition_ptr): Remove.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * macroexp.c (maybe_expand): Use std::string.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * macroexp.c (struct macro_buffer): Add initializers for some
+ members.
+ (init_buffer, init_shared_buffer, free_buffer)
+ (free_buffer_return_text): Remove.
+ (macro_buffer): New constructors.
+ (~macro_buffer): New destructor.
+ (macro_buffer::set_shared): New method.
+ (macro_buffer::resize_buffer, macro_buffer::appendc)
+ (macro_buffer::appendmem): Now methods, not free functions.
+ (set_token, append_tokens_without_splicing, stringify)
+ (macro_stringify): Update.
+ (gather_arguments): Change return type. Remove argc_p argument,
+ add args_ptr argument. Use std::vector.
+ (substitute_args): Remove argc argument. Accept std::vector.
+ (expand): Update. Use std::vector.
+ (scan, macro_expand, macro_expand_next): Update.
+
+2018-02-08 Tom Tromey <tom@tromey.com>
+
+ * symtab.c (default_collect_symbol_completion_matches_break_on):
+ Use unique_xmalloc_ptr.
+ * macroscope.h: (sal_macro_scope, user_macro_scope)
+ (default_macro_scope): Return unique_xmalloc_ptr.
+ * macroscope.c (sal_macro_scope, user_macro_scope)
+ (default_macro_scope): Return unique_xmalloc_ptr.
+ * macroexp.h (macro_expand, macro_expand_once): Return
+ unique_xmalloc_ptr.
+ * macroexp.c (macro_expand, macro_expand_once): Return
+ unique_xmalloc_ptr.
+ * macrocmd.c (macro_expand_command, macro_expand_once_command)
+ (info_macro_command, info_macros_command): Use
+ unique_xmalloc_ptr.
+ * compile/compile-c-support.c (write_macro_definitions): Use
+ unique_xmalloc_ptr.
+ * c-exp.y (c_parse): Use unique_xmalloc_ptr.
+
+2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * value.c (value_static_field): Assign field type instead of
+ containing type when returning an optimized out value.
+
+2018-02-06 Yao Qi <yao.qi@linaro.org>
+
+ * ft32-tdep.c (ft32_read_pc): Remove.
+ (ft32_write_pc): Remove.
+ (ft32_gdbarch_init): Update.
+ * m32r-tdep.c (m32r_read_pc): Remove.
+ (m32r_gdbarch_init): Update.
+ * mep-tdep.c (mep_read_pc): Remove.
+ (mep_gdbarch_init): Update.
+ * microblaze-tdep.c (microblaze_write_pc): Remove.
+ (microblaze_gdbarch_init): Update.
+ * mn10300-tdep.c (mn10300_read_pc): Remove.
+ (mn10300_write_pc): Remove.
+ (mn10300_gdbarch_init): Update.
+ * moxie-tdep.c (moxie_read_pc): Remove.
+ (moxie_write_pc): Remove.
+ (moxie_gdbarch_init): Update.
+
+2018-02-06 Yao Qi <yao.qi@linaro.org>
+
+ * expprint.c (print_subexp_standard): Handle
+ OP_F77_UNDETERMINED_ARGLIST.
+ (dump_subexp_body_standard): Likewise.
+
+2018-02-05 Alan Hayward <alan.hayward@arm.com>
+
+ * target-descriptions.c (tdesc_element_visitor) Add empty
+ implementations.
+ (tdesc_type): Move make_gdb_type from here.
+ (tdesc_type_builtin): Likewise.
+ (tdesc_type_vector): Likewise.
+ (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
+ (make_gdb_type_struct): Move from tdesc_type_with_fields.
+ (make_gdb_type_union): Likewise.
+ (make_gdb_type_flags): Likewise.
+ (make_gdb_type_enum): Likewise.
+ (make_gdb_type): New function.
+ (tdesc_register_type): Use static make_gdb_type.
+
+2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
+
+ * infcmd.c (default_print_one_register_info): Align natural-format
+ column values consistently one under another.
+ (pad_to_column): New function.
+
+2018-02-05 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (dwarf2_physname): Move commment.
+
+2018-02-01 Leszek Swirski <leszeks@google.com>
+
+ * varobj.c (varobj_formatted_print_options): Allow recursive
+ pretty printing if pretty printing is enabled.
+
+2018-02-01 Leszek Swirski <leszeks@google.com>
+
+ * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
+ names after a structop as a filename.
+
+2018-02-01 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
+ (arm_record_coproc_data_proc): Likewise.
+
+2018-02-01 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_extension_space): Change ret to signed.
+
+2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
+
+ * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
+ assign shifted lr_reg to fdata->lr_register when lr_reg is set.
+
+2018-01-31 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
+ * inflow.c (child_terminal_save_inferior): Wrap reference to
+ tcgetpgrp in HAVE_TERMIOS_H.
+ (child_interrupt, child_pass_ctrlc): Wrap references to signal in
+ _WIN32.
+ * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
+ always iterate over all inferiors.
+ (gdbsim_cntrl_c): Adjust.
+ * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
+
+2018-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbtypes.c (lookup_array_range_type): Make sure the array's
+ index type is objfile-owned if the element type is as well.
+
+2018-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 8.1 released.
+
+2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
+ "features/s390x-linux64.c".
+ (_initialize_s390_linux_tdep): Remove initialization of tdescs
+ s390_linux32 and s390x_linux64.
+ (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
+ default tdesc.
+ * s390-tdep.c: Include "features/s390-linux32.c" and
+ "features/s390x-linux64.c".
+ (s390_tdesc_valid): Add check for tdesc_has_registers.
+ (s390_gdbarch_init): Make sure there is always a valid tdesc.
+ (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
+ tdesc_s390x_linux64.
+ * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
+ tdesc_s390x_linux64 to...
+ * s390-tdep.h: ...here.
+
+2018-01-30 Pedro Alves <palves@redhat.com>
+
+ PR gdb/13211
+ * config.in, configure: Regenerate.
+ * configure.ac: Check for getpgid.
+ * go32-nat.c (go32_pass_ctrlc): New.
+ (go32_target): Install it.
+ * inf-child.c (inf_child_target): Install
+ child_terminal_save_inferior, child_pass_ctrlc and
+ child_interrupt.
+ * inf-ptrace.c (inf_ptrace_interrupt): Delete.
+ (inf_ptrace_target): No longer install it.
+ * infcmd.c (interrupt_target_1): Adjust.
+ * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
+ (child_interrupt): Declare.
+ (inferior::terminal_state): New.
+ * inflow.c (struct terminal_info): Update comments.
+ (inferior_process_group): Delete.
+ (terminal_is_ours): Delete.
+ (gdb_tty_state): New.
+ (child_terminal_init): Adjust.
+ (is_gdb_terminal, sharing_input_terminal_1)
+ (sharing_input_terminal): New functions.
+ (child_terminal_inferior): Adjust. Use sharing_input_terminal.
+ Set the process's actual process group in the foreground if
+ possible. Handle is_ours_for_output/is_ours distinction. Don't
+ mark terminal as the inferior's if not sharing GDB's terminal.
+ Don't check attach_flag.
+ (child_terminal_ours_for_output, child_terminal_ours): Adjust to
+ pass down a target_terminal_state.
+ (child_terminal_save_inferior): New, factored out from ...
+ (child_terminal_ours_1): ... this. Handle
+ target_terminal_state::is_ours_for_output.
+ (child_interrupt, child_pass_ctrlc): New.
+ (inflow_inferior_exit): Clear the inferior's terminal_state.
+ (copy_terminal_info): Copy the inferior's terminal state.
+ (_initialize_inflow): Remove reference to terminal_is_ours.
+ * inflow.h (inferior_process_group): Delete.
+ * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
+ * procfs.c (procfs_target): Don't install procfs_interrupt.
+ (procfs_interrupt): Delete.
+ * remote.c (remote_serial_quit_handler): Adjust.
+ (remote_interrupt): Remove ptid parameter. Adjust.
+ * target-delegates.c: Regenerate.
+ * target.c: Include "terminal.h".
+ (target_terminal::terminal_state): Rename to ...
+ (target_terminal::m_terminal_state): ... this.
+ (target_terminal::init): Adjust.
+ (target_terminal::inferior): Adjust to per-inferior
+ terminal_state.
+ (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
+ (target_terminal::ours, target_terminal::ours_for_output): Use
+ target_terminal_is_ours_kind.
+ (target_interrupt): Remove ptid parameter. Adjust.
+ (default_target_pass_ctrlc): Adjust.
+ * target.h (target_ops::to_terminal_save_inferior): New field.
+ (target_ops::to_interrupt): Remove ptid_t parameter.
+ (target_interrupt): Remove ptid_t parameter. Update comment.
+ (target_pass_ctrlc): Update comment.
+ * target/target.h (target_terminal_state): New scoped enum,
+ factored out of ...
+ (target_terminal::terminal_state): ... here.
+ (target_terminal::inferior): Update comments.
+ (target_terminal::restore_inferior): New.
+ (target_terminal::is_inferior, target_terminal::is_ours)
+ (target_terminal::is_ours_for_output): Adjust.
+ (target_terminal::scoped_restore_terminal_state): Adjust to
+ rename, and call restore_inferior() instead of inferior().
+ (target_terminal::scoped_restore_terminal_state::m_state): Change
+ type.
+ (target_terminal::terminal_state): Rename to ...
+ (target_terminal::m_terminal_state): ... this and change type.
+
+2018-01-30 Pedro Alves <palves@redhat.com>
+
+ * linux-nat.c (wait_for_signal): New function.
+ (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
+ directly.
+ (async_terminal_is_ours)
+ (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
+ (linux_nat_add_target): Don't override
+ to_terminal_inferior/to_terminal_ours.
+
+2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * remote.c (remote_follow_fork): Don't call "detach_inferior".
+
+2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
+
+ * dwarf2read.c (free_dwo_files): Add forward-declaration.
+ (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
+ dwarf2_per_objfile_free here.
+ (dwarf2_per_objfile_free): Remove.
+ (_initialize_dwarf2_read): Don't register
+ dwarf2_per_objfile_free as a registry cleanup.
+
+2018-01-27 Eli Zaretskii <eliz@gnu.org>
+
+ Avoid compilation errors in MinGW native builds
+
+ The error is triggered by including python-internal.h, and the
+ error message is:
+
+ In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
+ from build-gnulib/import/math.h:27,
+ from d:/usr/Python26/include/pyport.h:235,
+ from d:/usr/Python26/include/Python.h:58,
+ from python/python-internal.h:94,
+ from python/py-arch.c:24:
+ d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
+ using ::hypot;
+ ^~~~~
+
+ This happens because Python headers define 'hypot' to expand t
+ '_hypot' in the Windows builds.
+ * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
+ 'hypoth'. This avoids a compilation error.
+
+2018-01-26 Alan Hayward <alan.hayward@arm.com>
+
+ * MAINTAINERS (Write After Approval): Fix ordering.
+
+2018-01-26 Alan Hayward <alan.hayward@arm.com>
+
+ * MAINTAINERS (Write After Approval): Add Alan Hayward.
+
+2018-01-26 Alan Modra <amodra@gmail.com>
+
+ * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
+ (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
+ Remove nop. Make const. Comment.
+ (powerpc32_plt_stub_so_2): New.
+ (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
+ Correct count. Update uses.
+ (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
+ Move common code reading PLT entry word. Correct
+ powerpc32_plt_stub PLT address calculation.
+ * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
+ (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
+ (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
+ (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
+ (ppc64_standard_linkage8): Likewise.
+ * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
+ Correct insns description.
+ * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
+
+2018-01-24 Pedro Alves <palves@redhat.com>
+
+ GCC PR libstdc++/83906
+ * gdbtypes.c (operator==(const dynamic_prop &,
+ const dynamic_prop &)): New.
+ (operator==(const range_bounds &, const range_bounds &)): New.
+ (check_types_equal): Use them instead of memcmp.
+ * gdbtypes.h (operator==(const dynamic_prop &,
+ const dynamic_prop &)): Declare.
+ (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
+ (operator==(const range_bounds &, const range_bounds &)): Declare.
+ (operator!=(const range_bounds &, const range_bounds &)): Declare.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_record_address_mask)
+ (s390_record_calc_disp_common, s390_record_calc_disp)
+ (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
+ (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
+ (s390_process_record): Move to s390-tdep.c.
+ (s390_linux_init_abi_any): Adjust.
+ * s390-tdep.c (s390_record_address_mask)
+ (s390_record_calc_disp_common, s390_record_calc_disp)
+ (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
+ (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
+ (s390_process_record): Moved from s390-linux-tdep.c
+ (s390_gdbarch_init): Adjust.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-nat.c (s390-tdep.h): New include.
+ * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
+ (HFILES_NO_SRCDIR): Add s390-tdep.h.
+ (ALLDEPFILES): Add s390-tdep.c.
+ * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
+ * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
+ * s390-tdep.h: ...this. New file.
+ * s390-linux-tdep.c (s390-tdep.h): New include.
+ (_initialize_s390_tdep): Rename to...
+ (_initialize_s390_linux_tdep): ...this and adjust.
+ (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
+ (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
+ s390-tdep.h.
+ (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
+ (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
+ (s390_is_partial_instruction, s390_software_single_step)
+ (is_non_branch_ril, s390_displaced_step_copy_insn)
+ (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
+ (s390_prologue_data, s390_addr, s390_store, s390_load)
+ (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
+ (s390_register_call_saved, s390_guess_tracepoint_registers)
+ (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
+ (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
+ (s390_pseudo_register_name, s390_pseudo_register_type)
+ (s390_pseudo_register_read, s390_pseudo_register_write)
+ (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
+ (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
+ (s390_addr_bits_remove, s390_address_class_type_flags)
+ (s390_address_class_type_flags_to_name)
+ (s390_address_class_name_to_type_flags, s390_effective_inner_type)
+ (s390_function_arg_float, s390_function_arg_vector)
+ (is_power_of_two, s390_function_arg_integer, s390_arg_state)
+ (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
+ (s390_frame_align, s390_register_return_value, s390_return_value)
+ (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
+ (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
+ (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
+ (s390_trad_frame_prev_register, s390_unwind_cache)
+ (s390_prologue_frame_unwind_cache)
+ (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
+ (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
+ (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
+ (s390_stub_frame_this_id, s390_stub_frame_prev_register)
+ (s390_stub_frame_sniffer, s390_stub_frame_unwind)
+ (s390_frame_base_address, s390_local_base_address)
+ (s390_frame_base, s390_gcc_target_options)
+ (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
+ (s390_validate_reg_range, s390_tdesc_valid)
+ (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
+ * s390-tdep.c: ...this. New file.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
+ (s390_process_record, s390_gdbarch_tdep_alloc)
+ (s390_linux_init_abi_any): Use/set new hook.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (osabi.h): New include.
+ (s390_linux_init_abi_31, s390_linux_init_abi_64)
+ (s390_linux_init_abi_any): New functions.
+ (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
+ tdesc_has_registers check
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_tdesc_valid): New function.
+ (s390_validate_reg_range): New macro.
+ (s390_gdbarch_init): Adjust.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
+ (s390_gdbarch_tdep_alloc): Adjust.
+ (s390_gdbarch_init): Adjust.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
+ <have_tdb>: Change type to bool.
+ (s390_gdbarch_tdep_alloc): Adjust.
+ (s390_gdbarch_init): Adjust.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
+ (gdbarch_tdep) <have_upper, have_vx>: New fields.
+ (s390_gdbarch_tdep_alloc): New function.
+ (s390_gdbarch_init): Allocate tdep at start and use its fields
+ instead of separate variables.
+
+2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
+ when looking for cached gdbarch and add comment for remaining.
+
+2018-01-22 Pedro Alves <palves@redhat.com>
+ Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
+ case.
+
+2018-01-22 Maciej W. Rozycki <macro@mips.com>
+
+ * MAINTAINERS: Update my company e-mail address.
+
+2018-01-22 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c (cooked_write_test): New function.
+ (_initialize_regcache): Register the test.
+
+2018-01-22 Yao Qi <yao.qi@linaro.org>
+
+ * ia64-tdep.c (ia64_pseudo_register_read): Call
+ regcache->cooked_read instead of regcache_cooked_read_unsigned.
+ * m32c-tdep.c (m32c_cat_read): Likewise.
+ (m32c_r3r2r1r0_read): Likewise.
+ * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
+ * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
+
+2018-01-22 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
+ method raw_read instead of regcache_raw_read.
+ * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
+ * arm-tdep.c (arm_neon_quad_read): Likewise.
+ * avr-tdep.c (avr_pseudo_register_read): Likewise.
+ * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
+ * frv-tdep.c (frv_pseudo_register_read): Likewise.
+ * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
+ * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
+ (i386_pseudo_register_read_into_value): Likewise.
+ * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
+ * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
+ * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
+ * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
+ * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
+ * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
+ * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
+ * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
+ * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
+
+2018-01-22 Yao Qi <yao.qi@linaro.org>
+
+ * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
+ * configure.tgt: Remove target mt.
+ * mt-tdep.c: Remove.
+ * regcache.c (cooked_read_test): Remove the check for mt.
+
+2018-01-22 Yao Qi <yao.qi@linaro.org>
+
+ * jit.c (jit_frame_prev_register): Call regcache::cooked_read
+ instead of gdbarch_pseudo_register_read_value.
+
+2018-01-22 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
+ language is Ada.
+
+2018-01-22 Joel Brobecker <brobecker@adacore.com>
+
+ * linespec.c (create_sals_line_offset): Remove code that preserved
+ the symtab_and_line's line number.
+
+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * varobj.c (varobj_create): Don't set valid_block when creating a
+ floating varobj.
+
+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * varobj.c (varobj_create): Remove out of date comment.
+
+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR mi/20395
+ * ada-exp.y (write_var_from_sym): Pass extra parameter when
+ updating innermost block.
+ * parse.c (innermost_block_tracker::update): Take extra type
+ parameter, and check types match before updating innermost block.
+ (write_dollar_variable): Update innermost block for registers.
+ * parser-defs.h (enum innermost_block_tracker_type): New enum.
+ (innermost_block_tracker::innermost_block_tracker): Initialise
+ m_types member.
+ (innermost_block_tracker::reset): Take type parameter.
+ (innermost_block_tracker::update): Take type parameter, and pass
+ type through as needed.
+ (innermost_block_tracker::m_types): New member.
+ * varobj.c (varobj_create): Pass type when reseting innermost
+ block.
+
+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
+ * ada-lang.c (resolve_subexp): Likewise.
+ * breakpoint.c (set_breakpoint_condition) Likewise.
+ (watch_command_1) Likewise.
+ * c-exp.y (variable): Likewise.
+ * d-exp.y (PrimaryExpression): Likewise.
+ * f-exp.y (variable): Likewise.
+ * go-exp.y (variable): Likewise.
+ * m2-exp.y (variable): Likewise.
+ * objfiles.c (objfile::~objfile): Likewise.
+ * p-exp.y (variable): Likewise.
+ * parse.c (innermost_block): Change type.
+ * parser-defs.h (class innermost_block_tracker): New.
+ (innermost_block): Change to innermost_block_tracker.
+ * printcmd.c (display_command): Switch to innermost_block API.
+ (do_one_display): Likewise.
+ * rust-exp.y (do_one_display): Likewise.
+ * symfile.c (clear_symtab_users): Likewise.
+ * varobj.c (varobj_create): Switch to innermost_block API, replace
+ use of innermost_block with block stored on varobj object.
+