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