This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 08/25] Make input_fd be per UI
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 22 Mar 2016 09:46:11 +0000
- Subject: Re: [PATCH v2 08/25] Make input_fd be per UI
- Authentication-results: sourceware.org; auth=none
- References: <1458573675-15478-1-git-send-email-palves at redhat dot com> <1458573675-15478-9-git-send-email-palves at redhat dot com>
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 (éå)