Use target_terminal_ours_for_output in exceptions.c
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:58:35 +0000 (16:58 +0100)
commit481ac8c9bbbfc4b7506dfdb4a5b92b859d5c47d9
treef73180369973fc3c9cf6ac8874a7777a299ae1c5
parentc509f1e1e8187e0abd2321aadc37878402c87332
Use target_terminal_ours_for_output in exceptions.c

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

Restore terminal settings after output, while at it.

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