]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
DAP: accept requests with '"arguments": null'
authorRonan Desplanques <desplanques@adacore.com>
Mon, 1 Dec 2025 14:27:37 +0000 (15:27 +0100)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Dec 2025 14:28:10 +0000 (07:28 -0700)
commitd00a99716d3f3a402346261e9587d38372da32af
treee2c7e12729fe0dd69c7ff04afe84360d34928730
parent60a614d2a56dff3c70bde93a93121ea52338b678
DAP: accept requests with '"arguments": null'

Some Debug Adapter Protocol clients like Helix set the optional
"arguments" field of the ConfigurationDone request to null, which is a
bit odd but seems to be allowed by the protocol specification. Before
this patch, Python exceptions would be raised on such requests. This
patch makes it so these requests are treated as if the "arguments"
field was absent.
gdb/python/lib/gdb/dap/server.py