diff options
Diffstat (limited to 'gdb/python')
| -rw-r--r-- | gdb/python/lib/gdb/dap/server.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/dap/server.py b/gdb/python/lib/gdb/dap/server.py index 98a8084..bc56a72 100644 --- a/gdb/python/lib/gdb/dap/server.py +++ b/gdb/python/lib/gdb/dap/server.py @@ -312,7 +312,15 @@ class Server: } if "arguments" in params: - args = params["arguments"] + # Since the "arguments" field is optional, setting it to + # null is an odd thing to do when one could simply omit it + # entirely. But some clients do just that for some + # requests (e.g. Helix for ConfigurationDone), so we + # accommodate this case. + if params["arguments"] is None: + args = {} + else: + args = params["arguments"] else: args = {} |
