forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1601,7 +1601,9 @@ gdb_demangle (const char *name, int options)
|
||||
"demangler-warning", short_msg);
|
||||
make_cleanup (xfree, long_msg);
|
||||
|
||||
target_terminal_ours ();
|
||||
make_cleanup_restore_target_terminal ();
|
||||
target_terminal_ours_for_output ();
|
||||
|
||||
begin_line ();
|
||||
if (core_dump_allowed)
|
||||
fprintf_unfiltered (gdb_stderr,
|
||||
|
||||
Reference in New Issue
Block a user