+2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
+ * common/common-gdbthread.h: New file, with parts from
+ "gdb/gdbthread.h".
+ * gdbthread.h: Include "common-gdbthread.h".
+ (switch_to_thread): Moved to "common/common-gdbthread.h".
+
+2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in (SFILES): Add "common/job-control.c".
+ (HFILES_NO_SRCDIR): Add "common/job-control.h".
+ (COMMON_OBS): Add "job-control.o".
+ * common/job-control.c: New file, with contents from
+ "gdb/inflow.c".
+ * common/job-control.h: New file, with contents from "terminal.h".
+ * fork-child.c: Include "job-control.h".
+ * inflow.c: Include "job-control.h".
+ (gdb_setpgid): Move to "common/common-inflow.c".
+ (_initialize_inflow): Move setting of "job_control" to
+ "handle_job_control".
+ * terminal.h (job_control): Moved to "common/common-terminal.h".
+ (gdb_setpgid): Likewise.
+ * top.c: Include "job_control.h".
+ * utils.c: Likewise.
+ (job_control): Moved to "job-control.c".
+
+2017-06-07 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (SFILES): Add gdb_regex.c.
+ (COMMON_OBS): Add gdb_regex.o.
+ * ada-lang.c (ada_add_standard_exceptions)
+ (ada_add_exceptions_from_frame, name_matches_regex)
+ (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
+ parameter type to compiled_regex. Adjust.
+ (ada_exceptions_list): Use compiled_regex.
+ * break-catch-throw.c (exception_catchpoint::pattern): Now a
+ std::unique_ptr<compiled_regex>.
+ (exception_catchpoint::~exception_catchpoint): Remove regfree
+ call.
+ (check_status_exception_catchpoint): Adjust to use compiled_regex.
+ (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
+ * breakpoint.c (solib_catchpoint::compiled): Now a
+ std::unique_ptr<compiled_regex>.
+ (solib_catchpoint::~solib_catchpoint): Remove regfree call.
+ (check_status_catch_solib): Adjust to use compiled_regex.
+ (add_solib_catchpoint): Adjust to use compiled_regex.
+ * cli/cli-cmds.c (apropos_command): Use compiled_regex.
+ * cli/cli-decode.c (apropos_cmd): Change regex parameter to
+ compiled_regex reference. Adjust to use it.
+ * cli/cli-decode.h: Remove struct re_pattern_buffer forward
+ declaration. Include "gdb_regex.h".
+ (apropos_cmd): Change regex parameter to compiled_regex reference.
+ * gdb_regex.c: New file.
+ * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
+ declarations.
+ (class compiled_regex): New.
+ * linux-tdep.c: Include "common/gdb_optional.h".
+ (struct mapping_regexes): New, factored out from
+ mapping_is_anonymous_p, and adjusted to use compiled_regex.
+ (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
+ gdb::optional and remove cleanups. Adjust to compiled_regex.
+ * probe.c: Include "common/gdb_optional.h".
+ (collect_probes): Use compiled_regex and gdb::optional and remove
+ cleanups.
+ * skip.c: Include "common/gdb_optional.h".
+ (skiplist_entry::compiled_function_regexp): Now a
+ gdb::optional<compiled_regex>.
+ (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
+ (free_skiplist_entry): Remove regfree call.
+ (compile_skip_regexp, skip_rfunction_p): Adjust to use
+ compiled_regex and gdb::optional.
+ * symtab.c: Include "common/gdb_optional.h".
+ (search_symbols): Use compiled_regex and gdb::optional.
+ * utils.c (do_regfree_cleanup, make_regfree_cleanup)
+ (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
+ to gdb_regex.c.
+
+2017-06-07 Alan Hayward <alan.hayward@arm.com>
+
+ * regcache.c (regcache::save): Avoid buffer use.
+ (regcache::dump): Likewise.
+
+2017-06-07 Alan Hayward <alan.hayward@arm.com>
+
+ * sh-tdep.c (sh_pseudo_register_read): Remove
+ MAX_REGISTER_SIZE.
+ (sh_pseudo_register_write): Likewise.
+ * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
+ (sh64_pseudo_register_write): Likewise
+
+2017-06-07 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-tdep.c (aarch64_store_return_value): Use
+ V_REGISTER_SIZE.
+ (aarch64_pseudo_read_value): Likewise.
+ (aarch64_pseudo_write): Likewise.
+
+2017-06-06 Yao Qi <yao.qi@linaro.org>
+
+ * regformats/regdef.h (set_register_cache): Remove the
+ declaration.
+
+2017-06-06 Alan Hayward <alan.hayward@arm.com>
+
+ * frame.c (frame_unwind_register_signed): Use
+ frame_unwind_register_value.
+
+2017-06-06 Pedro Alves <palves@redhat.com>
+
+ PR breakpoints/21553
+ * breakpoint.c (create_breakpoints_sal_default)
+ (init_breakpoint_sal, create_breakpoint_sal): Use
+ gdb::unique_xmalloc_ptr for string parameters.
+ (create_breakpoint): Constify 'extra_string' and 'cond_string'
+ parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
+ (base_breakpoint_create_breakpoints_sal)
+ (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
+ (strace_marker_create_breakpoints_sal)
+ (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
+ string parameters.
+ * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
+ gdb::unique_xmalloc_ptr for string parameters.
+ (create_breakpoint): Constify 'extra_string' and 'cond_string'
+ parameters.
+
+2017-06-06 Alan Hayward <alan.hayward@arm.com>
+
+ * alpha-tdep.c (alpha_register_to_value): Use
+ get_frame_register_value.
+ (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
+
2017-06-06 Alan Hayward <alan.hayward@arm.com>
* ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.