[3/4] Actually set m_is_async to current async mode

Message ID 20221128191224.1411-3-ssbssa@yahoo.de
State Committed
Commit 0d146c1c5fd1ae18b0e0d5a1ace066f41639a48f
Headers
Series [1/4] Fix calling convention of thread entry point |

Commit Message

Hannes Domani Nov. 28, 2022, 7:12 p.m. UTC
  Looks like this was missed in the async mode implementation.
---
 gdb/windows-nat.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Tom Tromey Nov. 28, 2022, 7:26 p.m. UTC | #1
>>>>> "Hannes" == Hannes Domani via Gdb-patches <gdb-patches@sourceware.org> writes:

Hannes> Looks like this was missed in the async mode implementation.

Yikes, that's a bad oversight.  Sorry about this.

The patch is ok.

Tom
  

Patch

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