Make GDB wait for events after handling target File-I/O