Re: [PATCH] Fix terminal state corruption when starting a program from within TUI

Pedro Alves
2014-08-27T11:41:59Z

On 08/25/2014 07:17 PM, Patrick Palka wrote:
> The TUI terminal state becomes corrupted (e.g. key sequences such as
> Alt_F and Alt_B no longer work) when one attaches to an inferior process
> (via "run" or "attach") from within TUI. This terminal corruption
> remains until you switch out of TUI mode.

This has bugged me for a long while, and I simply got used to
working around it. Thanks a lot for tracking it down!

This is OK.

> gdb/ChangeLog:

> * inferior.h (child_terminal_save_ours): Rename to ...
> (gdb_save_tty_state): ... this.

Could you move this to terminal.h, right next to gdb_has_a_terminal
please ?

> * inflow.c (child_terminal_save_ours): Rename to ...
> (gdb_save_tty_state): ... this.

Thanks,
Pedro Alves