binutils-gdb/gdb/mi
Pedro Alves 26cde2cc30 New function should_print_stop_to_console
There's code in the MI interpreter that decides whether a stop should
be sent to MI's console stream.  Move this check to the CLI
interpreter code, so that we can reuse it in both the CLI and TUI
interpreters.

gdb/ChangeLog:
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 01:11:52 +01:00
..
ChangeLog-1999-2003
mi-cmd-break.c
mi-cmd-break.h
mi-cmd-catch.c
mi-cmd-disas.c
mi-cmd-env.c
mi-cmd-file.c
mi-cmd-info.c
mi-cmd-stack.c remove trivialy unused variables 2016-05-07 20:12:53 -04:00
mi-cmd-target.c
mi-cmd-var.c
mi-cmds.c
mi-cmds.h Make raw_stdout be per MI instance 2016-06-21 01:11:50 +01:00
mi-common.c
mi-common.h Make raw_stdout be per MI instance 2016-06-21 01:11:50 +01:00
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c New function should_print_stop_to_console 2016-06-21 01:11:52 +01:00
mi-main.c New function should_print_stop_to_console 2016-06-21 01:11:52 +01:00
mi-main.h Make raw_stdout be per MI instance 2016-06-21 01:11:50 +01:00
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c