gdb/
[binutils-gdb.git] / gdb / event-loop.c
index 735d0f6f9a7fcdf304ddece1b5e4e539ba9acba6..e8cba5d0ac0b57969af09c3432c8576b016c3254 100644 (file)
 #include "gdb_assert.h"
 #include "gdb_select.h"
 
+/* Tell create_file_handler what events we are interested in. 
+   This is used by the select version of the event loop. */
+
+#define GDB_READABLE   (1<<1)
+#define GDB_WRITABLE   (1<<2)
+#define GDB_EXCEPTION  (1<<3)
+
 /* Data point to pass to the event handler.  */
 typedef union event_data
 {
@@ -858,8 +865,8 @@ gdb_wait_for_event (int block)
   else
     {
       struct timeval select_timeout;
-
       struct timeval *timeout_p;
+
       if (block)
        timeout_p = gdb_notifier.timeout_valid
          ? &gdb_notifier.select_timeout : NULL;