+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * aix-thread.c (aix_thread_pid_to_str)
+ (aix_thread_extra_thread_info): Constify.
+ * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
+ * bsd-uthread.c (bsd_uthread_extra_thread_info)
+ (bsd_uthread_pid_to_str): Constify.
+ * corelow.c (core_pid_to_str): Constify.
+ * darwin-nat.c (darwin_pid_to_str): Constify.
+ * fbsd-nat.c (fbsd_pid_to_str): Constify.
+ * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
+ Constify.
+ * gnu-nat.c (gnu_pid_to_str): Constify.
+ * go32-nat.c (go32_pid_to_str): Constify.
+ * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
+ * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
+ * inferior.c (inferior_pid_to_str): Constify.
+ * linux-nat.c (linux_nat_pid_to_str): Constify.
+ * linux-tdep.c (linux_core_pid_to_str): Constify.
+ * linux-thread-db.c (thread_db_pid_to_str)
+ (thread_db_extra_thread_info): Constify.
+ * nto-tdep.c (nto_extra_thread_info): Constify.
+ * nto-tdep.h (nto_extra_thread_info): Constify.
+ * obsd-nat.c (obsd_pid_to_str): Constify.
+ * procfs.c (procfs_pid_to_str): Constify.
+ * ravenscar-thread.c (ravenscar_extra_thread_info)
+ (ravenscar_pid_to_str): Constify.
+ * remote-sim.c (gdbsim_pid_to_str): Constify.
+ * remote.c (remote_threads_extra_info, remote_pid_to_str):
+ Constify.
+ * sol-thread.c (solaris_pid_to_str): Constify.
+ * sol2-tdep.c (sol2_core_pid_to_str): Constify.
+ * sol2-tdep.h (sol2_core_pid_to_str): Constify.
+ * target.c (default_pid_to_str, target_pid_to_str)
+ (normal_pid_to_str, default_pid_to_str): Constify.
+ * target.h (target_ops::to_pid_to_str)
+ (target_ops::to_extra_thread_info): Constify.
+ (target_pid_to_str, normal_pid_to_str): Constify.
+ * windows-nat.c (windows_pid_to_str): Constify.
+ * gdbarch.sh (core_pid_to_str): Constify.
+ * target-delegates.c: Regenerate.
+ * gdbarch.h, gdbarch.c: Regenerate.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
+ the memory of the temporary warning_pre_print override.
+ * utils.c (warning_pre_print): Constify.
+ * utils.h (warning_pre_print): Constify.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
+ (shell_command): New function.
+ (make_command): Use std::string.
+ (init_cli_cmds): Register shell_command instead of shell_escape.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
+ * tracepoint.c (default_collect): Don't initialize.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * macroexp.c (macro_buffer::shared): Now a bool.
+ (init_buffer): Update.
+ (init_shared_buffer): Constify 'addr' parameter.
+ (substitute_args, expand, macro_expand, macro_expand_next): Remove
+ casts.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
+ * disasm.c (set_disassembler_options): Constify local.
+ * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
+
+2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/21352
+ * tracefile.c (tsave_command): Fix argument parsing for '-r'
+ option.
+
+2017-04-05 Yao Qi <yao.qi@linaro.org>
+
+ * frame.c (frame_unwind_register_unsigned): Call
+ frame_unwind_register_value.
+
+2017-04-05 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
+ Use gdb_test_multiple, and don't match anchor.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * MAINTAINERS (Global Maintainers): Add Simon Marchi.
+ (Write After Approval): Remove Simon Marchi.
+
+2017-04-05 Pedro Alves <palves@redhat.com>
+
+ * common/gdb_optional.h (optional::optional): Make constexpr and
+ initialize m_dummy.
+
+2017-04-04 John Baldwin <jhb@FreeBSD.org>
+
+ * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
+ (amd64fbsd_jmp_buf_reg_offset): Remove.
+ (amd64fbsd_supply_uthread): Remove function.
+ (amd64fbsd_collect_uthread): Remove function.
+ (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
+ * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
+ (x86_64-*-freebsd*): Remove bsd-uthread.o.
+ (fbsd-nat.c): Update comment.
+ * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
+ (i386fbsd_jmp_buf_reg_offset): Remove.
+ (i386fbsd_supply_uthread): Remove function.
+ (i386fbsd_collect_uthread): Remove function.
+ (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
+
+2017-04-04 John Baldwin <jhb@FreeBSD.org>
+
+ * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
+ (ALLDEPFILES): Remove alpha-fbsd-tdep.c
+ * NEWS: Mention that support for FreeBSD/alpha was removed.
+ * alpha-fbsd-tdep.c: Delete file.
+ * config/alpha/fbsd.mh: Delete file.
+ * configure.host: Delete alpha*-*-freebsd* and
+ alpha*-*-kfreebsd*-gnu.
+ * configure.tgt: Delete alpha*-*-freebsd* and
+ alpha*-*-kfreebsd*-gnu.
+
+2017-04-04 John Baldwin <jhb@FreeBSD.org>
+
+ * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
+ amd64bsd_store_inferior_registers): Use ptid from regcache.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
+ data fields, make them private and add "m_" prefixes.
+ (lnp_state_machine::lnp_state_machine): New ctor.
+ (record_line, check_line_address, handle_set_discriminator)
+ (handle_set_address, handle_advance_pc, handle_special_opcode)
+ (handle_advance_line, handle_set_file, handle_negate_stmt)
+ (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
+ (end_sequence, advance_line): New methods.
+ (m_gdbarch, m_record_lines_p): New fields.
+ (lnp_reader_state): Delete.
+ (dwarf_record_line): Rename to ...
+ (lnp_state_machine::record_line): ... adjust.
+ (init_lnp_state_machine): Delete.
+ (lnp_state_machine::lnp_state_machine): New.
+ (check_line_address): Rename to ...
+ (lnp_state_machine::check_line_address): This.
+ (dwarf_decode_lines_1): Remove reference to "reader_state".
+ Adjust lnp_state_machine having a non-default ctor. Use bool.
+ State machine internal state manipulation moved to
+ lnp_state_machine methods.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/offset-type-selftests.c.
+ (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
+ * common/offset-type.h: New file.
+ * common/preprocessor.h: New file.
+ * common/traits.h: New file.
+ * common/valid-expr.h: New file.
+ * dwarf2expr.c: Include "common/underlying.h". Adjust to use
+ sect_offset and cu_offset strong typedefs throughout.
+ * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
+ typedefs throughout.
+ * dwarf2loc.c: Include "common/underlying.h". Adjust to use
+ sect_offset and cu_offset strong typedefs throughout.
+ * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
+ typedefs throughout.
+ * gdbtypes.h: Include "common/offset-type.h".
+ (cu_offset): Now an offset type (strong typedef) instead of a
+ struct.
+ (sect_offset): Likewise.
+ (union call_site_parameter_u): Rename "param_offset" field to
+ "param_cu_off".
+ * unittests/offset-type-selftests.c: New file.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * common/underlying.h: New file.
+ * dwarf2read.c: Include "common/gdb_optional.h" and
+ "common/underlying.h".
+ (dir_index, file_name_index): New types.
+ (file_entry): Use them.
+ (file_entry::include): Use to_underlying.
+ (line_header::add_file_name): Use dir_index.
+ (read_formatted_entries): Use gdb::optional. Read form before
+ writting to file_entry.
+ (dwarf_decode_line_header): Use dir_index.
+ (lnp_state_machine::current_file): Use to_underlying.
+ (lnp_state_machine::file): Change type to file_name_index.
+ (dwarf_record_line): Use to_underlying.
+ (init_lnp_state_machine): Use file_name_index.
+ (dwarf_decode_lines_1): Use dir_index and file_name_index.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
+ operator bool, has_value and get methods.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (struct file_entry): Add ctors, and initialize all
+ fields.
+ (line_header): Initialize all data fields. Change type of
+ standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
+ Change type of include_dirs to std::vector<const char *>. Remove
+ num_include_dirs, include_dirs_size. Change type of file_names to
+ std::vector<file_entry>. Remove num_file_names, file_names_size.
+ (line_header::line_header): New.
+ (line_header::add_include_dir, line_header::add_file_name): New
+ methods.
+ (line_header::include_dir_at): Remove NULL check.
+ (line_header::file_name_at): Add const overload.
+ (line_header_up): New unique_ptr typedef.
+ (dw2_get_file_names_reader): Use line_header_up. Adjust to use
+ std::vector. Remove free_line_header call.
+ (dwarf2_build_include_psymtabs): Use line_header_up. Remove
+ free_line_header call.
+ (free_cu_line_header): Delete.
+ (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
+ (setup_type_unit_groups): Use line_header_up instead of cleanups.
+ Adjust to use std::vector.
+ (free_line_header): Delete.
+ (free_line_header_voidp): Use delete.
+ (add_include_dir): Replace with ...
+ (line_header::add_include_dir): ... this method. Use std::vector.
+ (add_file_name): Replace with ...
+ (line_header::add_file_name): ... this method. Use std::vector.
+ (add_include_dir_stub): Delete.
+ (read_formatted_entries): Remove memset.
+ (dwarf_decode_line_header): Return a line_header_up instead of a
+ raw pointer. Remove cleanup handling. Pass lambdas to
+ read_formatted_entries. Adjust to use line_header methods.
+ (dwarf_decode_lines_1): Adjust to use line_header methods.
+ (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
+ use std::vector.
+
+2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * remote.c (set_general_thread, set_continue_thread): Use ptid_t
+ instead of struct ptid.
+
+2017-05-04 Alan Hayward <alan.hayward@arm.com>
+
+ * frame.c (get_frame_register_bytes): Unwind using value.
+ (put_frame_register_bytes): Likewise.
+
+2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
+
+2017-03-29 Yao Qi <yao.qi@linaro.org>
+
+ * gdbthread.h (struct thread_info): Declare constructor and
+ destructor. Add some in-class member initializers.
+ * thread.c (free_thread): Remove.
+ (init_thread_list): Call delete instead of free_thread.
+ (new_thread): Call thread_info constructor.
+ (thread_info::thread_info): New function.
+ (thread_info::~thread_info): New function.
+ (delete_thread_1): Call delete instead of free_thread.
+ (make_cleanup_restore_current_thread): Move tp and frame to
+ inner block.
+
+2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
+ (arc_skip_prologue): Likewise.
+ (arc_make_frame_cache): Likewise.
+ (arc_pv_get_operand): New function.
+ (arc_is_in_prologue): Likewise.
+ (arc_analyze_prologue): Likewise.
+ (arc_print_frame_cache): Likewise.
+ (MAX_PROLOGUE_LENGTH): New constant.
+
2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
* configure.tgt: Add arc-insn.o.