]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Have DAP handle non-Value results from 'children'
authorTom Tromey <tromey@adacore.com>
Fri, 6 Oct 2023 13:42:00 +0000 (07:42 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 16 Oct 2023 15:40:11 +0000 (09:40 -0600)
commit41ab08f84b926ea4d1b6ff242734f166e5f9f6fc
treed13f53367c78bbde49342d7051abeb511286b6c7
parentee81567c7cdf6aaae4b565c2afc3d4b798717177
Have DAP handle non-Value results from 'children'

A pretty-printer's 'children' method may return values other than a
gdb.Value -- it may return any value that can be converted to a
gdb.Value.

I noticed that this case did not work for DAP.  This patch fixes the
problem.
gdb/python/lib/gdb/dap/varref.py
gdb/testsuite/gdb.dap/children.exp [new file with mode: 0644]
gdb/testsuite/gdb.dap/children.py [new file with mode: 0644]