diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:33:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:47:58 -0600 |
commit | 65bafd5b156bcb4f308f304e55a03e13f4eb2bed (patch) | |
tree | 3107d5662dc2b243e0a142a5b2d6082cb33131ea /gdbserver | |
parent | 0a4afda3c63687cc5cbbdae78850ee66967cd648 (diff) | |
download | fsf-binutils-gdb-65bafd5b156bcb4f308f304e55a03e13f4eb2bed.zip fsf-binutils-gdb-65bafd5b156bcb4f308f304e55a03e13f4eb2bed.tar.gz fsf-binutils-gdb-65bafd5b156bcb4f308f304e55a03e13f4eb2bed.tar.bz2 |
Call CloseHandle from ~windows_thread_info
Add a destructor to windows_thread_info that calls CloseHandle.
gdb/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* nat/windows-nat.h (struct windows_thread_info): Declare
destructor.
* nat/windows-nat.c (~windows_thread_info): New.
gdbserver/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* win32-low.c (delete_thread_info): Don't call CloseHandle.
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdbserver/win32-low.cc | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 29d1760..e727413 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-low.c (delete_thread_info): Don't call CloseHandle. + +2020-04-08 Tom Tromey <tromey@adacore.com> + * win32-low.c (win32_require_context, suspend_one_thread): Use windows_thread_info::suspend. (continue_one_thread): Use windows_thread_info::resume. diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 7cad640..c642d47 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -218,7 +218,6 @@ delete_thread_info (thread_info *thread) windows_thread_info *th = (windows_thread_info *) thread_target_data (thread); remove_thread (thread); - CloseHandle (th->h); delete th; } |