]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Return global scope from DAP scopes request
authorTom Tromey <tromey@adacore.com>
Thu, 16 May 2024 13:58:07 +0000 (07:58 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 4 Jun 2024 17:12:42 +0000 (11:12 -0600)
commitd856ef4fc2b09d88bf66e59badde9b4c884de811
treea01cf0aa80ba5cf7c91f4af8a7dc83904917c05e
parent4dd38c398331c2fdb8bfc7ffd78d836bae0d9303
Return global scope from DAP scopes request

A co-worker requested that the DAP code emit a scope for global
variables.  It's not really practical to do this for all globals, but
it seemed reasonable to do this for globals coming from the frame's
compilation unit.  For Ada in particular, this is convenient as it
exposes package-scoped variables.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/NEWS
gdb/data-directory/Makefile.in
gdb/python/lib/gdb/dap/globalvars.py [new file with mode: 0644]
gdb/python/lib/gdb/dap/scopes.py
gdb/testsuite/gdb.dap/ptrref.exp
gdb/testsuite/gdb.dap/rust-slices.exp