diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-06 06:56:11 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-05 13:55:59 -0600 |
commit | 28b59491b896a0d0af2946533a1e8f122acda408 (patch) | |
tree | 4ae902031025672ab79876a4699ac3c5272e5f85 /gdb/testsuite/gdb.dap/scopes.c | |
parent | 100c7a99a5d4c30bb73d49a65eb45d1039646eaa (diff) | |
download | binutils-28b59491b896a0d0af2946533a1e8f122acda408.zip binutils-28b59491b896a0d0af2946533a1e8f122acda408.tar.gz binutils-28b59491b896a0d0af2946533a1e8f122acda408.tar.bz2 |
Filter out types from DAP scopes request
The DAP scopes request examines the symbols in a block tree, but
neglects to omit types. This patch fixes the problem.
Diffstat (limited to 'gdb/testsuite/gdb.dap/scopes.c')
-rw-r--r-- | gdb/testsuite/gdb.dap/scopes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.dap/scopes.c b/gdb/testsuite/gdb.dap/scopes.c index 7b35036..ce87db1 100644 --- a/gdb/testsuite/gdb.dap/scopes.c +++ b/gdb/testsuite/gdb.dap/scopes.c @@ -15,14 +15,14 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -struct dei_struct -{ - int x; - int more[5]; -}; - int main () { + struct dei_struct + { + int x; + int more[5]; + }; + struct dei_struct dei = { 2, { 3, 5, 7, 11, 13 } }; static int scalar = 23; |