Home | History | Annotate | Download | only in gdb

Lines Matching defs:ui

18 #include "ui.h"
33 struct ui *main_ui;
34 struct ui *current_ui;
35 struct ui *ui_list;
37 /* The highest UI number ever assigned. */
43 ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_)
62 struct ui *last;
70 ui::~ui ()
72 struct ui *ui, *uiprev;
76 for (ui = ui_list; ui != NULL; uiprev = ui, ui = ui->next)
77 if (ui == this)
80 gdb_assert (ui != NULL);
96 ui::input_interactive_p () const
116 struct ui *ui = (struct ui *) client_data;
120 /* Switch to the main UI, so diagnostics always go there. */
123 ui->unregister_file_handler ();
124 if (main_ui == ui)
132 /* Simply delete the UI. */
133 delete ui;
138 /* Switch to the UI whose input descriptor woke up the event
140 current_ui = ui;
154 ui->call_readline (client_data);
163 ui::register_file_handler ()
167 string_printf ("ui-%d", num), true);
173 ui::unregister_file_handler ()
192 /* Implementation of the "new-ui" command. */
207 error (_("Usage: new-ui INTERPRETER TTY"));
220 std::unique_ptr<ui> ui
221 (new struct ui (stream.get (), stream.get (), stream.get ()));
223 ui->async = 1;
225 current_ui = ui.get ();
234 ui.release ();
237 gdb_printf ("New UI allocated\n");
244 cmd_list_element *c = add_cmd ("new-ui", class_support, new_ui_command, _("\
245 Create a new UI.\n\
246 Usage: new-ui INTERPRETER TTY\n\
248 The second argument is the terminal the UI runs on."), &cmdlist);