This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 08/25] Make input_fd be per UI


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]