+2014-06-06 Doug Evans <xdje42@gmail.com>
+
+ * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
+ (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
+ (gdbscm_guile_version_is_at_least): Declare.
+ (gdbscm_scm_string_to_int): Declare.
+ * guile/guile.c (gdbscm_guile_major_version): New global.
+ (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
+ (guile_datadir): New static global.
+ (gdbscm_guile_data_directory): New function.
+ (initialize_scheme_side): Update.
+ (misc_guile_functions): Add guile-data-directory.
+ (initialize_gdb_module): Fetch guile version number.
+ * guile/lib/gdb.scm: Remove call to add-to-load-path.
+ * guile/lib/gdb/init.scm (%initialize!): Ditto.
+ * guile/lib/gdb/boot.scm: Use guile-data-directory.
+ * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
+ comments.
+ * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
+ * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
+ * guile/scm-value.c (gdbscm_value_to_string): Only call
+ scm_port_conversion_strategy if Guile version >= 2.0.6.
+
+2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
+
+ * main.c (print_gdb_help): Add -q and --silent.
+
+2014-06-06 Gary Benson <gbenson@redhat.com>
+
+ * common/signals.c: Remove preprocessor conditionals for
+ always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
+ SIGSEGV and SIGTERM.
+ * proc-events.c: Likewise.
+
+2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
+
+ * symfile.c (symfile_free_objfile): Remove restriction to
+ OBJF_USERLOADED.
+ * symfile-mem.c (symbol_file_add_from_memory): Call
+ add_target_sections_of_objfile.
+
+2014-06-05 Ludovic Courtès <ludo@gnu.org>
+
+ * guile/scm-value.c (gdbscm_history_append_x): Use
+ 'vlscm_get_value_smob_arg_unsafe' instead of
+ 'vlscm_scm_to_value'.
+
+2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR mi/15806
+ * utils.c (printchar): Don't escape at all if quoter is NUL.
+ Update function documentation to clarify effect of parameter
+ QUOTER.
+ * remote.c (escape_buffer): Pass '\\' as the quoter to
+ fputstrn_unfiltered.
+ * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
+ generate the output.
+ (mi_solib_unloaded): Same.
+
+2014-06-05 Joel Brobecker <brobecker@adacore.com>
+
+ * development.sh: Delete.
+ * Makefile.in (config.status): Adjust dependency on development.sh.
+ * configure.ac: Adjust development.sh source call.
+ * configure: Regenerate.
+
+2014-06-04 Doug Evans <xdje42@gmail.com>
+
+ * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
+ is_scheme_bkpt, spec.
+ (bpscm_make_breakpoint_smob): Initialize new members.
+ (gdbscm_create_breakpoint_x): Split into two ...
+ (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
+ (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
+ (scheme_function breakpoint_functions): Update.
+ * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
+ breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
+ register-breakpoint!.
+
+2014-06-04 Joel Brobecker <brobecker@adacorer.com>
+
+ PR server/17023
+ * mem-break.c (z_type_supported): Return zero if
+ THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
+
+2014-06-04 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (ada_template_to_fixed_record_type_1): Use
+ value_from_contents_and_address_unresolved.
+ (ada_template_to_fixed_record_type_1): Likewise.
+ (ada_which_variant_applies): Likewise.
+ * value.h (value_from_contents_and_address_unresolved): Declare.
+ * value.c (value_from_contents_and_address_unresolved): New
+ function.
+ * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
+ <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
+ (resolve_dynamic_struct, resolve_dynamic_union): New functions.
+
+2014-06-04 Tom Tromey <tromey@redhat.com>
+
+ * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
+
+2014-06-04 Tom Tromey <tromey@redhat.com>
+
+ * procfs.c (procfs_attach): Make "args" const.
+ * windows-nat.c (windows_attach): Make "args" const.
+ * nto-procfs.c (procfs_attach): Make "args" const.
+ * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
+ * go32-nat.c (go32_attach): Make "args" const.
+ * gnu-nat.c (gnu_attach): Make "args" const.
+ * darwin-nat.c (darwin_attach): Make "args" const.
+ * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
+ * linux-nat.c (linux_nat_attach): Make "args" const.
+ * remote.c (extended_remote_attach_1, extended_remote_attach):
+ Make "args" const.
+ * target.h (struct target_ops) <to_attach>: Make "args" const.
+ (find_default_attach): Likewise.
+ * utils.c (parse_pid_to_attach): Make "args" const.
+ * utils.h (parse_pid_to_attach): Update.
+
+2014-06-04 Tom Tromey <tromey@redhat.com>
+
+ * target-delegates.c: Rebuild.
+ * target.c (default_thread_address_space): New function.
+ (target_thread_address_space): Simplify.
+ * target.h (struct target_ops) <to_thread_address_space>: Add
+ TARGET_DEFAULT_FUNC.
+
+2014-06-04 Doug Evans <xdje42@gmail.com>
+
+ * guile/scm-type.c (type_smob): Remove duplicate typedef.
+
+2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
+
+ * record-btrace.c: Include event-loop.h and inf-loop.h.
+ (record_btrace_resume_exec_dir)
+ (record_btrace_async_inferior_event_handler)
+ (record_btrace_handle_async_inferior_event): New.
+ (record_btrace_open): Create async event handler.
+ (record_btrace_close): Delete async event handler.
+ (record_btrace_resume): Set record_btrace_resume_exec_dir,
+ Mark async event handler.
+ (record_btrace_execution_direction): New.
+ (init_record_btrace_ops): Initialize to_execution_direction.
+
+2014-06-03 Doug Evans <xdje42@gmail.com>
+
+ * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
+ (gdbscm_make_parameter): Ditto.
+
+2014-06-03 Doug Evans <dje@google.com>
+
+ * exec.c (exec_close_1): Call clear_section_table instead of
+ resize_section_table.
+ (clear_section_table): New function.
+ (resize_section_table): Make static. Rename arg num_added to
+ adjustment.
+ * exec.h (clear_section_table): Declare.
+ (resize_section_table): Delete.
+ * progspace.c (release_program_space): Call clear_section_table
+ instead of resize_section_table.
+
+2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
+
+ * NEWS (Python Scripting): Add entry about the new xmethods
+ feature.
+
+2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
+
+ * python/py-xmethods.c: New file.
+ * python/py-objfile.c (objfile_object): New field 'xmethods'.
+ (objfpy_dealloc): XDECREF on the new xmethods field.
+ (objfpy_new, objfile_to_objfile_object): Initialize xmethods
+ field.
+ (objfpy_get_xmethods): New function.
+ (objfile_getset): New entry 'xmethods'.
+ * python/py-progspace.c (pspace_object): New field 'xmethods'.
+ (pspy_dealloc): XDECREF on the new xmethods field.
+ (pspy_new, pspace_to_pspace_object): Initialize xmethods
+ field.
+ (pspy_get_xmethods): New function.
+ (pspace_getset): New entry 'xmethods'.
+ * python/python-internal.h: Add declarations for new functions.
+ * python/python.c (_initialize_python): Invoke
+ gdbpy_initialize_xmethods.
+ * python/lib/gdb/__init__.py (xmethods): New
+ attribute.
+ * python/lib/gdb/xmethod.py: New file.
+ * python/lib/gdb/command/xmethods.py: New file.
+
+2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
+
+ * eval.c (evaluate_subexp_standard): Call the xmethod if the
+ best match method returned by find_overload_match is an xmethod.
+ * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
+ the best matching operator returned by find_overload_match is an
+ xmethod.
+ * valops.c: #include "extension.h".
+ (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
+ Return void. The list of matching source methods is returned in
+ "fn_list" and a vector of matching debug method workers is
+ returned in "xm_worker_vec". Update all callers.
+ (value_find_oload_method_list): Likewise.
+ (find_oload_champ): Add "xm_worker_vec" parameter. If it is
+ non-NULL, then the index of the best matching method in this
+ vector is returned. Update all callers.
+ (find_overload_match): Include xmethods while performing overload
+ resolution.
+
+2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
+
+ * defs.h (enum lval_type): New enumerator "lval_xcallable".
+ * extension-priv.h (struct extension_language_ops): Add the
+ xmethod interface.
+ * extension.c (new_xmethod_worker, clone_xmethod_worker,
+ get_matching_xmethod_workers, get_xmethod_argtypes,
+ invoke_xmethod, free_xmethod_worker,
+ free_xmethod_worker_vec): New functions.
+ * extension.h: #include "common/vec.h".
+ New function declarations.
+ (struct xmethod_worker): New struct.
+ (VEC (xmethod_worker_ptr)): New vector type.
+ (xmethod_worker_ptr): New typedef.
+ (xmethod_worker_vec): Likewise.
+ * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
+ builtin_type.
+ * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
+ (struct builtin_type): New field "xmethod".
+ * valarith.c (value_ptradd): Assert that the value argument is not
+ lval_xcallable.
+ * valops.c (value_must_coerce_to_target): Return 0 for
+ lval_xcallable values.
+ * value.c (struct value): New field XM_WORKER in the field
+ LOCATION.
+ (value_address, value_raw_address): Return 0 for lval_xcallable
+ values.
+ (set_value_address): Assert that the value is not an
+ lval_xcallable.
+ (value_free): Free the associated xmethod worker when freeing
+ lval_xcallable values.
+ (set_value_component_location): Assert that the WHOLE value is not
+ lval_xcallable.
+ (value_of_xmethod, call_xmethod): New functions.
+ * value.h: Declare "struct xmethod_worker".
+ Declare new functions value_of_xmethod, call_xmethod.
+
+2014-06-03 Joel Brobecker <brobecker@adacore.com>
+ Pedro Alves <palves@redhat.com>
+
+ PR breakpoints/17000
+ * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
+ New function, extracted from software_breakpoint_inserted_here_p.
+ (software_breakpoint_inserted_here_p): Replace factored out code
+ by call to find_non_raw_software_breakpoint_inserted_here.
+ (bp_target_info_copy_insertion_state): New function.
+ (bkpt_insert_location): Handle the case of a single-step
+ breakpoint already inserted at the same address.
+ (bkpt_remove_location): Handle the case of a single-step
+ breakpoint still inserted at the same address.
+ (deprecated_insert_raw_breakpoint): Handle the case of non-raw
+ breakpoint already inserted at the same address.
+ (deprecated_remove_raw_breakpoint): Handle the case of a
+ non-raw breakpoint still inserted at the same address.
+ (find_single_step_breakpoint): New function, extracted from
+ single_step_breakpoint_inserted_here_p.
+ (find_single_step_breakpoint): New function,
+ factored out from single_step_breakpoint_inserted_here_p.
+ (single_step_breakpoint_inserted_here_p): Reimplement.
+
+2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
+
+ Pushed by Joel Brobecker <brobecker@adacore.com>
+ * source.c (show_substitute_path_command): Fix display of matching
+ substitution rules.
+
+2014-06-03 Gary Benson <gbenson@redhat.com>
+
+ * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
+
+2014-06-02 Doug Evans <xdje42@gmail.com>
+
+ Add parameter support for Guile.
+ * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
+ (SUBDIR_GUILE_SRCS): Add scm-param.c.
+ (scm-param.o): New rule.
+ * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
+ (gdbscm_misc_error): Declare.
+ (gdbscm_canonicalize_command_name): Declare.
+ (gdbscm_scm_to_host_string): Declare.
+ (gdbscm_scm_from_host_string): Declare.
+ (gdbscm_initialize_parameters): Declare.
+ * guile/guile.c (initialize_gdb_module): Call
+ gdbscm_initialize_parameters.
+ * guile/lib/gdb.scm: Export parameter symbols.
+ * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
+ cmdscm_canonicalize_name and made public. All callers updated.
+ * guile/scm-exception.c (gdbscm_misc_error): New function.
+ * guile/scm-param.c: New file.
+ * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
+ (gdbscm_scm_to_host_string): New function.
+ (gdbscm_scm_from_host_string): New function.
+ * scm-utils.c (gdbscm_gc_dup_argv): New function.
+
+2014-06-02 Doug Evans <xdje42@gmail.com>
+
+ Add command support for Guile.
+ * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
+ (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
+ (scm-cmd.o): New rule.
+ * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
+ (gdbscm_user_error_p): Declare.
+ (gdbscm_parse_command_name): Declare.
+ (gdbscm_valid_command_class_p): Declare.
+ (gdbscm_initialize_commands): Declare.
+ * guile/guile.c (initialize_gdb_module): Call
+ gdbscm_initialize_commands.
+ * guile/lib/gdb.scm: Export command symbols.
+ * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
+ (throw-user-error): New function.
+ * guile/scm-cmd.c: New file.
+ * guile/scm-exception.c (user_error_symbol): New static global.
+ (gdbscm_user_error_p): New function.
+ (gdbscm_initialize_exceptions): Set user_error_symbol.
+ * scm-utils.c (gdbscm_gc_xstrdup): New function.
+
+2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
+
+ * top.c (command_loop): Handle comments here...
+ (command_line_input): ... not here.
+
+2014-06-02 Doug Evans <xdje42@gmail.com>
+
+ Add progspace support for Guile.
+ * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
+ (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
+ (scm-progspace.o): New rule.
+ * guile/guile-internal.h (pspace_smob): New typedef.
+ (psscm_pspace_smob_pretty_printers): Declare.
+ (psscm_pspace_smob_from_pspace): Declare.
+ (psscm_scm_from_pspace): Declare.
+ * guile/guile.c (initialize_gdb_module): Call
+ gdbscm_initialize_pspaces.
+ * guile/lib/gdb.scm: Export progspace symbols.
+ * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
+ support.
+ (append-pretty-printer!): Ditto.
+ * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
+ Implement.
+ * guile/scm-progspace.c: New file.
+
+2014-06-03 Alan Modra <amodra@gmail.com>
+
+ * ppc64-tdep.c (ppc64_standard_linkage8): New.
+ (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
+
+2014-06-02 Doug Evans <dje@google.com>
+
+ Add support for skeletonless type units.
+ * dwarf2read.c (struct dwarf2_per_objfile): New member
+ n_allocated_type_units.
+ (struct dwarf2_per_objfile) <tu_stats>: New member
+ nr_all_type_units_reallocs.
+ (create_signatured_type_table_from_index): Initialize
+ n_allocated_type_units
+ (create_all_type_units): Ditto.
+ (add_type_unit): Move up in file. New arg slot.
+ All callers updated. Increase space for all_type_units more
+ efficiently.
+ (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
+ (lookup_dwo_signatured_type): Handle skeletonless TUs.
+ (lookup_dwp_signatured_type): Ditto.
+ (init_tu_and_read_dwo_dies): New arg use_existing_cu.
+ All callers updated.
+ (build_type_psymtabs_1): Leave type_unit_groups as
+ NULL if no TUs present.
+ (print_tu_stats): New function.
+ (process_skeletonless_type_unit): New function.
+ (process_dwo_file_for_skeletonless_type_units): New
+ function.
+ (process_skeletonless_type_units): New function.
+ (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
+ Call print tu_stats if debugging enabled.
+
+2014-06-02 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (build_target_command_list): Don't build a command
+ list if we have any duplicate location that isn't a dprintf.
+
+2014-06-02 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (dprintf_breakpoint_hit): New function.
+ (initialize_breakpoint_ops): Install it as dprintf's
+ breakpoint_hit method.
+
+2014-06-02 Joel Brobecker <brobecker@adacore.com>
+
+ * source.c (substitute_path_rule_matches): Simplify using
+ filename_ncmp instead of FILENAME_CMP.
+
+2014-06-02 Joel Brobecker <brobecker@adacore.com>
+
+ * source.c (substitute_path_rule_matches): Remove trailing spaces.
+
+2014-06-01 Ludovic Courtès <ludo@gnu.org>
+
+ * configure.ac: When Guile is available, check for the
+ availability of 'scm_new_smob'.
+ * configure, config.h.in: Regenerate.
+ * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
+ function.
+
+2014-05-30 Andrew Burgess <aburgess@broadcom.com>
+
+ * frame.c (struct frame_info): Add stop_string field.
+ (get_prev_frame_always_1): Renamed from get_prev_frame_always.
+ (get_prev_frame_always): Old content moved into
+ get_prev_frame_always_1. Call get_prev_frame_always_1 inside
+ TRY_CATCH, handle MEMORY_ERROR exceptions.
+ (frame_stop_reason_string): New function definition.
+ * frame.h (unwind_stop_reason_to_string): Extend comment to
+ mention frame_stop_reason_string.
+ (frame_stop_reason_string): New function declaration.
+ * stack.c (frame_info): Switch to frame_stop_reason_string.
+ (backtrace_command_1): Switch to frame_stop_reason_string.
+ * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
+ (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
+ * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
+
+2014-05-30 Andrew Burgess <aburgess@broadcom.com>
+
+ * frame.c (frame_stop_reason_string): Rename to ...
+ (unwind_stop_reason_to_string): this.
+ * frame.h (frame_stop_reason_string): Rename to ...
+ (unwind_stop_reason_to_string): this.
+ * stack.c (frame_info): Update call to frame_stop_reason_string.
+ (backtrace_command_1): Likewise.
+ * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
+ * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
+
+2014-05-30 Andrew Burgess <aburgess@broadcom.com>
+
+ * frame.c (remove_prev_frame): New function.
+ (get_prev_frame_if_no_cycle): Create / discard cleanup using
+ remove_prev_frame.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
+ and make it const. When a single-step decays to a continue,
+ clear 'step', not 'hw_step'. Pass whether the caller wanted
+ to step to user_visible_resume_ptid, not what we ask the
+ target to do.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (process_event_stop_test, handle_step_into_function)
+ (handle_step_into_function_backward): Adjust.
+ Don't set the even thread's stop_step and call stop_waiting before
+ calling end_stepping_range. Instead do that ...
+ (end_stepping_range): ... here. Take an ecs pointer parameter.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (stop_stepping): Rename to ...
+ (stop_waiting): ... this.
+ (proceed): Update comment.
+ (process_event_stop_test, handle_inferior_event)
+ (handle_signal_stop, handle_step_into_function)
+ (handle_step_into_function_backward): Update.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ * infcall.c (run_inferior_call): Don't check whether the current
+ thread is running after the proceed call.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * NEWS: Mention "maint set target-async", "set mi-async", and that
+ background execution commands are now always available.
+ * target.h (target_async_permitted): Update comment.
+ * target.c (target_async_permitted, target_async_permitted_1):
+ Default to 1.
+ (set_target_async_command): Rename to ...
+ (maint_set_target_async_command): ... this.
+ (show_target_async_command): Rename to ...
+ (maint_show_target_async_command): ... this.
+ (_initialize_target): Adjust.
+ * infcmd.c (prepare_execution_command): Make extern.
+ * inferior.h (prepare_execution_command): Declare.
+ * infrun.c (set_observer_mode): Leave target async alone.
+ * mi/mi-interp.c (mi_interpreter_init): Install
+ mi_on_sync_execution_done as sync_execution_done observer.
+ (mi_on_sync_execution_done): New function.
+ (mi_execute_command_input_handler): Don't print the prompt if we
+ just started a synchronous command with an async target.
+ (mi_on_resume): Check sync_execution before printing prompt.
+ * mi/mi-main.h (mi_async_p): Declare.
+ * mi/mi-main.c: Include gdbcmd.h.
+ (mi_async_p): New function.
+ (mi_async, mi_async_1): New globals.
+ (set_mi_async_command, show_mi_async_command, mi_async): New
+ functions.
+ (exec_continue): Call prepare_execution_command.
+ (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
+ (mi_execute_async_cli_command): Use mi_async_p.
+ (_initialize_mi_main): Install "set mi-async". Make
+ "target-async" a deprecated alias.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
+ (_initialize_cli_interp): Adjust.
+ * event-loop.c: Include "observer.h".
+ (start_event_loop): Notify 'command_error' observers instead of
+ calling display_gdb_prompt. Remove FIXME comment.
+ * event-top.c (display_gdb_prompt): Remove call into the
+ interpreters.
+ * inf-loop.c: Include "observer.h".
+ (inferior_event_handler): Notify 'command_error' observers instead
+ of calling display_gdb_prompt.
+ * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
+ observers instead of calling display_gdb_prompt.
+ * interps.c (interp_set): Don't call display_gdb_prompt.
+ (current_interp_display_prompt_p): Delete.
+ * interps.h (interp_prompt_p): Delete declaration.
+ (interp_prompt_p_ftype): Delete.
+ (struct interp_procs) <prompt_proc_p>: Delete field.
+ (current_interp_display_prompt_p): Delete declaration.
+ * mi-interp.c (mi_interpreter_prompt_p): Delete.
+ (_initialize_mi_interp): Adjust.
+ * tui-interp.c (tui_init): Install 'sync_execution_done' and
+ 'command_error' observers.
+ (tui_on_sync_execution_done, tui_on_command_error): New
+ functions.
+ (tui_display_prompt_p): Delete.
+ (_initialize_tui_interp): Adjust.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ PR gdb/13860
+ * cli/cli-interp.c: Include infrun.h and observer.h.
+ (cli_uiout, cli_interp): New globals.
+ (cli_on_signal_received, cli_on_end_stepping_range)
+ (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
+ functions.
+ (cli_interpreter_init): Install them as 'end_stepping_range',
+ 'signal_received' 'signal_exited', 'exited' and 'no_history'
+ observers.
+ (_initialize_cli_interp): Remove cli_interp local.
+ * infrun.c (handle_inferior_event): Call the several stop reason
+ observers instead of printing the stop reason directly.
+ (end_stepping_range): New function.
+ (print_end_stepping_range_reason, print_signal_exited_reason)
+ (print_exited_reason, print_signal_received_reason)
+ (print_no_history_reason): Make static, and add an uiout
+ parameter. Print to that instead of to CURRENT_UIOUT.
+ * infrun.h (print_end_stepping_range_reason)
+ (print_signal_exited_reason, print_exited_reason)
+ (print_signal_received_reason print_no_history_reason): New
+ declarations.
+ * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
+ 'mi_uiout'.
+ <cli_uiout>: New field.
+ * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
+ uiout for CLI output. Install 'signal_received',
+ 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
+ observers.
+ (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
+ (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
+ (mi_on_no_history): New functions.
+ (ui_out_free_cleanup): Delete function.
+ (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
+ instead use the one already stored in the MI interpreter data.
+ (mi_ui_out): Adjust.
+ * tui/tui-interp.c: Include infrun.h and observer.h.
+ (tui_interp): New global.
+ (tui_on_signal_received, tui_on_end_stepping_range)
+ (tui_on_signal_exited, tui_on_exited)
+ (tui_on_no_history): New functions.
+ (tui_init): Install them as 'end_stepping_range',
+ 'signal_received' 'signal_exited', 'exited' and 'no_history'
+ observers.
+ (_initialize_tui_interp): Delete tui_interp local.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ PR gdb/15713
+ * linux-nat.c (linux_nat_resume_callback): Rename the second
+ parameter to 'except'. Skip LP if it points to EXCEPT.
+ (linux_nat_resume): Don't mark the event lwp as not stopped
+ before resuming sibling lwps. Instead ask
+ linux_nat_resume_callback to skip the event lwp. Mark it as not
+ stopped after actually resuming it.
+ (linux_handle_syscall_trap): Mark the lwp as not stopped after
+ resuming it.
+ (wait_lwp): Mark the lwp as stopped here.
+ (stop_wait_callback): Mark the lwp as not stopped right after
+ resuming it. Don't mark lwps as stopped here.
+ (linux_nat_filter_event): Mark the lwp as stopped earlier.
+ (linux_nat_wait_1): Don't mark dead lwps as stopped here.
+
+2014-05-29 Pedro Alves <palves@redhat.com>
+
+ PR PR15693
+ * infrun.c (resume): Determine how much to resume depending on
+ whether the caller wanted a step, not whether we can hardware step
+ the target. Mark all threads that we intend to run as running,
+ unless we're calling an inferior function.
+ (normal_stop): If the thread is running an infcall, don't finish
+ thread state.
+ * target.c (target_resume): Don't mark threads as running here.
+
+2014-05-28 Joel Brobecker <brobecker@adacore.com>
+
+ * serial.c (_initialize_serial): Remove support for
+ the "set remotebaud" and "show remotebaud" commands.
+ * NEWS: Add entry documenting the removal of that command.
+
+2014-05-28 Yao Qi <yao@codesourcery.com>
+
+ * charset.c: Fix typo in comments.
+
+2014-05-27 Gary Benson <gbenson@redhat.com>
+
+ * utils.c (internal_vproblem): Prompt for a bug report.
+
+2014-05-26 Andy Wingo <wingo@igalia.com>
+
+ * guile/scm-arch.c (arscm_mark_arch_smob):
+ * guile/scm-block.c (bkscm_mark_block_smob)
+ (bkscm_mark_block_syms_progress_smob):
+ * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
+ * guile/scm-exception.c (exscm_mark_exception_smob):
+ * guile/scm-frame.c (frscm_mark_frame_smob):
+ * guile/scm-iterator.c (itscm_mark_iterator_smob):
+ * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
+ * guile/scm-objfile.c (ofscm_mark_objfile_smob):
+ * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
+ (ppscm_mark_pretty_printer_worker_smob):
+ * guile/scm-symbol.c (syscm_mark_symbol_smob):
+ * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
+ * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
+ * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
+ mark functions.
+ * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
+ function.
+
+2014-05-26 Andy Wingo <wingo@igalia.com>
+ Doug Evans <xdje42@gmail.com>
+
+ * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
+ empty_base_class. All uses updated.
+ (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
+ (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
+ Adapt all callers.
+ * guile/scm-gsmob.c (gdbscm_mark_gsmob)
+ (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
+ (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
+ (gdbscm_gsmob_has_property_p, add_property_name)
+ (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
+ * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
+ (gdb-object-has-property?, gdb-object-properties): Remove.
+ (gdb-object-kind): Renamed from gsmob-kind.
+
+2014-05-26 Andy Wingo <wingo@igalia.com>
+
+ * configure.ac (try_guile_versions): Allow building with guile 2.2.
+ * configure: Regenerate.
+
+2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
+
+ * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
+
+2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
+
+ * record-btrace.c (record_btrace_allow_memory_access): Remove.
+ (replay_memory_access_read_only, replay_memory_access_read_write)
+ (replay_memory_access_types, replay_memory_access)
+ (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
+ (cmd_set_record_btrace, cmd_show_record_btrace)
+ (cmd_show_replay_memory_access): New.
+ (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
+ (record_btrace_remove_breakpoint): Replace
+ record_btrace_allow_memory_access with replay_memory_access.
+ (_initialize_record_btrace): Add commands.
+ * NEWS: Announce it.
+
+2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
+
+ * aarch64-linux-nat.c (asm/ptrace.h): Include.
+
+2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
+
+ * MAINTAINERS (Write After Approval): Move self back from
+ paper trail.
+
+2014-05-22 Pedro Alves <palves@redhat.com>
+
+ * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
+ (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
+ (disable_randomization, enum exec_direction_kind)
+ (execution_direction, stop_registers, start_remote)
+ (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
+ (wait_for_inferior, normal_stop, get_last_target_status)
+ (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
+ (insert_step_resume_breakpoint_at_sal)
+ (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
+ (set_step_info, print_stop_event, signal_stop_state)
+ (signal_print_state, signal_pass_state, signal_stop_update)
+ (signal_print_update, signal_pass_update)
+ (update_signals_program_target, clear_exit_convenience_vars)
+ (displaced_step_dump_bytes, update_observer_mode)
+ (signal_catch_update, gdb_signal_from_command): Move
+ declarations ...
+ * infrun.h: ... to this new file.
+ * amd64-tdep.c: Include infrun.h.
+ * annotate.c: Include infrun.h.
+ * arch-utils.c: Include infrun.h.
+ * arm-linux-tdep.c: Include infrun.h.
+ * arm-tdep.c: Include infrun.h.
+ * break-catch-sig.c: Include infrun.h.
+ * breakpoint.c: Include infrun.h.
+ * common/agent.c: Include infrun.h instead of inferior.h.
+ * corelow.c: Include infrun.h.
+ * event-top.c: Include infrun.h.
+ * go32-nat.c: Include infrun.h.
+ * i386-tdep.c: Include infrun.h.
+ * inf-loop.c: Include infrun.h.
+ * infcall.c: Include infrun.h.
+ * infcmd.c: Include infrun.h.
+ * infrun.c: Include infrun.h.
+ * linux-fork.c: Include infrun.h.
+ * linux-nat.c: Include infrun.h.
+ * linux-thread-db.c: Include infrun.h.
+ * monitor.c: Include infrun.h.
+ * nto-tdep.c: Include infrun.h.
+ * procfs.c: Include infrun.h.
+ * record-btrace.c: Include infrun.h.
+ * record-full.c: Include infrun.h.
+ * remote-m32r-sdi.c: Include infrun.h.
+ * remote-mips.c: Include infrun.h.
+ * remote-notif.c: Include infrun.h.
+ * remote-sim.c: Include infrun.h.
+ * remote.c: Include infrun.h.
+ * reverse.c: Include infrun.h.
+ * rs6000-tdep.c: Include infrun.h.
+ * s390-linux-tdep.c: Include infrun.h.
+ * solib-irix.c: Include infrun.h.
+ * solib-osf.c: Include infrun.h.
+ * solib-svr4.c: Include infrun.h.
+ * target.c: Include infrun.h.
+ * top.c: Include infrun.h.
+ * windows-nat.c: Include infrun.h.
+ * mi/mi-interp.c: Include infrun.h.
+ * mi/mi-main.c: Include infrun.h.
+ * python/py-threadevent.c: Include infrun.h.
+
+2014-05-22 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (handle_inferior_event): Store the exit code for
+ --return-child-result here, instead of ...
+ (print_exited_reason): ... here.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ PR gdb/13860
+ * gdbthread.h (struct thread_control_state): New field
+ `command_interp'.
+ * infrun.c (follow_fork): Copy the new thread control field to the
+ child fork thread.
+ (clear_proceed_status_thread): Clear the new thread control field.
+ (proceed): Set the new thread control field.
+ * interps.h (command_interp): Declare.
+ * interps.c (command_interpreter): New global.
+ (command_interp): New function.
+ (interp_exec): Set `command_interpreter' while here.
+ * cli-out.c (cli_uiout_dtor): New function.
+ (cli_ui_out_impl): Install it.
+ * mi/mi-interp.c: Include cli-out.h.
+ (mi_cmd_interpreter_exec): Add comment.
+ (restore_current_uiout_cleanup): New function.
+ (ui_out_free_cleanup): New function.
+ (mi_on_normal_stop): If finishing an execution command started by
+ a CLI command, or any kind of breakpoint-like event triggered,
+ print the stop event to the output (CLI) stream.
+ * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-cmds.c (list_command): Handle the first "list" after the
+ current source line having changed.
+ * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
+ * infrun.c (normal_stop): Adjust call to
+ set_current_sal_from_frame.
+ * source.c (clear_lines_listed_range): New function.
+ (set_current_source_symtab_and_line, identify_source_line): Clear
+ the lines listed range.
+ (line_info): Handle the first "info line" after the current source
+ line having changed.
+ * stack.c (print_stack_frame): Remove center handling.
+ (set_current_sal_from_frame): Remove 'center' parameter. Don't
+ center sal.line.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * inf-child.c (inf_child_mourn_inferior): New function.
+ * inf-child.h (inf_child_mourn_inferior): New declaration.
+ * darwin-nat.c (darwin_mourn_inferior): Use
+ inf_child_mourn_inferior.
+ * gnu-nat.c (gnu_mourn_inferior): Likewise.
+ * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
+ * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
+ * nto-procfs.c (procfs_mourn_inferior): Likewise.
+ * windows-nat.c (windows_mourn_inferior): Likewise.
+
+2014-05-21 Doug Evans <xdje42@gmail.com>
+
+ * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
+
+2014-05-21 Doug Evans <xdje42@gmail.com>
+
+ * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
+ (gdbscm_out_of_range_error): Ditto.
+ (gdbscm_memory_error): Ditto.
+ * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
+ * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
+ (gdbscm_out_of_range_error): Update.
+ (gdbscm_memory_error): Update.
+ (gdbscm_scm_to_target_string_unsafe): Delete.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
+ globals.
+ (inf_child_open_target): New function.
+ (inf_child_open): Use inf_child_open_target to push the target
+ instead of erroring out.
+ (inf_child_disconnect, inf_child_close)
+ (inf_child_maybe_unpush_target): New functions.
+ (inf_child_target): Install inf_child_disconnect and
+ inf_child_close. Store a pointer to the returned object.
+ * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
+ declarations.
+ * target.c (auto_connect_native_target): New global.
+ (show_default_run_target): New function.
+ (find_default_run_target): Return NULL if automatically connecting
+ to the native target is disabled.
+ (_initialize_target): Install set/show auto-connect-native-target.
+ * NEWS: Mention "set auto-connect-native-target", and "target
+ native".
+ * linux-nat.c (super_close): New global.
+ (linux_nat_close): Call super_close.
+ (linux_nat_add_target): Store a pointer to the base class's
+ to_close method.
+ * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
+ inf_child_maybe_unpush.
+ * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
+ already pushed.
+ (inf_ttrace_mourn_inferior): Only unpush the target after mourning
+ the inferior. Use inf_child_maybe_unpush_target.
+ (inf_ttrace_attach): Don't push the target if it is already
+ pushed.
+ (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
+ * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
+ after mourning the inferior. Use inf_child_maybe_unpush_target.
+ (darwin_attach_pid): Don't push the target if it is already
+ pushed.
+ * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
+ mourning the inferior. Use inf_child_maybe_unpush_target.
+ (gnu_detach): Use inf_child_maybe_unpush_target.
+ * go32-nat.c (go32_create_inferior): Don't push the target if it
+ is already pushed.
+ (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
+ * nto-procfs.c (procfs_is_nto_target): Adjust comment.
+ (procfs_open): Rename to ...
+ (procfs_open_1): ... this. Add target_ops parameter. Adjust
+ comments. Can target_preopen before changing node. Call
+ inf_child_open_target to push the target explicitly.
+ (procfs_attach): Don't push the target if it is already pushed.
+ (procfs_detach): Use inf_child_maybe_unpush_target.
+ (procfs_create_inferior): Don't push the target if it is already
+ pushed.
+ (nto_native_ops): New global.
+ (procfs_open): Reimplement.
+ (procfs_native_open): New function.
+ (init_procfs_targets): Install procfs_native_open as to_open of
+ "target native". Store a pointer to the "native" target in
+ nto_native_ops.
+ * procfs.c (procfs_attach): Don't push the target if it is already
+ pushed.
+ (procfs_detach): Use inf_child_maybe_unpush_target.
+ (procfs_mourn_inferior): Only unpush the target after mourning the
+ inferior. Use inf_child_maybe_unpush_target.
+ (procfs_init_inferior): Don't push the target if it is already
+ pushed.
+ * windows-nat.c (do_initial_windows_stuff): Don't push the target
+ if it is already pushed.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
+ and "procfs" targets are now called "native" instead.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * go32-nat.c (go32_open): Delete.
+ (go32_target): Don't override the to_open method.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * nto-procfs.c (procfs_can_run): New function.
+ (nto_procfs_ops): New global.
+ (init_procfs_targets): New, based on procfs_target. Install
+ "target native" in addition to "target procfs".
+ (_initialize_procfs): Call init_procfs_targets instead of adding
+ the target here.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * windows-nat.c (windows_target): Don't override to_shortname,
+ to_longname or to_doc.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
+ to_doc.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (_initialize_darwin_inferior): Don't override
+ to_shortname, to_longname or to_doc.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * go32-nat.c (go32_target): Don't override to_shortname,
+ to_longname or to_doc.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * inf-child.c (inf_child_open): Remove mention of "child".
+ (inf_child_target): Rename target to "native" instead of "child".
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * Makefile.in (SFILES): Delete "regset.c".
+ (COMMON_OBS): Delete "regset.o".
+ * regset.c: Remove.
+ * regset.h (regset_alloc): Delete prototype.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * sparc-linux-tdep.c (sparc32_linux_gregset)
+ (sparc32_linux_fpregset): New static regset structures.
+ (sparc32_linux_init_abi): Drop dynamic regset allocations.
+ * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
+ 'fpregset' fields.
+ * sparc64-linux-tdep.c: (sparc64_linux_gregset)
+ (sparc64_linux_fpregset): New static regset structures.
+ (sparc64_linux_init_abi): Drop dynamic regset allocations.
+ * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
+ New static regset structures.
+ (sparc64fbsd_init_abi): Drop dynamic regset allocations.
+ * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
+ New static regset structures.
+ (sparc64nbsd_init_abi): Drop dynamic regset allocations.
+ * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
+ New static regset structures.
+ (sparc64obsd_init_abi): Drop dynamic regset allocations.
+ * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
+ New static regset structures.
+ (sparc32nbsd_init_abi): Drop dynamic regset allocations.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * sparc-linux-nat.c (supply_gregset, supply_fpregset)
+ (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
+ register maps ("regmaps") from "*regset" to "*regmap". Do this
+ for all regmap types and variables.
+ * sparc-linux-tdep.c (sparc32_linux_step_trap)
+ (sparc32_linux_supply_core_gregset)
+ (sparc32_linux_collect_core_gregset)
+ (sparc32_linux_supply_core_fpregset)
+ (sparc32_linux_collect_core_fpregset): Likewise.
+ * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
+ (sparc_gregmap, sparc_fpregmap): ... these.
+ (sparc_supply_gregset, sparc_collect_gregset)
+ (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
+ (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
+ (_initialize_sparc_nat): Rename regmaps.
+ * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
+ (sparc_gregmap, sparc_fpregmap): ... these.
+ (sparc_supply_gregset, sparc_collect_gregset)
+ (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
+ * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
+ Rename macros to...
+ (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
+ (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
+ Likewise.
+ * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
+ Rename to...
+ (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
+ * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
+ (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
+ regmaps.
+ (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
+ (sparc32_bsd_fpregset): Rename to...
+ (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
+ (sparc32_bsd_fpregmap): ... these.
+ * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
+ (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
+ (sparc32_bsd_fpregset, sparc32_sol2_gregset)
+ (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
+ (struct sparc_gregmap, struct sparc_fpregmap)
+ (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
+ (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
+ (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
+ (sparc32_supply_regset, sparc32_collect_gregset)
+ (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
+ prototypes.
+ * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
+ (sparc64_linux_ptrace_gregmap): ... this.
+ (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
+ (_initialize_sparc64_linux_nat): Rename regmaps.
+ * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
+ (sparc64_linux_core_gregmap): ... this.
+ (sparc64_linux_supply_core_gregset)
+ (sparc64_linux_collect_core_gregset)
+ (sparc64_linux_supply_core_fpregset)
+ (sparc64_linux_collect_core_fpregset): Rename regmaps.
+ * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
+ (sparc64_sol2_fpregset): Rename to...
+ (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
+ * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
+ (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
+ regmaps.
+ * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
+ (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
+ (sparc64_bsd_fpregset): Rename to...
+ (struct sparc_gregmap, sparc64_sol2_gregmap)
+ (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
+ (sparc64_bsd_fpregmap): ... these.
+ (sparc64_supply_gregset, sparc64_collect_gregset)
+ (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
+ prototypes.
+ * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
+ * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
+ (sparc64fbsd_gregmap): ... this.
+ (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
+ (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
+ Rename regmaps.
+ * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
+ (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
+ (sparc64nbsd_collect_fpregset): Likewise.
+ * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
+ (sparc64nbsd_gregmap): ... this.
+ (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
+ regmaps.
+ * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
+ * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
+ (sparc64obsd_gregmap): ... this.
+ (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
+ regmaps.
+ * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
+ * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
+ (sparc32nbsd_gregmap): ... this.
+ (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
+ regmaps.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * score-tdep.c (score7_linux_gregset): New static regset
+ structure.
+ (score7_linux_regset_from_core_section): Remove dynamic regset
+ allocation.
+ (score_gdbarch_init): Drop allocation of tdep structure.
+ * score-tdep.h (struct gdbarch_tdep): Remove declaration.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
+ regset structures.
+ (am33_regset_from_core_section): Remove dynamic regset
+ allocations.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
+ (mips_linux_fpregset, mips64_linux_fpregset): New static regset
+ structures.
+ (mips_linux_regset_from_core_section): Remove dynamic regset
+ allocations.
+ * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
+ 'gregset64', 'fpregset', and 'fpregset64'.
+ * mips-tdep.c (mips_gdbarch_init): Remove initialization of
+ deleted tdep fields.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
+ regset structures.
+ (amd64_regset_from_core_section): Remove dynamic regset
+ allocations.
+ * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
+ structure.
+ (amd64obsd_regset_from_core_section): Remove dynamic regset
+ allocation.
+ * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
+ Likewise.
+ * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
+ x86-common regset supply function.
+ * i386-tdep.c (i386_collect_gregset): Make static.
+ (i386_gregset): New global regset structure.
+ (i386_fpregset, i386_xstateregset): New static regset structures.
+ (i386_regset_from_core_section): Remove dynamic regset
+ allocations.
+ (i386_gdbarch_init): Remove initialization of tdep fields
+ 'gregset', 'fpregset', and 'xstateregset'.
+ * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
+ 'fpregset', and 'xstateregset'.
+ (i386_collect_gregset): Remove prototype.
+ (i386_gregset): New declaration.
+ * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
+ structure.
+ (i386obsd_aout_regset_from_core_section): Remove dynamic regset
+ allocation.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
+ (arm_linux_vfpregset): New static regset structures.
+ (arm_linux_regset_from_core_section): Remove dynamic allocation of
+ regset structures.
+ * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
+ and 'vfpregset' fields.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * aarch64-linux-tdep.c (aarch64_linux_gregset)
+ (aarch64_linux_fpregset): New static regset structures.
+ (aarch64_linux_regset_from_core_section): Drop dynamic allocation
+ of regset structures.
+ * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
+ 'fpregset' fields.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * regset.h (struct regset): Remove gdbarch field.
+ * regset.c (regset_alloc): Drop initialization of gdbarch field.
+ * nios2-linux-tdep.c (nios2_core_regset): Likewise.
+ * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
+ Likewise.
+ * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
+ (ppc32_linux_fpregset, ppc32_linux_vrregset)
+ (ppc32_linux_vsxregset): Likewise.
+ * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
+ via the regcache instead of the regset.
+ * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
+ (i386_supply_fpregset, i386_collect_fpregset): Likewise.
+ * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
+ * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
+ Likewise.
+
+2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
+ Constify structures.
+ * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
+ (alphanbsd_aout_gregset): Likewise.
+ * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
+ * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
+ Likewise.
+ * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
+ * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
+ Likewise.
+ * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
+ * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
+ * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
+ * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
+ * m88k-tdep.c (m88k_gregset): Likewise.
+ * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
+ * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
+ * nios2-linux-tdep.c (nios2_core_regset): Likewise.
+ * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
+ * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
+ * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
+ * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
+ * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
+ * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
+ Likewise.
+ * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
+ * sh-tdep.h (sh_corefile_gregset): Likewise.
+ * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
+ * vax-tdep.c (vax_gregset): Likewise.
+
+2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix TLS access for -static -pthread.
+ * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
+ (try_thread_db_load_1): Initialize it.
+ (thread_db_get_thread_local_address): Call it if LM is zero.
+ * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
+ * target.h (struct target_ops) (to_get_thread_local_address): Add
+ load_module_addr comment.
+
+2014-05-21 Pedro Alves <palves@redhat.com>
+
+ * dcache.c (dcache_read_memory_partial): If reading the cache line
+ fails, fallback to reading just the memory the caller wanted.
+
+2014-05-20 Doug Evans <dje@google.com>
+
+ * python/py-progspace.c (py_free_pspace): Call target_gdbarch
+ instead of get_current_arch.
+
+2014-05-20 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Mention that compare-sections now works with all targets.
+
+ * remote.c (PACKET_qCRC): New enum value.
+ (remote_verify_memory): Don't send qCRC if the target has no
+ execution. Use packet_support/packet_ok. If the target doesn't
+ support the qCRC packet, fallback to a deep memory copy.
+ (compare_sections_command): Say "target image" instead of "remote
+ executable".
+ (_initialize_remote): Add PACKET_qCRC to the list of config
+ packets that have no associated command. Extend comment.
+ * target.c (simple_verify_memory, default_verify_memory): New
+ function.
+ * target.h (struct target_ops) <to_verify_memory>: Default to
+ default_verify_memory.
+ (simple_verify_memory): New declaration.
+ * target-delegates.c: Regenerate.
+
+2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
+
+ * record-btrace.c (record_btrace_step_thread): Check for empty history.
+
+2014-05-20 Hui Zhu <hui@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ PR backtrace/16558
+ * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
+ and change address of sp and pc.
+
+2014-05-19 Tom Tromey <tromey@redhat.com>
+
+ * gdbtypes.c (rank_function): Use XNEWVEC.
+ * mi/mi-cmds.c (build_table): Use XCNEWVEC.
+
+2014-05-19 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (build_type_psymtabs_1): Renamed from
+ build_type_unit_groups and moved closer to only caller. Remove
+ arguments. All references updated. Remove outdated .gdb_index
+ comment.
+ (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
+ build_type_psymtabs_1.
+
2014-05-19 Doug Evans <dje@google.com>
* dwarf2read.c (struct dwarf2_per_objfile): Delete unused members