]> 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, 12 Dec 2022 19:04:15 +0000 (19:04 +0000)
commit925d3dc8a1b2eecab82bbcaffbf9b4c86883b17f
treed889ebc2d7fb0210bfe8781370caa8e88b3af8f0
parentf072ced7478ccaec859f92d382e06fe41d84423f
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