diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 6da6757acaf..e2d2176f138 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -427,6 +427,8 @@ windows_nat_target::async (bool enable) nullptr, "windows_nat_target"); else delete_file_handler (async_wait_fd ()); + + m_is_async = enable; } /* A wrapper for WaitForSingleObject that issues a warning if