+2016-07-01 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (darwin_detach): Use target_announce_detach.
+ * inf-ptrace.c (inf_ptrace_detach): Likewise.
+ * nto-procfs.c (procfs_detach): Likewise.
+ * remote.c (remote_detach_1): Likewise.
+ * target.c (target_announce_detach): New function.
+ * target.h (target_announce_detach): New declaration.
+
+2016-06-29 Tom Tromey <tom@tromey.com>
+
+ PR python/20129:
+ * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
+ (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
+ not "name".
+
+2016-06-29 Tom Tromey <tom@tromey.com>
+
+ PR gdb/17210:
+ * target.c (free_memory_read_result_vector): Take a pointer to the
+ VEC as an argument.
+ (read_memory_robust): Install a cleanup for "result".
+ * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
+
+2016-06-29 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
+
+2016-06-29 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
+
+2016-06-28 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
+ variable new_offset.
+
+2016-06-27 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_print_type, rust_decorations): Print unit
+ types as "()".
+ (rust_print_type): Omit return type for functions returning unit.
+
+2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
+
+ * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
+ when there is an error during the breakpoint creation.
+
+2016-06-25 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
+ formatting.
+
+2016-06-25 Manish Goregaokar <manish@mozilla.com>
+
+ PR gdb/20239
+ * rust-lang.c (rust_get_disr_info): Correctly interpret
+ NonZero-optimized enums of arbitrary depth.
+ (rust_print_type): Correctly print NonZero-optimized
+ enums.
+
+2016-06-24 David Taylor <dtaylor@emc.com>
+
+ PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
+ * c-lang.h: Change all parameters, variables, and struct or union
+ members used as struct or union fie3ld offsets from int to
+ LONGEST.
+ * c-valprint.c: Likewise.
+ * cp-abi.c: Likewise.
+ * cp-abi.h: Likewise.
+ * cp-valprint.c: Likewise.
+ * d-valprint.c: Likewise.
+ * dwarf2loc.c: Likewise.
+ * eval.c: Likewise.
+ * extension-priv.h: Likewise.
+ * extension.c: Likewise.
+ * extension.h: Likewise.
+ * findvar.c: Likewise.
+ * gdbtypes.h: Likewise.
+ * gnu-v2-abi.c: Likewise.
+ * gnu-v3-abi.c: Likewise.
+ * go-valprint.c: Likewise.
+ * guile/guile-internal.h: Likewise.
+ * guile/scm-pretty-print.c: Likewise.
+ * jv-valprint.c Likewise.
+ * opencl-lang.c: Likewise.
+ * p-lang.h: Likewise.
+ * python/py-prettyprint.c: Likewise.
+ * python/python-internal.h: Likewise.
+ * spu-tdep.c: Likewise.
+ * typeprint.c: Likewise.
+ * valarith.c: Likewise.
+ * valops.c: Likewise.
+ * valprint.c: Likewise.
+ * valprint.h: Likewise.
+ * value.c: Likewise.
+ * value.h: Likewise.
+ * p-valprint.c: Likewise.
+ * c-typeprint.c (c_type_print_base): When printing offset, use
+ plongest, not %d.
+ * gdbtypes.c (recursive_dump_type): Ditto.
+
+2016-06-24 David Taylor <david.taylor@emc.com>
+
+ * MAINTAINERS (Write After Approval): Add David Taylor.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * configure.ac: Check for support for system call LWP fields on
+ FreeBSD.
+ * config.in, configure: Rebuild.
+ * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
+ * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
+ Report system call events.
+ [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
+ (fbsd_set_syscall_catchpoint): New function.
+ (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
+ Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
+ * fbsd-tdep.c: Include xml-syscall.h
+ (fbsd_get_syscall_number): New function.
+ (fbsd_init_abi): Set XML system call file name.
+ Add "get_syscall_number" gdbarch method.
+ * syscalls/freebsd.xml: New file.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-tdep.c: Include "auxv.h".
+ (fbsd_print_auxv_entry): New function.
+ (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * auxv.c (fprint_auxv_entry): New function.
+ (default_print_auxv_entry): New function.
+ (fprint_target_auxv): Use gdbarch_print_auxv_entry.
+ * auxv.h (enum auxv_format): New enum.
+ (fprint_auxv_entry): Declare.
+ (default_print_auxv_entry): Declare.
+ * gdbarch.sh (print_auxv_entry): New.
+ * gdbarch.c, gdbarch.h: Re-generated.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
+ (fbsd_xfer_partial): New function.
+ (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
+ "fbsd_xfer_partial".
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * symtab.c (symbol_find_demangled_name): Loop over languages and
+ use language_sniff_from_mangled_name.
+ * rust-lang.c (rust_sniff_from_mangled_name): New function.
+ (rust_language_defn): Update.
+ * p-lang.c (pascal_language_defn): Update.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * objc-lang.c (objc_sniff_from_mangled_name): New function.
+ (objc_language_defn): Update.
+ * m2-lang.c (m2_language_defn): Update.
+ * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
+ field.
+ (language_sniff_from_mangled_name): Declare.
+ * language.c (language_sniff_from_mangled_name): New function.
+ (unknown_language_defn, auto_language_defn, local_language_defn):
+ Update.
+ * jv-lang.c (java_sniff_from_mangled_name): New function.
+ (java_language_defn): Use it.
+ * go-lang.c (go_sniff_from_mangled_name): New function.
+ (go_language_defn): Use it.
+ * f-lang.c (f_language_defn): Update.
+ * defs.h (enum language): Reorder.
+ * d-lang.c (d_sniff_from_mangled_name): New function.
+ (d_language_defn): Use it.
+ * cp-support.h (gdb_sniff_from_mangled_name): Declare.
+ * cp-support.c (gdb_sniff_from_mangled_name): New function.
+ * c-lang.c (c_language_defn, cplus_language_defn)
+ (asm_language_defn, minimal_language_defn): Update.
+ * ada-lang.c (ada_sniff_from_mangled_name): New function.
+ (ada_language_defn): Use it.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * ada-lang.c (ada_extensions): New array.
+ (ada_language_defn): Use it.
+ * c-lang.c (c_extensions): New array.
+ (c_language_defn): Use it.
+ (cplus_extensions): New array.
+ (cplus_language_defn): Use it.
+ (asm_extensions): New array.
+ (asm_language_defn): Use it.
+ (minimal_language_defn): Update.
+ * d-lang.c (d_extensions): New array.
+ (d_language_defn): Use it.
+ * f-lang.c (f_extensions): New array.
+ (f_language_defn): Use it.
+ * go-lang.c (go_language_defn): Update.
+ * jv-lang.c (java_extensions): New array.
+ (java_language_defn): Use it.
+ * language.c (add_language): Call add_filename_language.
+ (unknown_language_defn, auto_language_defn, local_language_defn):
+ Update.
+ * language.h (struct language_defn) <la_filename_extensions>: New
+ field.
+ * m2-lang.c (m2_language_defn): Update.
+ * objc-lang.c (objc_extensions): New array.
+ (objc_language_defn): Use it.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * p-lang.c (p_extensions): New array.
+ (pascal_language_defn): Use it.
+ * rust-lang.c (rust_extensions): New array.
+ (rust_language_defn): Use it.
+ * symfile.c (add_filename_language): No longer static. Make "ext"
+ const.
+ (init_filename_language_table): Remove.
+ (_initialize_symfile): Update.
+ * symfile.h (add_filename_language): Declare.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * symfile.c (filename_language_table): Now a VEC.
+ (fl_table_size, fl_table_next): Remove.
+ (add_filename_language): Use VEC_safe_push.
+ (set_ext_lang_command, info_ext_lang_command)
+ (deduce_language_from_filename): Use VEC_iterate.
+ (init_filename_language_table): Use VEC_empty.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * python/python.c (gdbpy_parameter): Now static.
+ * python/python-internal.h (gdbpy_parameter): Don't declare.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ PR gdb/16483:
+ * python/lib/gdb/command/frame_filters.py
+ (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
+ nothing if no filters found. Return value indicating whether
+ filters were printed.
+ (InfoFrameFilter.print_list): Remove.
+ (InfoFrameFilter.invoke): Print message if no frame filters
+ found.
+
+2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * f-valprint.c (f_val_print): Add field names for printing
+ derived types fields.
+
+2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
+ in name of last-break regset.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * fork-child.c (fork_inferior): Switch the child to the main UI
+ right after vfork. Save/restore the current UI in the parent.
+ Flush outputs of the main UI instead of the current UI.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
+ to all UIs.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Mention support for running interpreters on separate
+ UIs and the new new-ui command.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * interps.c (set_top_level_interpreter): New function, factored
+ out from captured_main.
+ (interpreter_completer): Make extern.
+ * interps.h (set_top_level_interpreter, interpreter_completer):
+ New declarations.
+ (captured_main): Use set_top_level_interpreter.
+ * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
+ (open_terminal_stream, new_ui_command): New functions.
+ (init_main): Install the "new-ui" command.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
+ (read_command_lines): Use input_interactive_p instead of
+ input_from_terminal_p.
+ * defs.h (struct ui): Forward declare.
+ (input_from_terminal_p): Rename to ...
+ (input_interactive_p): ... this.
+ * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
+ to quit_command.
+ (command_handler): Adjust to per-UI stdin.
+ (handle_line_of_input): Adjust to per-UI stdin and use
+ input_interactive_p instead of ISATTY and input_from_terminal_p.
+ (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
+ (command_line_handler): Always pass true as "from_tty" parameter
+ of handle_line_of_input and execute_command.
+ (async_sigterm_handler): Pass 0 as from_tty argument to
+ quit_command.
+ * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
+ (gdb_has_a_terminal): Don't check interactive_mode here.
+ (_initialize_inflow): Don't install "set interactive-mode" here.
+ * main.c (captured_command_loop): Adjust to per-UI stdin.
+ * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
+ stdin.
+ * top.c (new_ui): Save the stdin stream and whether it's a tty.
+ (dont_repeat): Adjust to per-UI stdin.
+ (command_line_input): Adjust to per-UI stdin and to use
+ input_interactive_p.
+ (quit_force): Write history if any UI supports interactive input.
+ (interactive_mode, show_interactive_mode): Move here, from
+ inflow.c.
+ (input_from_terminal_p): Rename to ...
+ (input_interactive_p): ... this, and check the "interactive_mode"
+ global instead of calling gdb_has_a_terminal.
+ (_initialize_top): Install "set interactive-mode" here.
+ * top.h (struct ui) <stdin_stream, input_interactive_p>: New
+ fields.
+ * utils.c (quit): Pass 0 as from_tty argument to quit_force.
+ (defaulted_query): Adjust to per-UI stdin and to use
+ input_interactive_p.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (stdin_event_handler): Don't quit gdb if it was a
+ secondary UI's input stream that closed. Instead, just delete the
+ UI.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (main_ui_): Delete.
+ (main_ui, current_ui, ui_list): No longer initialize here.
+ * main.c (captured_main): UI initialization code factored out to
+ new new_ui function.
+ (gdb_main): Wrap captured_main with TRY/CATCH instead of
+ catch_errors.
+ * top.c (highest_ui_num): New global.
+ (new_ui): New function.
+ * top.h (struct ui) <num>: New field.
+ (new_ui): New declaration.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
+ nothing to print. Use should_print_stop_to_console.
+ * tui/tui-interp.c (tui_on_normal_stop): Likewise.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
+ (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
+ thread parameter.
+ (until_break_command): Pass command interpreter to thread fsm
+ ctor.
+ * cli/cli-interp.c (should_print_stop_to_console): Adjust.
+ * gdbthread.h (struct thread_control_state) <command_interp>:
+ Delete field.
+ * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
+ Pass it down.
+ (call_thread_fsm_should_stop): Add thread parameter.
+ (call_function_by_hand_dummy): Pass command interpreter to thread
+ fsm ctor. Pass thread pointer to fsm clean up method.
+ * infcmd.c: Include interps.h.
+ (struct step_command_fsm) <thread>: Delete field.
+ (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
+ (step_command_fsm_prepare): Remove references to fsm's thread
+ field.
+ (step_1): Pass command interpreter to thread
+ fsm ctor. Pass thread pointer to fsm clean up method.
+ (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
+ thread parameter and use it.
+ (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
+ (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
+ parameter and use it.
+ (until_next_command): Pass command interpreter to thread fsm ctor.
+ (struct finish_command_fsm) <thread>: Delete field.
+ (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
+ (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
+ down. Remove thread parameter and adjust.
+ (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
+ thread parameter and use it.
+ (finish_command): Pass command interpreter to thread fsm ctor.
+ Don't pass thread.
+ * infrun.c (follow_fork): Move thread fsm to child fork instead of
+ command interpreter, only.
+ (clear_proceed_status_thread): Remove reference to command_interp.
+ (proceed): Don't record the thread's command interpreter.
+ (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
+ method.
+ (fetch_inferior_event): Pass thread to fsm should_stop method.
+ * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
+ Store it.
+ (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
+ parameter and pass it down.
+ * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
+ (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
+ parameter.
+ (thread_fsm_ctor): Add 'cmd_interp' parameter.
+ (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
+ parameter.
+ * thread.c (thread_cancel_execution_command): Pass thread to
+ thread fsm clean_up method.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
+ (should_print_stop_to_console): New function, factored out from
+ mi_on_normal_stop_1.
+ * cli/cli-interp.h (should_print_stop_to_console): Declare.
+ * mi/mi-interp.c (mi_on_normal_stop_1): Use
+ should_print_stop_to_console. Pass it the current UI's console
+ interpreter.
+ * mi/mi-main.c (captured_mi_execute_command): Use the
+ INTERP_CONSOLE symbol rather than explicit "console".
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * infcmd.c (prepare_execution_command): Use
+ all_uis_on_sync_execution_starting.
+ * infrun.c (all_uis_on_sync_execution_starting): New function.
+ * infrun.h (all_uis_on_sync_execution_starting): Declare.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * annotate.c: Include top.h.
+ (async_background_execution_p): Delete.
+ (print_value_flags): Check the UI's prompt state rather then
+ async_background_execution_p.
+ * event-loop.c (start_event_loop): Set the prompt state to
+ PROMPT_NEEDED.
+ * event-top.c (display_gdb_prompt, async_enable_stdin)
+ (async_disable_stdin): Check the current UI's prompt state instead
+ of the sync_execution global.
+ (command_line_handler): Set the prompt state to PROMPT_NEEDED
+ before running a command, and display the prompt if still needed
+ afterwards.
+ * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
+ (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
+ (call_thread_fsm_should_stop): Set the prompt state to
+ PROMPT_NEEDED.
+ (run_inferior_call): Adjust to temporarily set the prompt state to
+ PROMPT_BLOCKED instead of using the sync_execution global.
+ (call_function_by_hand_dummy): Pass the current UI to
+ new_call_thread_fsm.
+ * infcmd.c: Include top.h.
+ (continue_1): Check the current UI's prompt state instead of the
+ sync_execution global.
+ (continue_command): Validate global execution state before calling
+ prepare_execution_command.
+ (step_1): Call all_uis_check_sync_execution_done.
+ (attach_post_wait): Don't call async_enable_stdin here. Remove
+ reference to sync_execution.
+ * infrun.c (sync_execution): Delete global.
+ (follow_fork_inferior)
+ (reinstall_readline_callback_handler_cleanup): Check the current
+ UI's prompt state instead of the sync_execution global.
+ (check_curr_ui_sync_execution_done)
+ (all_uis_check_sync_execution_done): New functions.
+ (fetch_inferior_event): Call all_uis_check_sync_execution_done
+ instead of trying to determine whether the global sync execution
+ changed.
+ (handle_no_resumed): Check the prompt state of all UIs.
+ (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
+ UIs. Emit the "Switching to" notification to all UIs. Enable
+ stdin in all UIs.
+ * infrun.h (sync_execution): Delete.
+ (all_uis_check_sync_execution_done): Declare.
+ * main.c (captured_command_loop): Don't call
+ interp_pre_command_loop if the prompt is blocked.
+ (catch_command_errors, catch_command_errors_const): Adjust.
+ (captured_main): Set the initial prompt state to PROMPT_NEEDED.
+ * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
+ PROMPTED.
+ (mi_interpreter_resume): Don't clear sync_execution. Remove hack
+ comment.
+ (mi_execute_command_input_handler): Set the prompt state to
+ PROMPT_NEEDED before executing the command, and only display the
+ prompt if the prompt state is PROMPT_NEEDED afterwards.
+ (mi_on_resume_1): Adjust to check the prompt state.
+ * target.c (target_terminal_inferior): Adjust to check the prompt
+ state.
+ * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
+ (execute_command): Check the current UI's prompt state instead of
+ sync_execution.
+ * top.h (enum prompt_state): New.
+ (struct ui) <prompt_state>: New field.
+ (ALL_UIS): New macro.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * top.c (gdb_secondary_prompt_depth): Delete.
+ (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
+ (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
+ per-UI gdb_secondary_prompt_depth.
+ * top.h (struct ui) <secondary_prompt_depth>: New field.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
+ function.
+ (cli_interp_procs): Install it instead of cli_command_loop.
+ * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
+ * event-top.c (cli_command_loop): Delete.
+ * interps.c (interp_new): Remove reference to command_loop_proc.
+ (current_interp_command_loop): Delete.
+ (interp_pre_command_loop): New function.
+ (interp_command_loop_ftype): Delete.
+ * interps.h (interp_pre_command_loop_ftype): New typedef.
+ (struct interp_procs) <command_loop_proc>: Delele field.
+ <pre_command_loop_proc>: New field.
+ (current_interp_command_loop): Delete declaration.
+ (interp_pre_command_loop): New declaration.
+ * main.c (captured_command_loop): Call interp_pre_command_loop
+ instead of current_interp_command_loop and start an event loop.
+ * mi/mi-interp.c (mi_command_loop): Delete.
+ (mi_interpreter_pre_command_loop): New.
+ (mi_interp_procs): Update.
+ * tui/tui-interp.c (tui_interp_procs): Install
+ cli_interpreter_pre_command_loop instead of cli_command_loop.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * interps.c (current_interpreter): New function.
+ * interps.h (current_interpreter): New declaration.
+ * mi/mi-cmds.h (raw_stdout): Delete declaration.
+ * mi/mi-common.h (struct mi_interp) <raw_stdout,
+ saved_raw_stdout>: New field.
+ * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
+ to per-UI raw_stdout.
+ (mi_interpreter_init): Adjust to per-UI raw_stdout.
+ (mi_on_sync_execution_done, mi_execute_command_input_handler)
+ (mi_command_loop): Pass MI instance to display_mi_prompt.
+ (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
+ (mi_on_resume): Adjust to per-UI raw_stdout.
+ (saved_raw_stdout): Delete.
+ (mi_set_logging): Adjust to per-UI raw_stdout and
+ saved_raw_stdout.
+ * mi/mi-main.c (raw_stdout): Delete.
+ (mi_cmd_gdb_exit, captured_mi_execute_command)
+ (mi_print_exception, mi_load_progress): Adjust to per-UI
+ raw_stdout.
+ (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
+ Pass it along.
+ (print_diff): New ui_file parameter. Send output there instead of
+ raw_stdout.
+ * mi/mi-main.h (struct ui_file): Forward declare.
+ (mi_print_timing_maybe): Add ui_file parameter.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * mi/mi-interp.c (display_mi_prompt): New function.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * target.c (target_terminal_inferior): Bail out after
+ unregistering input_fd if not on the main UI.
+ (target_terminal_ours): Bail out after registering input_fd if not
+ on the main UI.
+ (target_terminal_ours_for_output): Bail out if not on the main UI.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (restore_ui_cleanup): Make extern.
+ * infrun.c (fetch_inferior_event): Always switch to the main UI.
+ * top.h (restore_ui_cleanup): Declare.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ PR mi/20034
+ * cli/cli-interp.c: Include cli-interp.h and event-top.h.
+ (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
+ UI's input_handler here.
+ (cli_interpreter_supports_command_editing): New function.
+ (cli_interp_procs): Install it.
+ * cli/cli-interp.h: New file.
+ * event-top.c (async_command_editing_p): Rename to ...
+ (set_editing_cmd_var): ... this.
+ (change_line_handler): Add parameter 'editing', and use it. Bail
+ early if the interpreter doesn't support editing. Don't touch
+ readline state if editing is off.
+ (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
+ (gdb_rl_callback_handler_reinstall): Assert the current UI is the
+ main UI.
+ (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
+ not using readline. Check whether the current UI is using command
+ editing instead of checking the async_command_editing_p global.
+ (set_async_editing_command): Delete.
+ (gdb_setup_readline): Add 'editing' parameter. Only allow editing
+ on the main UI. Don't touch readline state if editing is off.
+ (gdb_disable_readline): Don't touch readline state if editing is
+ off.
+ * event-top.h (gdb_setup_readline): Add 'int' parameter.
+ (set_async_editing_command): Delete declaration.
+ (change_line_handler, command_line_handler): Declare.
+ (async_command_editing_p): Rename to ...
+ (set_editing_cmd_var): ... this.
+ * infrun.c (reinstall_readline_callback_handler_cleanup): Check
+ whether the current UI has editing enabled rather than checking
+ the async_command_editing_p global.
+ * interps.c (interp_supports_command_editing): New function.
+ * interps.h (interp_supports_command_editing_ftype): New typedef.
+ (struct interp_procs) <supports_command_editing_proc>: New field.
+ (interp_supports_command_editing): Declare.
+ * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
+ gdb_setup_readline. Don't clear the async_command_editing_p
+ global. Update comments.
+ * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
+ whether the current UI has editing enabled rather than checking
+ the async_command_editing_p global. Don't touch readline state if
+ editing is off.
+ (undo_terminal_modifications_before_exit): Switch to the main UI.
+ Unconditionally call gdb_disable_readline.
+ (set_editing): New function.
+ (show_async_command_editing_p): Rename to ...
+ (show_editing): ... this. Show the state of the current UI.
+ (_initialize_top): Adjust.
+ * top.h (struct ui) <command_editing>: New field.
+ * tui/tui-interp.c: Include cli/cli-interp.h.
+ (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
+ input_handler.
+ (tui_interp_procs): Install
+ cli_interpreter_supports_command_editing.
+ * tui/tui-io.c (tui_getc): Check whether the current UI has
+ editing enabled rather than checking the async_command_editing_p
+ global.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
+ * top.h (struct ui) <m_current_uiout>: New field.
+ * ui-out.c (current_uiout): Delete.
+ * ui-out.h (current_uiout): Delete.
+ (current_ui_current_uiout_ptr): New declaration.
+ (current_uiout): Reimplement as wrapper around
+ current_ui_current_uiout_ptr.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * ui-out.c (default_ui_out_impl): Delete.
+ (def_uiout): Delete.
+ (current_uiout): Set to NULL.
+ (default_table_begin, default_table_body, default_table_end)
+ (default_table_header, default_begin, default_end)
+ (default_field_int, default_field_skip, default_field_string)
+ (default_field_fmt, default_spaces, default_text, default_message)
+ (default_wrap_hint, default_flush, default_data_destroy): Delete.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (gdb_setup_readline): Pass the UI's outstream and
+ errstream to stdout_fileopen and stderr_fileopen.
+ * exceptions.c: Include top.h.
+ (print_flush): Open the current UI's outstream file descriptor,
+ instead of hardcoding file descriptor 1.
+ * main.c (captured_main): Save the main UI's out and error
+ streams. Adjust stderr_fileopen call.
+ * top.h (struct ui) <outstream, errstream>: New fields.
+ * ui-file.c (stderr_fileopen): Add stream parameter. Use it
+ instead of stderr.
+ * ui-file.h (stderr_fileopen): Add stream parameter and update
+ comment.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (input_fd): Delete.
+ (stdin_event_handler): Switch to the UI whose input descriptor got
+ the event. Adjust to per-UI input_fd.
+ (gdb_setup_readline): Don't set the input_fd global. Adjust to
+ per-UI input_fd.
+ (gdb_disable_readline): Adjust to per-UI input_fd.
+ * event-top.h (input_fd): Delete declaration.
+ * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
+ from the event-loop here.
+ (linux_nat_terminal_ours): Don't register input_fd in the
+ event-loop here.
+ * main.c (captured_main): Adjust to per-UI input_fd.
+ * remote.c (remote_terminal_inferior): Don't remove input_fd from
+ the event-loop here.
+ (remote_terminal_ours): Don't register input_fd in the event-loop
+ here.
+ * target.c: Include top.h and event-top.h.
+ (target_terminal_inferior): Remove input_fd from the event-loop
+ here.
+ (target_terminal_ours): Register input_fd in the event-loop.
+ * top.h (struct ui) <input_fd>: New field.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-script.c (execute_user_command, read_next_line)
+ (read_next_line): Adjust to per-UI instream.
+ * event-top.c (stdin_event_handler, command_handler)
+ (handle_line_of_input, command_line_handler)
+ (gdb_readline_no_editing_callback, async_sigterm_handler)
+ (gdb_setup_readline): Likewise.
+ * inflow.c: Include top.h.
+ (gdb_has_a_terminal, child_terminal_init_with_pgrp)
+ (gdb_save_tty_state, child_terminal_inferior)
+ (child_terminal_ours_1, copy_terminal_info): Use the main UI.
+ (initialize_stdin_serial): Adjust to per-UI instream.
+ * main.c (captured_command_loop, captured_main): Adjust to per-UI
+ instream.
+ * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
+ * python/python.c (python_interactive_command): Likewise.
+ * terminal.h (struct ui): Forward declare.
+ (initialize_stdin_serial): Add struct ui parameter.
+ * top.c (instream): Delete.
+ (do_restore_instream_cleanup, read_command_file, dont_repeat)
+ (gdb_readline_no_editing, command_line_input)
+ (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
+ * top.h (struct ui) <instream>: New field.
+ (instream): Delete declaration.
+ (quit): Adjust to per-UI instream.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-loop.c: Include top.h.
+ (invoke_async_signal_handlers): Switch to the main UI.
+ * event-top.c (main_ui_): Update comment.
+ (main_ui): New global.
+ * top.h (main_ui): Declare.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c (cli_interp): Delete.
+ (as_cli_interp): New function.
+ (cli_on_normal_stop, cli_on_signal_received)
+ (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
+ (cli_on_no_history): Send output to all CLI UIs.
+ (cli_on_sync_execution_done, cli_on_command_error): Skip output if
+ the top level interpreter is not a CLI.
+ (cli_interpreter_init): Don't set cli_interp or install observers
+ here.
+ (_initialize_cli_interp): Install observers here.
+ * event-top.c (main_ui_, ui_list): New globals.
+ (current_ui): Point to main_ui_.
+ (restore_ui_cleanup, switch_thru_all_uis_init)
+ (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
+ functions.
+ * mi/mi-interp.c (as_mi_interp): New function.
+ (mi_interpreter_init): Don't install observers here.
+ (mi_on_sync_execution_done): Skip output if the top level
+ interpreter is not a MI.
+ (mi_new_thread, mi_thread_exit, mi_record_changed)
+ (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
+ (mi_inferior_removed): Send output to all MI UIs.
+ (find_mi_interpreter, mi_interp_data): Delete.
+ (find_mi_interp): New function.
+ (mi_on_signal_received, mi_on_end_stepping_range)
+ (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
+ to all MI UIs.
+ (mi_on_normal_stop): Rename to ...
+ (mi_on_normal_stop_1): ... this.
+ (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
+ (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
+ (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
+ (mi_breakpoint_modified, mi_output_running_pid): Send output to
+ all MI UIs.
+ (mi_on_resume): Rename to ...
+ (mi_on_resume_1): ... this. Don't handle infcalls here.
+ (mi_on_resume): Reimplement, sending output to all MI UIs.
+ (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
+ (mi_memory_changed): Send output to all MI UIs.
+ (report_initial_inferior): Install observers here.
+ * top.h (struct ui) <next>: New field.
+ (ui_list): Declare.
+ (struct switch_thru_all_uis): New.
+ (switch_thru_all_uis_init, switch_thru_all_uis_cond)
+ (switch_thru_all_uis_next): Declare.
+ (SWITCH_THRU_ALL_UIS): New macro.
+ * tui/tui-interp.c (tui_interp): Delete global.
+ (as_tui_interp): New function.
+ (tui_on_normal_stop, tui_on_signal_received)
+ (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
+ (tui_on_no_history): Send output to all TUI UIs.
+ (tui_on_sync_execution_done, tui_on_command_error): Skip output if
+ the top level interpreter is not a TUI.
+ (tui_init): Don't set tui_interp or install observers here.
+ (_initialize_tui_interp): Install observers here.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-interp.c (cli_uiout): Delete, moved into ...
+ (struct cli_interp): ... this new structure.
+ (cli_on_normal_stop, cli_on_signal_received)
+ (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
+ (cli_on_no_history): Use interp_ui_out.
+ (cli_interpreter_init): If top level, set the cli_interp global.
+ (cli_interpreter_init): Return the interp's data instead of NULL.
+ (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
+ to cli_uiout being in the interpreter's data.
+ (cli_interp_procs): New, factored out from _initialize_cli_interp.
+ (cli_interp_factory): New function.
+ (_initialize_cli_interp): Call interp_factory_register.
+ * interps.c (get_interp_info): New, factored out from ...
+ (get_current_interp_info): ... this.
+ (interp_new): Add parameter 'data'. Store it.
+ (struct interp_factory): New function.
+ (interp_factory_p): New typedef. Define a VEC_P.
+ (interpreter_factories): New global.
+ (interp_factory_register): New function.
+ (interp_add): Add 'ui' parameter. Use get_interp_info and
+ interp_lookup_existing.
+ (interp_lookup): Rename to ...
+ (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
+ check for NULL or empty name here.
+ (interp_lookup): Add 'ui' parameter and reimplement.
+ (interp_set_temp, interpreter_exec_cmd): Adjust.
+ (interpreter_completer): Complete on registered interpreter
+ factories instead of interpreters.
+ * interps.h (interp_factory_func): New typedef.
+ (interp_factory_register): Declare.
+ (interp_new, interp_add): Adjust.
+ (interp_lookup): Declare.
+ * main.c (captured_main): Adjust.
+ * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
+ (mi_interp_procs): New, factored out from
+ _initialize_mi_interp.
+ (mi_interp_factory): New function.
+ * python/python.c (execute_gdb_command): Adjust.
+ * tui/tui-interp.c (tui_init): If top level, set the tui_interp
+ global.
+ (tui_interp_procs): New.
+ (tui_interp_factory): New function.
+ (_initialize_tui_interp): Call interp_factory_register.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (bpstat_do_actions_1): Access the current UI's
+ async field instead of the interpreter_async global.
+ * cli/cli-script.c (execute_user_command, while_command)
+ (if_command, script_from_file): Likewise.
+ * compile/compile.c: Include top.h instead of interps.h.
+ (compile_file_command, compile_code_command)
+ (compile_print_command): Access the current UI's async field
+ instead of the interpreter_async global.
+ * guile/guile.c: Include top.h instead of interps.h.
+ (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
+ Access the current UI's async field instead of the
+ interpreter_async global.
+ * guile/scm-ports.c: Include top.h instead of interps.h.
+ (ioscm_with_output_to_port_worker): Access the current UI's async
+ field instead of the interpreter_async global.
+ * inf-loop.c (inferior_event_handler): Likewise.
+ * infcall.c (run_inferior_call): Likewise.
+ * infrun.c (reinstall_readline_callback_handler_cleanup)
+ (fetch_inferior_event): Likewise.
+ * interps.c (interpreter_async): Delete.
+ (struct ui_interp_info): New.
+ (get_current_interp_info): New function.
+ (interp_list, current_interpreter, top_level_interpreter_ptr):
+ Delete.
+ (interp_add, interp_set, interp_lookup, interp_ui_out)
+ (current_interp_set_logging, interp_set_temp)
+ (current_interp_named_p): Adjust to per-UI interpreters.
+ (command_interpreter): Delete.
+ (command_interp, current_interp_command_loop, interp_quiet_p)
+ (interp_exec, interpreter_exec_cmd, interpreter_completer)
+ (top_level_interpreter, top_level_interpreter_data): Adjust to
+ per-UI interpreters.
+ * interps.h (interpreter_async): Delete.
+ * main.c (captured_command_loop): Access the current UI's async
+ field instead of the interpreter_async global.
+ * python/python.c (python_interactive_command, python_command)
+ (execute_gdb_command): Likewise.
+ * top.c (maybe_wait_sync_command_done, execute_command_to_string):
+ Access the current UI's async field instead of the
+ interpreter_async global.
+ * top.h (struct tl_interp_info): Forward declare.
+ (struct ui) <interp_info, async>: New fields.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
+ globals.
+ (gen_ret_current_ui_field_ptr): New macro. Use it to generate
+ wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
+ * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
+ m_gdb_stdlog>: New fields.
+ (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
+ (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
+ (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
+ macros.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * event-top.c: Update readline-related comments.
+ (input_handler, call_readline): Delete globals.
+ (gdb_rl_callback_handler): Call the current UI's input_handler
+ method.
+ (change_line_handler): Adjust to set current UI's properties
+ instead of globals.
+ (current_ui_, current_ui): New globals.
+ (get_command_line_buffer): Rewrite to refer to the current UI.
+ (stdin_event_handler): Adjust to call the call_readline method of
+ the current UI.
+ (gdb_readline_no_editing_callback): Adjust to call the current UI's
+ input_handler method.
+ (gdb_setup_readline): Adjust to set current UI's properties
+ instead of globals.
+ * event-top.h (call_readline, input_handler): Delete declarations.
+ * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
+ UI's properties instead of globals.
+ * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
+ properties instead of globals.
+ (gdb_readline_wrapper): Adjust to call and set current UI's
+ methods instead of globals.
+ * top.h: Include buffer.h and event-loop.h.
+ (struct ui): New struct.
+ (current_ui): New declaration.
+
+2016-06-21 Pedro Alves <palves@redhat.com>
+
+ * ada-lang.c (ada_exception_name_addr_1): Add comment.
+ (print_it_exception): Select the current frame.
+
+2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
+
+ * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
+ (HFILES_NO_SRCDIR): Add nds32-tdep.h.
+ (ALLDEPFILES): Add nds32-tdep.c.
+ * NEWS: Mention new NDS32 port.
+ * configure.tgt: Add NDS32.
+ * nds32-tdep.c: New file.
+ * nds32-tdep.h: New file.
+ * features/Makefile (XMLTOC): Add nds32.xml.
+ * features/nds32-core.xml: New file.
+ * features/nds32-fpu.xml: New file.
+ * features/nds32-system.xml: New file.
+ * features/nds32.c: New file (generated).
+ * features/nds32.xml: New file.
+
+2016-06-14 John Baldwin <jhb@FreeBSD.org>
+
+ * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
+
+2016-06-14 John Baldwin <jhb@FreeBSD.org>
+
+ * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
+
+2016-06-14 John Baldwin <jhb@FreeBSD.org>
+
+ * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
+
+2016-06-13 Nick Clifton <nickc@redhat.com>
+
+ * gdbtypes.c (replace_type): Fix assertion.
+
+2016-06-10 Tom Tromey <tom@tromey.com>
+
+ * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
+ (arch_boolean_type, arch_float_type, arch_complex_type)
+ (arch_flags_type, append_flags_type_field)
+ (append_flags_type_flag, arch_composite_type)
+ (append_composite_type_field_raw)
+ (append_composite_type_field_aligned)
+ (append_composite_type_field): Make "name" parameter const.
+ * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
+ (arch_boolean_type, arch_float_type, arch_complex_type)
+ (append_composite_type_field, append_composite_type_field_aligned)
+ (append_composite_type_field_raw, arch_flags_type)
+ (append_flags_type_field, append_flags_type_flag): Constify.
+
+2016-06-10 Tom Tromey <tom@tromey.com>
+
+ PR rust/20110:
+ * rust-exp.y (lex_number): Don't truncate large numbers to i32.
+
+2016-06-10 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (COMMON_OBS): Remove rust-exp.o.
+ (YYFILES): Add rust-exp.c.
+ (YYOBJ): Add rust-exp.o.
+ (local-maintainer-clean): Remove rust-exp.c.
+
+2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
+
+ * NEWS: Mention that GDB now supports a negative repeat count in
+ the 'x' command.
+ * printcmd.c (decode_format): Allow '-' in the parameter
+ "string_ptr" to accept a negative repeat count.
+ (find_instruction_backward): New function.
+ (read_memory_backward): New function.
+ (integer_is_zero): New function.
+ (find_string_backward): New function.
+ (do_examine): Use new functions to examine memory backward.
+ (_initialize_printcmd): Mention that 'x' command supports a negative
+ repeat count.
+
+2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
+
+ * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
+
+2016-06-09 Tom Tromey <tom@tromey.com>
+
+ PR python/19819:
+ * python/py-xmethods.c (invoke_method_name)
+ (py_get_result_type_method_name, py_invoke_method_name): Remove.
+ (gdbpy_initialize_xmethods): Don't initialize
+ py_invoke_method_name, py_get_result_type_method_name.
+
+2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * mi/mi-interp.c (mi_record_changed): Add missing braces.
+
+2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * findvar.c (follow_static_link): Check for valid pointer.
+
+2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
+
+ * NEWS: Mention the new fields in =record-started.
+ * common/btrace-common.h (btrace_format_short_string): New function
+ declaration.
+ * common/btrace-common.c (btrace_format_short_string): New
+ function.
+ * mi/mi-interp.c (mi_record_changed): Output method and format
+ fields in the =record-started record.
+ * record-btrace.c (record_btrace_open): Adapt record_changed
+ notification.
+ * record-full.c (record_full_open): Likewise.
+ * record.c (cmd_record_stop): Likewise.
+
+2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
+
+ * windows-nat.c (handle_output_debug_string): Return type of
+ gdb_signal_from_host() is gdb_signal, not an int.
+ (windows_get_exec_module_filename): Add pointer casts for C++.
+
+2016-06-02 Tom Tromey <tom@tromey.com>
+
+ PR python/18984:
+ * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
+
+2016-06-01 Pedro Alves <palves@redhat.com>
+
+ * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
+ (remote_fio_osa)
+ (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
+ (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
+ Delete.
+ (remote_fileio_o_quit_handler): New global.
+ (remote_fileio_quit_handler): New function.
+ (remote_fileio_reply): Check the quit flag instead of the custom
+ 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
+ of changing the SIGINT handler.
+ (do_remote_fileio_request): Override the quit handler instead of
+ changing the SIGINT handler.
+
+2016-06-01 Nick Clifton <nickc@redhat.com>
+
+ * common/common-utils.c (xmalloc_failed): New function. Provided
+ so that the version in libiberty is not linked in.
+
+2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
+
+ * infcmd.c (skip_finish_frames): New.
+ (finish_command): Call skip_finish_frames.
+
+2016-06-01 Yao Qi <yao.qi@linaro.org>
+
+ PR remote/19998
+ * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
+ quit_serial_event_set.
+
+2016-06-01 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 7.11.1 released.
+
+2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
+
+ PR c++/19893
+ * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
+ fetch_const_value_from_synthetic_pointer): New functions.
+ (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
+ (pieced_value_funcs): Implement coerce_ref.
+ * valops.c (value_addr): Call coerce_ref for synthetic references.
+ * valprint.c (valprint_check_validity): Return true for synthetic
+ references. Also, don't show "<synthetic pointer>" if they reference
+ addressable values.
+ (generic_val_print_ref): Handle synthetic references. Also move some
+ code to print_ref_address.
+ (print_ref_address, get_value_addr_contents): New functions.
+
+2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR c++/15231
+ * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
+ (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
+ (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
+ (read_call_site_scope): Adjust callers.
+ (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
+ (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
+ * dwarf2read.c (enum pc_bounds_kind) New.
+ (dwarf2_get_pc_bounds): Use it in the declaration.
+ (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
+ to cu_bounds_kind.
+ (read_func_scope, read_lexical_block_scope, read_call_site_scope):
+ Adjust callers.
+ (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
+ (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * NEWS (QCatchSyscalls): Remove the parameter. Include ...
+ (QCatchSyscalls:1 in qSupported) ... this separate entry which got
+ deleted.
+
+2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * NEWS (N stop reply): Remove empty line.
+
+2016-05-28 Alan Modra <amodra@gmail.com>
+
+ * compile/compile-object-load.c (link_callbacks_multiple_definition,
+ link_callbacks_warning, link_callbacks_undefined_symbol,
+ link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
+ link_callbacks_reloc_dangerous,
+ link_callbacks_unattached_reloc): Return void.
+
+2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * opencl-lang.c (evaluate_subexp_opencl): If
+ EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
+ the returned value in the STRUCTOP_STRUCT case.
+
+2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
+ mode, forward the VALUE_LVAL attribute to the returned value in
+ the STRUCTOP_PTR case.
+
+2016-05-25 Tom Tromey <tom@tromey.com>
+
+ * python/py-value.c (value_object_as_number): Use correct spelling
+ of HAVE_LIBPYTHON2_4.
+
+2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-typeprint.c (f_type_print_base): Replace 0 by show.
+
+2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-typeprint.c (f_type_print_base): Decrease show by one.
+
+2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
+
+2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-typeprint.c (f_type_print_base): Take print level into account.
+
+2016-05-24 Tom Tromey <tom@tromey.com>
+
+ PR python/17386:
+ * python/py-value.c (value_object_as_number): Add
+ nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
+
+2016-05-24 Tom Tromey <tom@tromey.com>
+
+ * python/py-value.c (value_object_as_number): Add
+ nb_inplace_divide for Python 2.
+
+2016-05-23 Tom Tromey <tom@tromey.com>
+
+ PR python/17981:
+ * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
+ when there are no breakpoints.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
+ resumed, and add the thread to GDB's thread list.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (get_pending_status): If the thread reported the
+ event to the core and it's pending, use the pending status signal
+ number.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (lwp_lwpid_htab): New htab.
+ (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
+ (lwp_lwpid_htab_add_lwp): New functions.
+ (lwp_list): Tweak comment.
+ (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
+ functions.
+ (purge_lwp_list): Rewrite, using htab_traverse_noresize.
+ (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
+ (delete_lwp): Use lwp_list_remove. Remove htab too.
+ (find_lwp_pid): Search in htab.
+ (_initialize_linux_nat): Call lwp_lwpid_htab_create.
+ * linux-nat.h (struct lwp_info) <prev>: New field.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (lwp_lwpid_htab): New htab.
+ (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
+ (lwp_lwpid_htab_add_lwp): New functions.
+ (lwp_list): Tweak comment.
+ (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
+ functions.
+ (purge_lwp_list): Rewrite, using htab_traverse_noresize.
+ (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
+ (delete_lwp): Use lwp_list_remove. Remove htab too.
+ (find_lwp_pid): Search in htab.
+ (_initialize_linux_nat): Call lwp_lwpid_htab_create.
+ * linux-nat.h (struct lwp_info) <prev>: New field.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
+ field.
+ (linux_nat_update_thread_list): Don't fetch the core if already
+ known.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-tdep.c (find_mapping_size): Delete.
+ (linux_vsyscall_range_raw): Rewrite reading from
+ /proc/PID/task/PID/maps directly instead of using
+ gdbarch_find_memory_regions.
+
+2016-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * linux-nat.c (report_thread_events): New global.
+ (linux_handle_extended_wait): Report
+ TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
+ enabled.
+ (wait_lwp, linux_nat_filter_event): Report all thread exits if
+ thread event reporting is enabled. Remove comment.
+ (filter_exit_event): New function.
+ (linux_nat_wait_1): Use it.
+ (linux_nat_thread_events): New function.
+ (linux_nat_add_target): Install it as target_thread_events method.
+
+2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
+
+ * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
+
+2016-05-23 Yao Qi <yao.qi@arm.com>
+
+ * arch-utils.c (default_code_of_frame_writable): New function.
+ * arch-utils.h (default_code_of_frame_writable): Declare.
+ * arm-tdep.c (arm_code_of_frame_writable): New function.
+ (arm_gdbarch_init): Install gdbarch method
+ code_of_frame_writable if the target is M-profile.
+ * frame.c (skip_unwritable_frames): New function.
+ * frame.h (skip_unwritable_frames): Declare.
+ * gdbarch.sh (code_of_frame_writable): New.
+ * gdbarch.c, gdbarch.h: Re-generated.
+ * infcmd.c (finish_command): Call skip_unwritable_frames.
+
+2016-05-23 Tom Tromey <tom@tromey.com>
+
+ PR python/19438, PR python/18393:
+ * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
+ * python/py-progspace.c (pspy_initialize): Initialize self->dict.
+
+2016-05-23 Gary Benson <gbenson@redhat.com>
+
+ * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
+ * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
+ Remove field.
+ (try_thread_db_load_1): Remove td_thr_validate initialization.
+
+2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
+
+ * configure.ac: Search for libutil-freebsd as alternative to libutil.
+ * configure: Re-generated.
+
+2016-05-19 Andreas Schwab <schwab@suse.de>
+
+ * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
+ (libunwind_frame_set_descr): Likewise.
+ (libunwind_frame_cache): Likewise.
+ (libunwind_frame_dealloc_cache): Likewise.
+ (libunwind_frame_sniffer): Likewise.
+ (libunwind_search_unwind_table): Likewise.
+ (libunwind_sigtramp_frame_sniffer): Likewise.
+ (libunwind_get_reg_special): Likewise.
+ (libunwind_load): Likewise.
+ * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
+ (ia64_linux_store_register): Likewise.
+ (ia64_linux_xfer_partial): Likewise.
+ * ia64-tdep.c (ia64_access_reg): Likewise.
+ (ia64_access_fpreg): Likewise.
+ (ia64_access_rse_reg): Likewise.
+ (ia64_access_rse_fpreg): Likewise.
+
+2016-05-18 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_subscript): Initialize "high".
+
+2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/20045
+ * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
+ of target_is_async_p.
+
+2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/18077
+ * mi/mi-main.c (run_one_inferior): Use run target to determine
+ whether to run async or not.
+ (mi_cmd_exec_run): Likewise.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
+ * rust-lang.c: Don't include f-lang.h.
+ (rust_range, rust_compute_range, rust_subscript)
+ (rust_evaluate_subexp): Update.
+ * rust-exp.y: Don't include f-lang.h.
+ (ast_range, convert_ast_to_expression): Update.
+ * parse.c (operator_length_standard): Update.
+ * f-lang.h (enum f90_range_type): Move to expression.h.
+ * f-exp.y: Use OP_RANGE.
+ * expression.h (enum range_type): New enum; renamed from
+ f90_range_type.
+ * expprint.c: Don't include f-lang.h.
+ (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
+ * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * NEWS: Add Rust item.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+ Manish Goregaokar <manishsmail@gmail.com>
+
+ * symtab.c (symbol_find_demangled_name): Handle Rust.
+ * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
+ * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
+ constants.
+ * rust-lang.h: New file.
+ * rust-lang.c: New file.
+ * rust-exp.y: New file.
+ * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
+ (dwarf2_compute_name, read_func_scope, read_structure_type)
+ (read_base_type, read_subrange_type, set_cu_language)
+ (new_symbol_full, determine_prefix): Handle Rust.
+ * defs.h (enum language) <language_rust>: New constant.
+ * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
+ (COMMON_OBS): Add rust-exp.o, rust-lang.o.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * valprint.h (struct generic_val_print_array) <array_start,
+ array_end>: New fields.
+ * valprint.c (generic_val_print_array): Add "decorations"
+ parameter. Use "array_start", "array_end".
+ (generic_val_print) <TYPE_CODE_ARRAY>: Update.
+ * p-valprint.c (p_decorations): Update.
+ * m2-valprint.c (m2_decorations): Update.
+ * f-valprint.c (f_decorations): Update.
+ * c-valprint.c (c_decorations): Update.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * NEWS: Add "maint selftest" entry.
+ * selftest.h: New file.
+ * selftest.c: New file.
+ * maint.c: Include selftest.h.
+ (maintenance_selftest): New function.
+ (_initialize_maint_cmds): Add "maint selftest" command.
+ * configure.ac (GDB_SELF_TEST): Maybe define.
+ * config.in, configure: Rebuild.
+ * Makefile.in (SFILES): Add selftest.c.
+ (COMMON_OBS): Add selftest.o.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * expprint.c: Include f-lang.h.
+ (print_subexp_standard, dump_subexp_body_standard): Handle
+ OP_F90_RANGE.
+
+2016-05-17 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (init.c): Search .y files for initialization
+ functions.
+
+2016-05-12 Doug Evans <dje@google.com>
+
+ PR symtab/19999
+ * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
+ add base_offset.
+
+2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
+ anything.
+ * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
+
+2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * arm-tdep.c (arm_elf_make_msymbol_special): Use
+ ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
+
+2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
+ variables.
+ * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
+ (aarch64_scan_prologue): Likewise.
+ (aarch64_prologue_prev_register): Likewise.
+ (aarch64_dwarf2_prev_register): Likewise.
+ (pass_in_v): Likewise.
+ (aarch64_push_dummy_call): Likewise.
+ (aarch64_breakpoint_from_pc): Likewise.
+ (aarch64_return_in_memory): Likewise.
+ (aarch64_return_value): Likewise.
+ (aarch64_displaced_step_b_cond): Likewise.
+ (aarch64_displaced_step_cb): Likewise.
+ (aarch64_displaced_step_tb): Likewise.
+ (aarch64_gdbarch_init): Likewise.
+ (aarch64_process_record): Likewise.
+ * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
+ * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
+ * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
+ * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
+ * amd64-tdep.c (fixup_riprel): Likewise.
+ * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
+ (amd64_windows_frame_decode_insns): Likewise.
+ (amd64_windows_frame_cache): Likewise.
+ (amd64_windows_frame_prev_register): Likewise.
+ (amd64_windows_frame_this_id): Likewise.
+ (amd64_windows_init_abi): Likewise.
+ * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
+ (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
+ * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
+ * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
+ (arm_epilogue_frame_prev_register): Likewise.
+ (arm_record_vdata_transfer_insn): Likewise.
+ (arm_record_exreg_ld_st_insn): Likewise.
+ * auto-load.c (execute_script_contents): Likewise.
+ (print_scripts): Likewise.
+ * avr-tdep.c (avr_frame_prev_register): Likewise.
+ (avr_push_dummy_call): Likewise.
+ * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
+ * bfin-tdep.c (bfin_gdbarch_init): Likewise.
+ * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
+ * break-catch-throw.c (fetch_probe_arguments): Likewise.
+ * breakpoint.c (breakpoint_xfer_memory): Likewise.
+ (breakpoint_init_inferior): Likewise.
+ (breakpoint_inserted_here_p): Likewise.
+ (software_breakpoint_inserted_here_p): Likewise.
+ (hardware_breakpoint_inserted_here_p): Likewise.
+ (bpstat_what): Likewise.
+ (break_range_command): Likewise.
+ (save_breakpoints): Likewise.
+ * coffread.c (coff_symfile_read): Likewise.
+ * cris-tdep.c (cris_push_dummy_call): Likewise.
+ (cris_scan_prologue): Likewise.
+ (cris_register_size): Likewise.
+ (_initialize_cris_tdep): Likewise.
+ * d-exp.y: Likewise.
+ * dbxread.c (dbx_read_symtab): Likewise.
+ (process_one_symbol): Likewise.
+ (coffstab_build_psymtabs): Likewise.
+ (elfstab_build_psymtabs): Likewise.
+ * dicos-tdep.c (dicos_init_abi): Likewise.
+ * disasm.c (do_mixed_source_and_assembly): Likewise.
+ (gdb_disassembly): Likewise.
+ * dtrace-probe.c (dtrace_process_dof): Likewise.
+ * dwarf2read.c (error_check_comp_unit_head): Likewise.
+ (build_type_psymtabs_1): Likewise.
+ (skip_one_die): Likewise.
+ (process_imported_unit_die): Likewise.
+ (dwarf2_physname): Likewise.
+ (read_file_scope): Likewise.
+ (setup_type_unit_groups): Likewise.
+ (create_dwo_cu_reader): Likewise.
+ (create_dwo_cu): Likewise.
+ (create_dwo_unit_in_dwp_v1): Likewise.
+ (create_dwo_unit_in_dwp_v2): Likewise.
+ (lookup_dwo_unit_in_dwp): Likewise.
+ (free_dwo_file): Likewise.
+ (check_producer): Likewise.
+ (dwarf2_add_typedef): Likewise.
+ (dwarf2_add_member_fn): Likewise.
+ (read_unsigned_leb128): Likewise.
+ (read_signed_leb128): Likewise.
+ (dwarf2_const_value): Likewise.
+ (follow_die_sig_1): Likewise.
+ (dwarf_decode_macro_bytes): Likewise.
+ * extension.c (restore_active_ext_lang): Likewise.
+ * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
+ * ft32-tdep.c (ft32_analyze_prologue): Likewise.
+ * gdbtypes.c (lookup_typename): Likewise.
+ (resolve_dynamic_range): Likewise.
+ (check_typedef): Likewise.
+ * h8300-tdep.c (h8300_is_argument_spill): Likewise.
+ (h8300_gdbarch_init): Likewise.
+ * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
+ (hppa_frame_this_id): Likewise.
+ (_initialize_hppa_tdep): Likewise.
+ * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
+ * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
+ * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
+ * i386-tdep.c (i386_bnd_type): Likewise.
+ (i386_gdbarch_init): Likewise.
+ (i386_mpx_bd_base): Likewise.
+ * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
+ * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
+ * ia64-tdep.c (examine_prologue): Likewise.
+ (ia64_frame_cache): Likewise.
+ (ia64_push_dummy_call): Likewise.
+ * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
+ (default_print_one_register_info): Likewise.
+ * infrun.c (infrun_thread_ptid_changed): Likewise.
+ (thread_still_needs_step_over): Likewise.
+ (stop_all_threads): Likewise.
+ (restart_threads): Likewise.
+ (keep_going_stepped_thread): Likewise.
+ * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
+ * language.c (language_init_primitive_type_symbols): Likewise.
+ * linespec.c (add_sal_to_sals): Likewise.
+ * linux-nat.c (status_callback): Likewise.
+ (kill_unfollowed_fork_children): Likewise.
+ (linux_nat_kill): Likewise.
+ * linux-tdep.c (linux_fill_prpsinfo): Likewise.
+ * linux-thread-db.c (thread_db_notice_clone): Likewise.
+ (record_thread): Likewise.
+ * location.c (string_to_event_location_basic): Likewise.
+ * m32c-tdep.c (m32c_prev_register): Likewise.
+ * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
+ * m32r-tdep.c (decode_prologue): Likewise.
+ * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
+ * machoread.c (macho_symtab_read): Likewise.
+ (macho_symfile_read): Likewise.
+ (macho_symfile_offsets): Likewise.
+ * maint.c (set_per_command_cmd): Likewise.
+ * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
+ (mi_cmd_stack_list_variables): Likewise.
+ * mi/mi-main.c (mi_cmd_exec_run): Likewise.
+ (output_register): Likewise.
+ (mi_cmd_execute): Likewise.
+ (mi_cmd_trace_define_variable): Likewise.
+ (print_variable_or_computed): Likewise.
+ * minsyms.c (prim_record_minimal_symbol_full): Likewise.
+ * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
+ * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
+ * mt-tdep.c (mt_registers_info): Likewise.
+ * nios2-tdep.c (nios2_analyze_prologue): Likewise.
+ (nios2_push_dummy_call): Likewise.
+ (nios2_frame_unwind_cache): Likewise.
+ (nios2_stub_frame_cache): Likewise.
+ (nios2_stub_frame_sniffer): Likewise.
+ (nios2_gdbarch_init): Likewise.
+ * ppc-ravenscar-thread.c: Likewise.
+ * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
+ * python/py-evts.c (add_new_registry): Likewise.
+ * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
+ (bpfinishpy_detect_out_scope_cb): Likewise.
+ * python/py-framefilter.c (py_print_value): Likewise.
+ * python/py-inferior.c (infpy_write_memory): Likewise.
+ * python/py-infevents.c (create_inferior_call_event_object): Likewise.
+ * python/py-infthread.c (thpy_get_ptid): Likewise.
+ * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
+ (ltpy_get_all_source_lines): Likewise.
+ (ltpy_is_valid): Likewise.
+ (ltpy_iternext): Likewise.
+ * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
+ * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
+ (unwind_infopy_str): Likewise.
+ * python/py-varobj.c (py_varobj_get_iterator): Likewise.
+ * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
+ * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
+ * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
+ * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
+ * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
+ (s390_frame_prev_register): Likewise.
+ (s390_dwarf2_frame_init_reg): Likewise.
+ (s390_record_vr): Likewise.
+ (s390_process_record): Likewise.
+ * score-tdep.c (score_push_dummy_call): Likewise.
+ (score3_analyze_prologue): Likewise.
+ * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
+ * sh64-tdep.c (sh64_analyze_prologue): Likewise.
+ (sh64_push_dummy_call): Likewise.
+ (sh64_extract_return_value): Likewise.
+ (sh64_do_fp_register): Likewise.
+ * solib-aix.c (solib_aix_get_section_offsets): Likewise.
+ * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
+ (darwin_solib_read_all_image_info_addr): Likewise.
+ * solib-dsbt.c (enable_break): Likewise.
+ * solib-frv.c (enable_break2): Likewise.
+ (frv_fdpic_find_canonical_descriptor): Likewise.
+ * solib-svr4.c (svr4_handle_solib_event): Likewise.
+ * sparc-tdep.c (sparc_skip_stack_check): Likewise.
+ * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
+ * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
+ * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
+ * stack.c (read_frame_local): Likewise.
+ * symfile.c (symbol_file_add_separate): Likewise.
+ (remove_symbol_file_command): Likewise.
+ * symmisc.c (maintenance_print_one_line_table): Likewise.
+ * symtab.c (symbol_cache_flush): Likewise.
+ (basic_lookup_transparent_type): Likewise.
+ (sort_search_symbols_remove_dups): Likewise.
+ * target.c (target_memory_map): Likewise.
+ (target_detach): Likewise.
+ (target_resume): Likewise.
+ (acquire_fileio_fd): Likewise.
+ (target_store_registers): Likewise.
+ * thread.c (print_thread_info_1): Likewise.
+ * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
+ * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
+ * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
+ (tilegx_analyze_prologue): Likewise.
+ (tilegx_stack_frame_destroyed_p): Likewise.
+ (tilegx_frame_cache): Likewise.
+ * tracefile.c (trace_save): Likewise.
+ * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
+ (start_tracing): Likewise.
+ (print_one_static_tracepoint_marker): Likewise.
+ * tui/tui.c (tui_enable): Likewise.
+ * valops.c (value_struct_elt_bitpos): Likewise.
+ (find_overload_match): Likewise.
+ (find_oload_champ): Likewise.
+ * value.c (value_contents_copy_raw): Likewise.
+ * windows-tdep.c (windows_get_tlb_type): Likewise.
+ * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
+ * xcoffread.c (record_minimal_symbol): Likewise.
+ (scan_xcoff_symtab): Likewise.
+ * xtensa-tdep.c (execute_code): Likewise.
+ (xtensa_gdbarch_init): Likewise.
+ (_initialize_xtensa_tdep): Likewise.
+
+2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
+ (spu_bfd_open): Likewise.
+
+2016-05-04 Yao Qi <yao.qi@linaro.org>
+
+ PR gdb/19947
+ * corefile.c (read_memory): Rename it to ...
+ (read_memory_object): ... it. Add parameter object.
+ (read_memory): Call read_memory_object.
+ (read_stack): Likewise.
+ (read_code): Likewise.
+
+2016-05-03 Yunlian Jiang <yunlian@google.com>
+ Doug Evans <dje@google.com>
+
+ PR symtab/19914
+ * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
+ is separate debug file.
+
+2016-05-03 Don Breazeal <donb@codesourcery.com>
+
+ * serial.h (gdb_pipe): Fix argument names in comment.
+
+2016-05-03 Pedro Alves <palves@redhat.com>
+
+ PR python/20037
+ * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
+ oldloc.
+
+2016-05-03 Pedro Alves <palves@redhat.com>
+
+ * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
+ code.
+
+2016-05-03 Pedro Alves <palves@redhat.com>
+
+ * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
+ * configure: Regenerate.
+
+2016-05-03 Pedro Alves <palves@redhat.com>
+
+ * configure.ac (checking for the dynamic export flag): Add
+ $PYTHON_CPPFLAGS to CPPFLAGS.
+ * configure: Regenerate.
+
+2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
+ warning.
+ (find_pc_mapped_section): Likewise.
+ (list_overlays_command): Likewise.
+
+2016-05-02 Eli Zaretskii <eliz@gnu.org>
+
+ * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
+ error in allocation of space for "$HOME/.gdbinit" string. This
+ caused GDB to abort on startup whenever a '~/gdb.ini' file was
+ actually found, because xsnprintf would hit an assertion
+ violation.
+
+2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
+
+ * cli/cli-decode.c (help_cmd_list): Do not list commands that
+ are deprecated.
+
+2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
+
+2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
+
+ * c-valprint.c (c_value_print): Always convert val back to reference
+ type if we converted it to a pointer type.
+
+2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * configure.ac: Enhance configure check for babeltrace to reject
+ non-C++-enabled versions.
+ * configure: Regenerate.
+
+2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
+ Keven Boell <keven.boell@intel.com>
+ Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
+ function.
+ (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
+ (f77_print_array_1): Use value_subscript to subscript a
+ value array.
+ (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
+ (f_val_print): Use value_field to construct a field value.
+
+2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * valarith.c (value_address): Resolve dynamic types.
+
+2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
+ Keven Boell <kevel.boell@intel.com>
+
+ * NEWS: Add new supported features for fortran.
+ * gdbtypes.c (remove_dyn_prop): New.
+ (resolve_dynamic_struct): Keep type length for fortran structs.
+ * gdbtypes.h: Forward declaration of new function.
+ * value.c (value_address): Return dynamic resolved location of a value.
+ (set_value_component_location): Adjust the value address
+ for single value prints.
+ (value_primitive_field): Support value types with a dynamic location.
+ (set_internalvar): Remove dynamic location property of
+ internal variables.
+
+2016-04-25 Pedro Alves <palves@redhat.com>
+ Yao Qi <yao.qi@linaro.org>
+
+ * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
+ object. Insert it if it is not inserted yet. Increase the
+ refcount and link it into the proc's raw breakpoint list.
+
+2016-04-25 Yao Qi <yao.qi@linaro.org>
+
+ * breakpoint.c (should_be_inserted): Return 0 if the location's
+ owner is not single step breakpoint or single step breakpoint's
+ thread isn't the thread which is stepping past a breakpoint.
+ * gdbarch.sh (software_single_step): Update comments.
+ * gdbarch.h: Regenerated.
+ * infrun.c (struct step_over_info) <thread>: New field.
+ (set_step_over_info): New argument 'thread'. Callers updated.
+ (clear_step_over_info): Set field thread to -1.
+ (thread_is_stepping_over_breakpoint): New function.
+ * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
+
+2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
+
+ * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
+ and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
+
+2016-04-22 Yao Qi <yao.qi@linaro.org>
+
+ * valops.c (read_value_memory): New local variable 'stack'.
+ Set it to either TARGET_OBJECT_STACK_MEMORY or
+ TARGET_OBJECT_MEMORY.
+
+2016-04-22 Pedro Alves <palves@redhat.com>
+
+ * ada-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * ada-lang.c (ada_language_defn): Adjust.
+ * ada-lang.h (ada_error): Rename to ...
+ (ada_yyerror): ... this.
+ * c-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * c-lang.c (c_language_defn, cplus_language_defn)
+ (asm_language_defn, minimal_language_defn): Adjust.
+ * c-lang.h (c_error): Rename to ...
+ (c_yyerror): ... this.
+ * d-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * d-lang.c (d_language_defn): Adjust.
+ * d-lang.h (d_error): Rename to ...
+ (d_yyerror): ... this.
+ * f-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * f-lang.c (f_language_defn): Adjust.
+ * f-lang.h (f_error): Rename to ...
+ (f_yyerror): ... this.
+ * go-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * go-lang.c (go_language_defn): Adjust.
+ * go-lang.h (go_error): Rename to ...
+ (go_yyerror): ... this.
+ * jv-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * jv-lang.c (java_language_defn): Adjust.
+ * jv-lang.h (java_error): Rename to ...
+ (java_yyerror): ... this.
+ * m2-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * m2-lang.c (m2_language_defn): Adjust.
+ * m2-lang.h (m2_error): Rename to ...
+ (m2_yyerror): ... this.
+ * objc-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * objc-lang.c (objc_language_defn): Adjust.
+ * opencl-lang.c (opencl_language_defn): Adjust.
+ * p-exp.y: Remove all yy symbol remappings.
+ (GDB_YY_REMAP_PREFIX): Define.
+ Include "yy-remap.h".
+ * p-lang.c (pascal_language_defn): Adjust.
+ * p-lang.h (pascal_error): Rename to ...
+ (pascal_yyerror): ... this.
+ * yy-remap.h: New file.
+
+2016-04-22 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
+ the foreign frames issue.
+ [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
+
+2016-04-22 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.c (enum catcher_state, struct catcher)
+ (current_catcher): Define in C++ mode too.
+ (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
+ throw_exception.
+ (throw_exception_sjlj, throw_exception_cxx): New functions,
+ factored out from throw_exception.
+ (throw_exception): Reimplement.
+ * common/common-exceptions.h (exceptions_state_mc_init)
+ (exceptions_state_mc_action_iter)
+ (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
+ Declare in C++ mode too.
+ (TRY): Rename to ...
+ (TRY_SJLJ): ... this.
+ (CATCH): Rename to ...
+ (CATCH_SJLJ): ... this.
+ (END_CATCH): Rename to ...
+ (END_CATCH_SJLJ): ... this.
+ [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
+ equivalents.
+ (throw_exception): Update comments.
+ (throw_exception_sjlj): Declare.
+ * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
+ comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
+ intercepted exception.
+ (gdb_rl_callback_handler): New function.
+ (gdb_rl_callback_handler_install): Always install
+ gdb_rl_callback_handler as readline callback.
+
+2016-04-22 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (rl_callback_read_char_wrapper): Rename to ...
+ (gdb_rl_callback_read_char_wrapper): ... this.
+ (change_line_handler, gdb_setup_readline): Adjust.
+
+2016-04-22 Yao Qi <yao.qi@linaro.org>
+
+ * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
+ bits 20 to 23.
+
+2016-04-22 Joel Brobecker <brobecker@adacore.com>
+
+ * MAINTAINER: Remove myself as AIX Maintainer.
+
+2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
+
+ * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
+ `num_regs' to 90 rather than 79. Where a target description is
+ present adjust the setting appropriately.
+
+2016-04-21 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
+ (GDB_XCPT): Always define as GDB_XCPT_SJMP.
+
+2016-04-21 Pedro Alves <palves@redhat.com>
+
+ * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
+ (aix_thread_resume): Use PTRACE_TYPE_ARG5.
+ * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
+ (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
+ pointer, and cast return to gdb_byte pointer.
+
+2016-04-21 Pedro Alves <palves@redhat.com>
+
+ * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
+ void * instead of gdb_byte *.
+
+2016-04-21 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (try_open_dwop_file, open_dwo_file)
+ (file_file_name, file_full_name): Add char * cast to sentinel in
+ concat/reconcat calls.
+ * event-top.c (top_level_prompt): Likewise.
+ * guile/guile.c (initialize_scheme_side): Likewise.
+ * linux-tdep.c (linux_fill_prpsinfo): Likewise.
+ * macrotab.c (macro_source_fullname): Likewise.
+ * main.c (get_init_files, captured_main): Likewise.
+ * psymtab.c (psymtab_to_fullname): Likewise.
+ * python/python.c (_initialize_python)
+ (gdbpy_finish_initialization): Likewise.
+ * source.c (symtab_to_fullname): Likewise.
+
+2016-04-20 Pedro Alves <palves@redhat.com>
+
+ * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
+ * configure: Renegerate.
+
+2016-04-20 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
+
+2016-04-20 Pedro Alves <palves@redhat.com>
+
+ * aarch64-tdep.c (aarch64_record_load_store): Change type of
+ 'reg_rm_val' local to ULONGEST.
+
+2016-04-20 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
+
+2016-04-20 Doug Evans <xdje42@gmail.com>
+
+ * symmisc.c (dump_symtab_1): Print owning compunit for identical
+ blockvectors.
+
+2016-04-20 Yao Qi <yao.qi@linaro.org>
+
+ * aarch32-linux-nat.c: Include "arch/arm-linux.h".
+
+2016-04-20 Yao Qi <yao.qi@linaro.org>
+
+ * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
+ * arch/arm-linux.h: ... here.
+
+2016-04-19 John Baldwin <jhb@FreeBSD.org>
+
+ * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
+ to void *.
+ (amd64bsd_store_inferior_registers): Likewise.
+ * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
+ (resume_all_threads_cb): Likewise.
+ * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
+ (i386bsd_collect_gregset): Likewise.
+ (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
+ (i386bsd_store_inferior_registers): Likewise.
+
+2016-04-19 John Baldwin <jhb@FreeBSD.org>
+
+ * main.c (setup_alternate_signal_stack): Cast to char *.
+
+2016-04-19 Doug Evans <xdje42@gmail.com>
+
+ * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
+ All callers updated.
+
+2016-04-19 Doug Evans <xdje42@gmail.com>
+
+ PR gdb/17911
+ * source.c (is_regular_file): New arg errno_ptr.
+ All callers updated.
+
+2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * linux-record.c (record_linux_system_call): Merge handling for
+ readlink/recv/read and pipe/pipe2.
+
+2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
+ * features/i386/amd64-mpx.xml: Remove AVX feature.
+ * features/i386/i386-mpx-linux.xml: Remove AVX feature.
+ * features/i386/i386-mpx.xml: Remove AVX feature.
+ * features/i386/amd64-mpx-linux.c: Regenerate.
+ * features/i386/amd64-mpx.c: Regenerate.
+ * features/i386/i386-mpx-linux.c: Regenerate.
+ * features/i386/i386-mpx.c: Regenerate.
+ * regformats/i386/amd64-mpx-linux.dat: Regenerate.
+ * regformats/i386/amd64-mpx.dat: Regenerate.
+ * regformats/i386/i386-mpx-linux.dat: Regenerate.
+ * regformats/i386/i386-mpx.dat: Regenerate.
+
+2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
+ New include.
+ (amd64_linux_core_read_description): Add case for
+ X86_XSTATE_AVX_MPX_MASK.
+ (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
+ * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
+ * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
+ (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
+ (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
+ * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
+ (X86_XSTATE_AVX_MPX_MASK): New case.
+ * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
+ (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
+ (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
+ (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
+ New expedites.
+ * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
+ include.
+ (i386_linux_core_read_description): Add case
+ X86_XSTATE_AVX_MPX_MASK.
+ (_initialize_i386_linux_tdep): Call
+ initialize_tdesc_i386_avx_mpx_linux.
+ * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
+ * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
+ (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
+ * x86-linux-nat.c (x86_linux_read_description): Add case for
+ X86_XSTATE_AVX_MPX_MASK.
+ * features/i386/amd64-avx-mpx-linux.xml: New file.
+ * features/i386/i386-avx-mpx-linux.xml: New file.
+ * features/i386/i386-avx-mpx.xml: New file.
+ * features/i386/amd64-avx-mpx.xml: New file.
+ * features/i386/amd64-avx-mpx-linux.c: Generated.
+ * features/i386/amd64-avx-mpx.c: Generated.
+ * features/i386/i386-avx-mpx-linux.c: Generated.
+ * features/i386/i386-avx-mpx.c: Generated.
+ * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
+ * regformats/i386/amd64-avx-mpx.dat: Generated.
+ * regformats/i386/i386-avx-mpx-linux.dat: Generated.
+ * regformats/i386/i386-avx-mpx.dat: Generated.
+
+2016-04-18 Pedro Alves <palves@redhat.com>
+
+ * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
+ * configure: Regenerate.
+
+2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
+
+ * valops.c (value_addr): For C++ references, set the copied value's
+ enclosing_type as well.
+
+2016-04-18 Yao Qi <yao.qi@linaro.org>
+
+ Revert:
+ 2016-04-15 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
+ PC is far from the end of function.
+
+2016-04-16 Pedro Alves <palves@redhat.com>
+
+ * ada-exp.y (yydefred): Define as ada_yydefred.
+
+2016-04-15 Pedro Alves <palves@redhat.com>
+
+ * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
+ 'name_str' locals.
+
+2016-04-15 Pedro Alves <palves@redhat.com>
+
+ * btrace.c (pt_btrace_insn_flags): Change return type to
+ btrace_insn_flags. Use btrace_insn_flags for local.
+
+2016-04-15 Pedro Alves <palves@redhat.com>
+
+ * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
+ accept TRAP_BRKPT.
+ [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
+
+2016-04-15 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
+ PC is far from the end of function.
+
+2016-04-14 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-cmds.c (alias_usage_error): New function.
+ (alias_command): Use it.
+ * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
+ ctf_save_write_metadata call.
+
+2016-04-14 Pedro Alves <palves@redhat.com>
+
+ * ada-typeprint.c (print_fixed_point_type): Don't pass float as
+ argument to function expecting LONGEST.
+ * value.c (unpack_long): Add casts to LONGEST.
+
+2016-04-13 Luis Machado <lgustavo@codesourcery.com>
+
+ * exec.c (exec_file_locate_attach): Guard a couple functions
+ that can throw errors.
+ (exception_print_same): New helper function.
+
+2016-04-13 Pedro Alves <palves@redhat.com>
+
+ PR remote/19840
+ * remote.c (struct remote_state) <last_resume_exec_dir>: New
+ field.
+ (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
+ (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
+ (remote_resume): Store the last execution direction.
+ (remote_execution_direction): New function.
+ (init_remote_ops): Install it as to_execution_direction target_ops
+ method.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
+ [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.c (struct catcher) <buf>: Now a
+ 'jmp_buf' instead of SIGJMP_BUF.
+ (exceptions_state_mc_init): Change return type to 'jmp_buf'.
+ (throw_exception): Use longjmp instead of SIGLONGJMP.
+ * common/common-exceptions.h: Include <setjmp.h> instead of
+ "gdb_setjmp.h".
+ (exceptions_state_mc_init): Change return type to 'jmp_buf'.
+ [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
+ SIGSETJMP.
+ * cp-support.c: Include "gdb_setjmp.h".
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * common/common-exceptions.c (exception_rethrow): Remove
+ prepare_to_throw_exception call.
+ * common/common-exceptions.h (prepare_to_throw_exception): Delete
+ declaration.
+ * exceptions.c (prepare_to_throw_exception): Delete.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * target.c (target_check_pending_interrupt): Delete.
+ * target.h (struct target_ops) <to_check_pending_interrupt>:
+ Remove method.
+ (target_check_pending_interrupt): Remove declaration.
+ * target-delegates.c: Regenerate.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * defs.h: Update comments on SIGINT handling.
+ (immediate_quit): Delete declaration.
+ * event-loop.c (call_async_signal_handler): Delete.
+ * event-loop.h (call_async_signal_handler): Delete declaration.
+ (mark_async_signal_handler): Update comments.
+ (gdb_call_async_signal_handler): Delete declaration.
+ * event-top.c (handle_sigint): Call mark_async_signal_handler
+ instead of gdb_call_async_signal_handler.
+ * exceptions.c (prepare_to_throw_exception): Remove reference to
+ immediate_quit.
+ (exception_fprintf): Remove comments about immediate_quit.
+ * mingw-hdep.c (sigint_event, sigint_handler): Delete.
+ (gdb_select): Don't wait on sigint_event.
+ (gdb_call_async_signal_handler): Delete.
+ (_initialize_mingw_hdep): Delete.
+ * posix-hdep.c (gdb_call_async_signal_handler): Delete.
+ * utils.c (immediate_quit): Delete.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * defs.h (quit_handler_ftype, quit_handler)
+ (make_cleanup_override_quit_handler, default_quit_handler): New.
+ (QUIT): Adjust comments.
+ * event-top.c (default_quit_handler): New function.
+ (quit_handler): New global.
+ (struct quit_handler_cleanup_data): New.
+ (restore_quit_handler, restore_quit_handler_dtor)
+ (make_cleanup_override_quit_handler): New.
+ (async_request_quit): Call QUIT.
+ * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
+ (async_sigint_remote_twice_token, async_sigint_remote_token):
+ Delete.
+ (remote_close): Update comments.
+ (remote_start_remote): Don't set immediate_quit. Set starting_up
+ earlier.
+ (remote_serial_quit_handler, remote_unpush_and_throw): New
+ functions.
+ (remote_open_1): Clear got_ctrlc_during_io. Set
+ remote_async_terminal_ours_p unconditionally.
+ (async_initialize_sigint_signal_handler)
+ (async_handle_remote_sigint, async_handle_remote_sigint_twice)
+ (remote_check_pending_interrupt, async_remote_interrupt)
+ (async_remote_interrupt_twice)
+ (async_cleanup_sigint_signal_handler, ofunc)
+ (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
+ (remote_terminal_inferior, remote_terminal_ours): Remove async
+ checks.
+ (remote_wait_as): Don't install a SIGINT handler in sync mode.
+ (readchar, remote_serial_write): Override the quit handler with
+ remote_serial_quit_handler.
+ (getpkt_or_notif_sane_1): Don't call QUIT.
+ (initialize_remote_ops): Don't install
+ remote_check_pending_interrupt.
+ (_initialize_remote): Don't create async_sigint_remote_token and
+ async_sigint_remote_twice_token.
+ * ser-base.c (ser_base_wait_for): Call QUIT and use
+ interruptible_select.
+ (ser_base_write): Call QUIT.
+ * ser-go32.c (dos_readchar, dos_write): Call QUIT.
+ * ser-unix.c (wait_for): Don't use VTIME. Always take the
+ gdb_select path, but call QUIT and interruptible_select.
+ * utils.c (maybe_quit): Call the current quit handler. Don't call
+ target_check_pending_interrupt.
+ (defaulted_query, prompt_for_continue): Override the quit handler
+ with the default quit handler.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * tui/tui-hooks.c (tui_target_has_run): Delete.
+ (tui_about_to_proceed): Delete.
+ (tui_about_to_proceed_observer): Delete.
+ (tui_install_hooks, tui_remove_hooks): Don't install/remove an
+ about_to_proceed observer.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * mi/mi-interp.c (mi_new_thread): Put
+ target_terminal_ours_for_output in effect while outputting.
+ (mi_thread_exit): Use target_terminal_ours_for_output instead of
+ target_terminal_ours.
+ (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
+ (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
+ (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
+ (mi_breakpoint_created, mi_breakpoint_deleted)
+ (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
+ (mi_command_param_changed, mi_memory_changed)
+ (report_initial_inferior): Use target_terminal_ours_for_output
+ instead of target_terminal_ours. Restore terminal settings.
+ * mi/mi-main.c (mi_execute_command): Use
+ target_terminal_ours_for_output instead of target_terminal_ours.
+ Restore terminal settings.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ PR gdb/19828
+ * gnu-nat.c (inf_validate_task_sc): Don't call
+ target_terminal_ours / target_terminal_inferior around query.
+ * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
+ call target_terminal_ours / target_terminal_inferior around
+ yquery.
+ * linux-record.c (record_linux_system_call): Don't call
+ target_terminal_ours / target_terminal_inferior around yquery.
+ * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
+ / target_terminal_inferior around query.
+ * record-full.c (record_full_check_insn_num): Remove
+ 'set_terminal' parameter. Don't call target_terminal_ours /
+ target_terminal_inferior around query.
+ (record_full_message, record_full_registers_change)
+ (record_full_xfer_partial): Adjust.
+ * remote.c (interrupt_query): Don't call target_terminal_ours /
+ target_terminal_inferior around query.
+ * utils.c (defaulted_query): Install cleanup to restore target
+ terminal. Put target_terminal_ours_for_output in effect while
+ defaulted producing, and target_terminal_ours in in effect while
+ handling input.
+ (prompt_for_continue): Install cleanup to restore target terminal.
+ Put target_terminal_ours in in effect while handling input.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * utils.c (defaulted_query, prompt_for_continue): Free temporary
+ strings with cleanups, instead of xfree.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * utils.c (vwarning, internal_vproblem): Use
+ make_cleanup_restore_target_terminal and
+ target_terminal_ours_for_output.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * infcmd.c (post_create_inferior, prepare_one_step): Use
+ target_terminal_ours_for_output instead of target_terminal_ours.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * exceptions.c (print_flush): Use target_terminal_ours_for_output
+ instead of target_terminal_ours, and restore target terminal with
+ a cleanup.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
+ instead of target_terminal_ours, and restore target terminal with
+ a cleanup.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
+ functions.
+ (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * ser-base.c (fd_event): Retry read_prim on EINTR.
+ (do_ser_base_readchar): Retry read_prim on EINTR.
+ (ser_base_write): Retry write_prim on EINTR.
+ * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
+ (ser_unix_write_prim): Remove comment.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * remote.c (remote_pass_ctrlc): New function.
+ (init_remote_ops): Install it.
+ * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
+ target.
+ (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
+ * target.h (struct target_ops) <to_pass_ctrlc>: New method.
+ (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
+ * target-delegates.c: Regenerate.
+
+2016-04-12 Pedro Alves <palves@redhat.com>
+
+ * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
+ mode.
+ * linux-nat.c (linux_nat_interrupt): Delete.
+ (linux_nat_add_target): Don't install linux_nat_interrupt.
+ * remote.c (remote_interrupt_ns): Change return type to void.
+ Throw error if interrupting the target is not supported.
+ (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
+
2016-04-12 Pedro Alves <palves@redhat.com>
* defs.h (clear_quit_flag): Remove declaration.