Actually set m_is_async to current async mode
authorHannes Domani <ssbssa@yahoo.de>
Mon, 28 Nov 2022 18:43:06 +0000 (19:43 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Mon, 28 Nov 2022 19:46:01 +0000 (20:46 +0100)
Looks like this was missed in the async mode implementation.

gdb/windows-nat.c

index 6da6757acaf6220dacd65cdc1e39fc902e5d1013..e2d2176f138ab406ea75efa4c459394c13c38784 100644 (file)
@@ -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