binutils-gdb/gdb/cli
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
..
cli-cmds.c Avoid "format not a string literal" warnings 2016-04-14 12:59:01 +01:00
cli-cmds.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-decode.c Don't show deprecated commands in help 2016-04-28 14:11:51 -04:00
cli-decode.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-dump.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-interp.c New function should_print_stop_to_console 2016-06-21 01:11:52 +01:00
cli-interp.h New function should_print_stop_to_console 2016-06-21 01:11:52 +01:00
cli-logging.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-script.c Make instream be per UI 2016-06-21 01:11:46 +01:00
cli-script.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-setshow.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-setshow.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cli-utils.c Star wildcard ranges (e.g., "info thread 2.*") 2016-01-15 21:46:23 +00:00
cli-utils.h Star wildcard ranges (e.g., "info thread 2.*") 2016-01-15 21:46:23 +00:00