]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix DAP failure when fetching global variables
authorTom Tromey <tromey@adacore.com>
Thu, 15 Aug 2024 18:06:31 +0000 (12:06 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 16 Aug 2024 14:47:00 +0000 (08:47 -0600)
commit807f697b176d6c635643118202f36e572872007f
treec99e5594a410b757943dbebcf58674c3ec6c8bfc
parent798bb5cc53edfa13673038b7d76ff09dadfaacb5
Fix DAP failure when fetching global variables

The relatively new "globals" scope code in DAP has a fairly obvious
bug -- the fetch_one_child method should return a tuple with two
elements, but instead just returns the variable's value.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32029
Reviewed-By: Tom de Vries <tdevries@suse.de>
gdb/python/lib/gdb/dap/globalvars.py
gdb/testsuite/gdb.dap/global.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/global.exp [new file with mode: 0644]