+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".