Use target_terminal_ours_for_output in warning/internal_error
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:49:31 +0000 (16:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:59:13 +0000 (16:59 +0100)
commitc5ac15402a894e87a118526a066880f596b3c78d
treedd232d78bb25a35e1f47207acb8b64de893097e9
parentf8e3ef9dc4d803729a8f0e0cafb2c995b576c44e
Use target_terminal_ours_for_output in warning/internal_error

We're only doing output here, so leave raw/cooked mode alone, as well
as the SIGINT handler.

And restore terminal settings, while at it.

gdb/ChangeLog:
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.
gdb/ChangeLog
gdb/utils.c