[PATCH v2 08/25] Make input_fd be per UI
Yao Qi
qiyaoltc@gmail.com
Tue Mar 22 09:46:00 GMT 2016
Pedro Alves <palves@redhat.com> writes:
> @@ -498,6 +504,10 @@ target_terminal_inferior (void)
> void
> target_terminal_ours (void)
> {
> + struct ui *ui = current_ui;
> +
> + add_file_handler (ui->input_fd, stdin_event_handler, ui);
> +
> if (terminal_state == terminal_is_ours)
> return;
We should call add_file_handler after the terminal_state check above.
--
Yao (齐尧)
More information about the Gdb-patches
mailing list