Don't close process handle provided by WaitForDebugEvent
authorHannes Domani <ssbssa@yahoo.de>
Sun, 24 May 2020 22:18:25 +0000 (00:18 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Wed, 27 May 2020 17:20:01 +0000 (19:20 +0200)
commit6479bf854a468c0270bb0fcdc9d0271cca3eb5b5
tree653c599a9ba675c34edcc46c90fdc8cdd97ada4e
parentac637ec30dd9a3b19a02d1967a80e4ddf739706e
Don't close process handle provided by WaitForDebugEvent

Only the process handle returned by OpenProcess or CreateProcess needs to
be closed, the one provided by WaitForDebugEvent is closed automatically.

gdbserver/ChangeLog:

2020-05-27  Hannes Domani  <ssbssa@yahoo.de>

* win32-low.cc (do_initial_child_stuff): Set open_process_used.
(win32_clear_inferiors): Use open_process_used.
(get_child_debug_event): Likewise.
gdbserver/ChangeLog
gdbserver/win32-low.cc