[PATCH v2 0/7] Reimplement DAP backtrace using frame filters

Tom Tromey tromey@adacore.com
Thu Jun 22 16:19:26 GMT 2023


This series reimplements DAP backtraces using frame filters.  This
seemed nice to have, because it would present users with a friendlier
view into the stack.  It also turned out to simplify the code a bit.

---
Changes in v2:
- Removed is_constant check from FrameVars
- Added patch to strip typedefs
- Added Ada scopes test case
- Link to v1: https://inbox.sourceware.org/gdb-patches/20230614-dap-frame-decor-v1-0-af87db6467b2@adacore.com

---
Tom Tromey (7):
      Fix execute_frame_filters doc string
      Add new interface to frame filter iteration
      Fix oversights in frame decorator code
      Simplify FrameVars
      Reimplement DAP stack traces using frame filters
      Handle typedefs in no-op pretty printers
      Add Ada scope test for DAP

 gdb/python/lib/gdb/FrameDecorator.py      | 44 ++++++----------
 gdb/python/lib/gdb/dap/bt.py              | 81 +++++++++++++----------------
 gdb/python/lib/gdb/dap/evaluate.py        | 11 ++--
 gdb/python/lib/gdb/dap/frames.py          |  7 +++
 gdb/python/lib/gdb/dap/scopes.py          | 83 ++++++++++++------------------
 gdb/python/lib/gdb/frames.py              | 83 +++++++++++++++++++++---------
 gdb/python/lib/gdb/printing.py            | 23 +++++----
 gdb/testsuite/gdb.dap/ada-scopes.exp      | 84 +++++++++++++++++++++++++++++++
 gdb/testsuite/gdb.dap/ada-scopes/pack.adb | 23 +++++++++
 gdb/testsuite/gdb.dap/ada-scopes/pack.ads | 21 ++++++++
 gdb/testsuite/gdb.dap/ada-scopes/prog.adb | 26 ++++++++++
 gdb/testsuite/gdb.dap/scopes.c            |  6 +--
 12 files changed, 321 insertions(+), 171 deletions(-)
---
base-commit: d8a001f57016eff05977e9699c7aabdf4302c71b
change-id: 20230614-dap-frame-decor-5cccd7f34dd3

Best regards,
-- 
Tom Tromey <tromey@adacore.com>



More information about the Gdb-patches mailing list