]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove readline hack from gdb_select
authorTom Tromey <tom@tromey.com>
Sun, 4 Aug 2019 23:39:27 +0000 (17:39 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 12 Aug 2019 16:57:56 +0000 (10:57 -0600)
As discussed on gdb-patches, this removes the readline hack from the
mingw-hdep.c version of gdb_select.  It's believed that this is not
needed any more.  See:

    https://sourceware.org/ml/gdb-patches/2019-03/msg00465.html

gdb/ChangeLog
2019-08-12  Tom Tromey  <tom@tromey.com>

* mingw-hdep.c (gdb_select): Remove readline hack.

gdb/ChangeLog
gdb/mingw-hdep.c

index 400878332abb8b55816ef8c0c9da2aa223a6ccc3..e13415518fc8a033324a9495a3c4614206169ddd 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-12  Tom Tromey  <tom@tromey.com>
+
+       * mingw-hdep.c (gdb_select): Remove readline hack.
+
 2019-08-09  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * blockframe.c (find_pc_partial_function): Set *block to nullptr
index 8ed4b44ddce145c1cd567005f6183fdad26edad9..44fb22e9a161b1bceaaf2bf3b2de368acfe3a3a7 100644 (file)
@@ -23,7 +23,6 @@
 #include "event-loop.h"
 
 #include "gdb_select.h"
-#include "readline/readline.h"
 
 #include <windows.h>
 
@@ -167,14 +166,6 @@ gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
        }
     }
 
-  /* With multi-threaded SIGINT handling, there is a race between the
-     readline signal handler and GDB.  It may still be in
-     rl_prep_terminal in another thread.  Do not return until it is
-     done; we can check the state here because we never longjmp from
-     signal handlers on Windows.  */
-  while (RL_ISSTATE (RL_STATE_SIGHANDLER))
-    Sleep (1);
-
   return num_ready;
 }