Add thread exited event
authorSimon Farre <simon.farre.cx@gmail.com>
Mon, 5 Jun 2023 12:56:54 +0000 (14:56 +0200)
committerSimon Farre <simon.farre.cx@gmail.com>
Tue, 1 Aug 2023 16:14:59 +0000 (18:14 +0200)
commita18b53a8f68bc4fde9bd64b553f4ea500b30c626
treeae7c34876f12828f1111c22ab15cef8d925b0dd5
parentb99a9693430a9f04165b1b868f890b622bb1b46c
Add thread exited event

Reports a thread exit according to the DAP spec:
https://microsoft.github.io/debug-adapter-protocol/specification#Events_Thread

This patch requires the ThreadExitedEvent to be checked in,
in order to work. That patch is found here https://sourceware.org/pipermail/gdb-patches/2023-June/200071.html

Formatted correctly using black

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30474

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/lib/gdb/dap/events.py