Use target_terminal_ours_for_output in cp-support.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:14 +0000 (16:58 +0100)
commitc509f1e1e8187e0abd2321aadc37878402c87332
treee6f5cee2a7eaa9c98cf6c0b0973912f6562b4b1e
parent99bbb428d4412b79e59df321f9e83c13342e4612
Use target_terminal_ours_for_output in cp-support.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>

* cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
instead of target_terminal_ours, and restore target terminal with
a cleanup.
gdb/ChangeLog
gdb/cp-support.c