Add Ada scope test for DAP
authorTom Tromey <tromey@adacore.com>
Thu, 22 Jun 2023 15:17:26 +0000 (09:17 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 10 Jul 2023 19:17:31 +0000 (13:17 -0600)
commit405a9dd06417a9272442b8818a867f6c008b7a48
tree14f2b23dc051ff484a27f0bfbe0a113898dd88e7
parentc38bda5104e0011b1255752bec63cb4ffd76449d
Add Ada scope test for DAP

This adds a DAP test for fetching scopes and variables with an Ada
program.  This test is the reason that the FrameVars code does not
check is_constant on the symbols it returns.

Note that this test also shows that string-printing is incorrect in
Ada.  This is a known bug but I'm still considering how to fix it.
gdb/testsuite/gdb.dap/ada-scopes.exp [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-scopes/pack.adb [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-scopes/pack.ads [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-scopes/prog.adb [new file with mode: 0644]