aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
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/utils.c
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/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 413a4f4..5503acf 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -799,7 +799,7 @@ public:
m_ui (NULL)
{
target_terminal::ours ();
- ui_register_input_event_handler (current_ui);
+ current_ui->register_file_handler ();
if (current_ui->prompt_state == PROMPT_BLOCKED)
m_ui = current_ui;
}
@@ -807,7 +807,7 @@ public:
~scoped_input_handler ()
{
if (m_ui != NULL)
- ui_unregister_input_event_handler (m_ui);
+ m_ui->unregister_file_handler ();
}
DISABLE_COPY_AND_ASSIGN (scoped_input_handler);