event-loop.c (gdb_wait_for_event): Move statement into if block.
authorMichael Snyder <msnyder@vmware.com>
Thu, 16 Aug 2007 14:51:22 +0000 (14:51 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 16 Aug 2007 14:51:22 +0000 (14:51 +0000)
gdb/ChangeLog
gdb/event-loop.c

index 9869828da3970617690e03516637dba206262e0e..43428c135177f8da9985965f4b35494105fa8e63 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-16  Michael Snyder  <msnyder@access-company.com>
+
+        * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
+
 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
             Joel Brobecker  <brobecker@adacore.com>
 
index 2c71de3499992845cc26e37dd0a8ca492400c8bb..e28de9a39d993828e8c7a0a5178d067272858891 100644 (file)
@@ -825,9 +825,8 @@ gdb_wait_for_event (void)
                  file_event_ptr = create_file_event (file_ptr->fd);
                  async_queue_event (file_event_ptr, TAIL);
                }
+             file_ptr->ready_mask = (gdb_notifier.poll_fds + i)->revents;
            }
-
-         file_ptr->ready_mask = (gdb_notifier.poll_fds + i)->revents;
        }
 #else
       internal_error (__FILE__, __LINE__,