brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · 339a64f Raw
93 lines · plain
1include "llvm/Option/OptParser.td"2 3class F<string name>: Flag<["--", "-"], name>;4class S<string name>: Separate<["--", "-"], name>;5class R<list<string> prefixes, string name>6  : Option<prefixes, name, KIND_REMAINING_ARGS>;7 8def help: F<"help">,9  HelpText<"Prints out the usage information for the lldb-dap tool.">;10def: Flag<["-"], "h">,11  Alias<help>,12  HelpText<"Alias for --help">;13 14def version: F<"version">,15  HelpText<"Prints out the lldb-dap version.">;16def: Flag<["-"], "v">,17  Alias<version>,18  HelpText<"Alias for --version">;19 20def wait_for_debugger: F<"wait-for-debugger">,21  HelpText<"Pause the program at startup.">;22def: Flag<["-"], "g">,23  Alias<wait_for_debugger>,24  HelpText<"Alias for --wait-for-debugger">;25 26def connection27    : S<"connection">,28      MetaVarName<"<connection>">,29      HelpText<30          "Communicate with the lldb-dap tool over the specified connection. "31          "Connections are specified like 'listen://[host]:port' or "32          "'accept:///path'.">;33 34def launch_target: S<"launch-target">,35  MetaVarName<"<target>">,36  HelpText<"Launch a target for the launchInTerminal request. Any argument "37    "provided after this one will be passed to the target. The parameter "38    "--comm-file must also be specified.">;39 40def comm_file: S<"comm-file">,41  MetaVarName<"<file>">,42  HelpText<"The fifo file used to communicate the with the debug adapter "43    "when using --launch-target.">;44 45def debugger_pid: S<"debugger-pid">,46  MetaVarName<"<pid>">,47  HelpText<"The PID of the lldb-dap instance that sent the launchInTerminal "48    "request when using --launch-target.">;49 50def stdio: S<"stdio">,51  MetaVarName<"<stdin:stdout:stderr:...>">,52  HelpText<"An array of file paths for redirecting the program's standard IO "53    "streams. A colon-separated list of entries. Empty value means no "54    "redirection.">;55 56def repl_mode57    : S<"repl-mode">,58      MetaVarName<"<mode>">,59      HelpText<60          "The mode for handling repl evaluation requests, supported modes: "61          "variable, command, auto.">;62 63def pre_init_command: S<"pre-init-command">,64  MetaVarName<"<command>">,65  HelpText<"A command to execute before the DAP initialization request and "66    "right after a Debugger has been created.">;67def: Separate<["-"], "c">,68  Alias<pre_init_command>,69  HelpText<"Alias for --pre-init-command">;70 71def no_lldbinit: F<"no-lldbinit">,72  HelpText<"Do not automatically parse any '.lldbinit' files.">;73def: Flag<["-"], "x">,74  Alias<no_lldbinit>,75  HelpText<"Alias for --no-lldbinit">;76 77def connection_timeout: S<"connection-timeout">,78  MetaVarName<"<timeout>">,79  HelpText<"When using --connection, the number of seconds to wait for new "80    "connections after the server has started and after all clients have "81    "disconnected. Each new connection will reset the timeout. When the "82    "timeout is reached, the server will be closed and the process will exit. "83    "Not specifying this argument or specifying non-positive values will "84    "cause the server to wait for new connections indefinitely.">;85 86def client87    : S<"client">,88      MetaVarName<"<client>">,89      HelpText<90          "Use lldb-dap as a launcher for a curated number of DAP client.">;91 92def REM : R<["--"], "">;93