gdbsupport: make gdb_open_cloexec return scoped_fd
[binutils-gdb.git] / gdb / inf-loop.c
index 9f038b3d85a349e0f77cb8f03dee9f9daab629db..dc3ffbb27f3b115e1e3ad80412b8c04949cdc07a 100644 (file)
@@ -26,7 +26,6 @@
 #include "remote.h"
 #include "language.h"
 #include "gdbthread.h"
-#include "continuations.h"
 #include "interps.h"
 #include "top.h"
 #include "observable.h"
@@ -55,7 +54,7 @@ inferior_event_handler (enum inferior_event_type event_type)
       /* Do all continuations associated with the whole inferior (not
         a particular thread).  */
       if (inferior_ptid != null_ptid)
-       do_all_inferior_continuations (0);
+       current_inferior ()->do_all_continuations ();
 
       /* When running a command list (from a user command, say), these
         are only run when the command list is all done.  */