Add "args" and "env" parameters to DAP launch request
authorTom Tromey <tromey@adacore.com>
Mon, 1 May 2023 19:59:20 +0000 (13:59 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 24 May 2023 12:16:10 +0000 (06:16 -0600)
commitea33730dfa4b2e639f99bb4c1f4f8f073ef5b937
treea96066576965da75c02e23c09fb043b3207cd7ed
parent3153113252f3b949a159439a17e88af8ff0dce30
Add "args" and "env" parameters to DAP launch request

This patch augments the DAP launch request with some optional new
parameters that let the client control the command-line arguments and
the environment of the inferior.

Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/doc/gdb.texinfo
gdb/python/lib/gdb/dap/launch.py
gdb/testsuite/gdb.dap/args-env.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/args-env.exp [new file with mode: 0644]
gdb/testsuite/lib/dap-support.exp