Remove duplicate call to add_file_handler.
authorAndrew Burgess <aburgess@broadcom.com>
Fri, 2 Aug 2013 10:31:40 +0000 (10:31 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Fri, 2 Aug 2013 10:31:40 +0000 (10:31 +0000)
  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
gdb/mi/mi-interp.c

index 0888348..4e39273 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
+
+       * mi/mi-interp.c (mi_interpreter_resume): Remove call to
+       add_file_handler.
+
 2013-08-01  Doug Evans  <dje@google.com>
 
        PR symtab/15691
index 2702f4f..e370a57 100644 (file)
@@ -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