]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbserver/win32: fix crash on detach
authorStefano Moioli <smxdev4@gmail.com>
Wed, 6 Dec 2023 00:42:19 +0000 (01:42 +0100)
committerTom Tromey <tromey@adacore.com>
Tue, 12 Dec 2023 20:19:30 +0000 (13:19 -0700)
commitfa659800b009df1f0bdb0c5d24eec047fb9c3fa0
tree5f142b6b11bffbe7aa478c938de8e1dcab0d6fdc
parent80ffe7226459e3edf840d0c23462d93cb560d2de
gdbserver/win32: fix crash on detach

this patch fixes a crash in gdbserver whenever a process is detached.
the crash is caused by `detach` calling `remove_process` before `win32_clear_inferiors`

error message:

Detaching from process 184
../../gdbserver/inferiors.cc:160: A problem internal to GDBserver has been detec
ted.
remove_process: Assertion `find_thread_process (process) == NULL' failed.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Approved-By: Tom Tromey <tom@tromey.com>
gdbserver/win32-low.cc