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, 13 Nov 2023 14:16:10 +0000 (14:16 +0000)
commit00b0dc819d1aac88ee45b18fdb05337e01a2df67
tree55ae956f21ac609e8a6b74abdac218aa11eb6ec4
parent6bd50ebd29883ac003fc936a5730ca55364f34e7
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_THREAD_OPTION_EXIT
QThreadOptions option added in the next patch.

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