]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
all-stop/synchronous RSP support thread-exit events
authorPedro Alves <pedro@palves.net>
Mon, 4 Apr 2022 20:12:03 +0000 (21:12 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 18 Jul 2022 16:33:31 +0000 (17:33 +0100)
commitb9ce2850e5c0cd6624a00e2fd7dae8041f04089e
tree4e8fa827e4fe93b9bcb80e3dbf70e78e2abc0893
parentdcab494170b9c6d79a08f1a50a0ce38649ddc2eb
all-stop/synchronous RSP support thread-exit events

Currently, GDB does not understand the THREAD_EXITED stop reply in
remote all-stop mode.  There's no good reason for this, it just
happened that THREAD_EXITED was only ever reported in non-stop mode so
far.  This patch teaches GDB to parse that event in all-stop RSP too.
There is no need to add a qSupported feature for this, because the
server won't send a THREAD_EXITED event unless GDB explicitly asks for
it, with QThreadEvents, or with the GDB_TO_EXIT QThreadOptions option
added in the next patch.

Change-Id: Ide5d12391adf432779fe4c79526801c4a5630966
gdb/remote.c
gdbserver/server.cc