[0/3] Simplify DAP stop reason emission

Message ID 20231114-py-stop-reason-v1-0-4ff440c956a9@adacore.com
Headers
Series Simplify DAP stop reason emission |

Message

Tom Tromey Nov. 14, 2023, 6:44 p.m. UTC
  This patch changes the DAP stop-reason emission to be simpler (on the
DAP side) and also more reliable.  Rather than guessing that a stop
occurred because a "step" finished, the DAP code now relies on gdb's
own knowledge of this.

---
Tom Tromey (3):
      Move py_ui_out to a new header
      Emit stop reason details in Python stop events
      Simplify DAP stop-reason code

 gdb/NEWS                         |   4 +
 gdb/doc/python.texi              |  11 +++
 gdb/python/lib/gdb/dap/events.py |  79 ++++++++++++--------
 gdb/python/lib/gdb/dap/launch.py |   4 +-
 gdb/python/lib/gdb/dap/next.py   |  10 +--
 gdb/python/lib/gdb/dap/pause.py  |   4 +-
 gdb/python/py-bpevent.c          |   5 +-
 gdb/python/py-mi.c               | 131 +--------------------------------
 gdb/python/py-signalevent.c      |   5 +-
 gdb/python/py-stopevent.c        |  65 +++++++++++++++--
 gdb/python/py-stopevent.h        |   9 ++-
 gdb/python/py-uiout.h            | 153 +++++++++++++++++++++++++++++++++++++++
 12 files changed, 299 insertions(+), 181 deletions(-)
---
base-commit: c748dbd95bf3305539956053c2a25ecea7b442a5
change-id: 20231114-py-stop-reason-3f141487d90e

Best regards,
  

Comments

Tom Tromey Dec. 11, 2023, 6:42 p.m. UTC | #1
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> This patch changes the DAP stop-reason emission to be simpler (on the
Tom> DAP side) and also more reliable.  Rather than guessing that a stop
Tom> occurred because a "step" finished, the DAP code now relies on gdb's
Tom> own knowledge of this.

I rebased this, which required a bit of fixing in events.py.
I'm going to check it in now.

Tom