Implement DAP variables, scopes, and evaluate requests
authorTom Tromey <tromey@adacore.com>
Mon, 13 Feb 2023 16:56:58 +0000 (09:56 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 14 Mar 2023 15:09:23 +0000 (09:09 -0600)
commit8900a92ead1c4f94216b95eb5f76aafdf74a94a0
tree439376c5c7cafcab586273c2c7d0e22edd8427b1
parentd0aa28e155baf16ec37afdf0193c3d58816c1927
Implement DAP variables, scopes, and evaluate requests

The DAP code already claimed to implement "scopes" and "evaluate", but
this wasn't done completely correctly.  This patch implements these
and also implements the "variables" request.

After this patch, variables and scopes correctly report their
sub-structure.  This also interfaces with the gdb pretty-printer API,
so the output of pretty-printers is available.
gdb/data-directory/Makefile.in
gdb/python/lib/gdb/dap/evaluate.py
gdb/python/lib/gdb/dap/scopes.py
gdb/python/lib/gdb/dap/varref.py [new file with mode: 0644]
gdb/python/lib/gdb/printing.py
gdb/testsuite/gdb.dap/scopes.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/scopes.exp [new file with mode: 0644]