From 58b19776a6713e101fb71fab79ea70fa9af19e3a Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Fri, 2 Aug 2013 10:31:40 +0000 Subject: [PATCH] Remove duplicate call to add_file_handler. http://sourceware.org/ml/gdb-patches/2013-08/msg00067.html This call to add_file_handler is a duplicate of one that is in gdb_setup_readline that is always executed. gdb/ChangeLog * mi/mi-interp.c (mi_interpreter_resume): Remove call to add_file_handler. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-interp.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0888348..4e39273 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-08-02 Andrew Burgess + + * mi/mi-interp.c (mi_interpreter_resume): Remove call to + add_file_handler. + 2013-08-01 Doug Evans PR symtab/15691 diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 2702f4f..e370a57 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -169,7 +169,6 @@ mi_interpreter_resume (void *data) _intialize_event_loop. */ call_readline = gdb_readline2; input_handler = mi_execute_command_input_handler; - add_file_handler (input_fd, stdin_event_handler, 0); async_command_editing_p = 0; /* FIXME: This is a total hack for now. PB's use of the MI implicitly relies on a bug in the async support which allows -- 2.7.4