diff options
author | Tom Tromey <tromey@adacore.com> | 2023-05-01 13:59:20 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-24 06:16:10 -0600 |
commit | ea33730dfa4b2e639f99bb4c1f4f8f073ef5b937 (patch) | |
tree | a96066576965da75c02e23c09fb043b3207cd7ed /gdb/doc | |
parent | 3153113252f3b949a159439a17e88af8ff0dce30 (diff) | |
download | gdb-ea33730dfa4b2e639f99bb4c1f4f8f073ef5b937.zip gdb-ea33730dfa4b2e639f99bb4c1f4f8f073ef5b937.tar.gz gdb-ea33730dfa4b2e639f99bb4c1f4f8f073ef5b937.tar.bz2 |
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>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index f23bcc5..851835c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -38998,10 +38998,21 @@ Generally, @value{GDBN} implements the Debugger Adapter Protocol as written. However, in some cases, extensions are either needed or even expected. -@value{GDBN} defines a parameter that can be passed to the +@value{GDBN} defines some parameters that can be passed to the @code{launch} request: @table @code +@item args +If provided, this should be an array of strings. These strings are +provided as command-line arguments to the inferior, as if by +@code{set args}. @xref{Arguments}. + +@item env +If provided, this should be an object. Each key of the object will be +used as the name of an environment variable; each value must be a +string and will be the value of that variable. The environment of the +inferior will be set to exactly as passed in. @xref{Environment}. + @item program If provided, this is a string that specifies the program to use. This corresponds to the @code{file} command. @xref{Files}. |