aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-06-23 11:05:39 -0600
committerTom Tromey <tromey@adacore.com>2022-07-18 08:49:55 -0600
commit8f7f9b3a9142eeea50054b83e9bce12056bae6c9 (patch)
tree57131ab1a2db760f8d6e56bbb04cfd02cc8ae361 /gdb/top.h
parentbbcab3366bc5269c2896e82ebd1b0f068ec9a50b (diff)
downloadgdb-8f7f9b3a9142eeea50054b83e9bce12056bae6c9.zip
gdb-8f7f9b3a9142eeea50054b83e9bce12056bae6c9.tar.gz
gdb-8f7f9b3a9142eeea50054b83e9bce12056bae6c9.tar.bz2
Remove ui_register_input_event_handler
This patch removes ui_register_input_event_handler and ui_unregister_input_event_handler, replacing them with methods on 'ui'. It also changes gdb to use these methods everywhere, rather than sometimes reaching in to the ui to manage the file descriptor directly.
Diffstat (limited to 'gdb/top.h')
-rw-r--r--gdb/top.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/top.h b/gdb/top.h
index b26209e..18c49cc 100644
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -148,6 +148,12 @@ struct ui
/* The current ui_out. */
struct ui_out *m_current_uiout;
+
+ /* Register the UI's input file descriptor in the event loop. */
+ void register_file_handler ();
+
+ /* Unregister the UI's input file descriptor from the event loop. */
+ void unregister_file_handler ();
};
/* The main UI. This is the UI that is bound to stdin/stdout/stderr.
@@ -211,12 +217,6 @@ ui_range all_uis ()
return ui_range (ui_list);
}
-/* Register the UI's input file descriptor in the event loop. */
-extern void ui_register_input_event_handler (struct ui *ui);
-
-/* Unregister the UI's input file descriptor from the event loop. */
-extern void ui_unregister_input_event_handler (struct ui *ui);
-
/* From top.c. */
extern bool confirm;
extern int inhibit_gdbinit;