include "llvm/Option/OptParser.td" class F: Flag<["--", "-"], name>; class S: Separate<["--", "-"], name>; class R prefixes, string name> : Option; // Please keep this in sync with the man page in docs/man/lldb.rst // Attaching options. def grp_attach : OptionGroup<"attaching">, HelpText<"ATTACHING">; def attach_name: Separate<["--", "-"], "attach-name">, MetaVarName<"">, HelpText<"Tells the debugger to attach to a process with the given name.">, Group; def: Separate<["-"], "n">, Alias, HelpText<"Alias for --attach-name">, Group; def wait_for: F<"wait-for">, HelpText<"Tells the debugger to wait for a process with the given pid or name to launch before attaching.">, Group; def: Flag<["-"], "w">, Alias, HelpText<"Alias for --wait-for">, Group; def attach_pid: Separate<["--", "-"], "attach-pid">, MetaVarName<"">, HelpText<"Tells the debugger to attach to a process with the given pid.">, Group; def: Separate<["-"], "p">, Alias, HelpText<"Alias for --attach-pid">, Group; // Scripting options. def grp_scripting : OptionGroup<"scripting">, HelpText<"SCRIPTING">; def python_path: F<"python-path">, HelpText<"Prints out the path to the lldb.py file for this version of lldb.">, Group; def: Flag<["-"], "P">, Alias, HelpText<"Alias for --python-path">, Group; def print_script_interpreter_info: F<"print-script-interpreter-info">, HelpText<"Prints out a json dictionary with information about the scripting language interpreter.">, Group; def script_language: Separate<["--", "-"], "script-language">, MetaVarName<"">, HelpText<"Tells the debugger to use the specified scripting language for user-defined scripts.">, Group; def: Separate<["-"], "l">, Alias, HelpText<"Alias for --script-language">, Group; // Repl options. def grp_repl : OptionGroup<"repl">, HelpText<"REPL">; def repl: Flag<["--", "-"], "repl">, HelpText<"Runs lldb in REPL mode with a stub process.">, Group; def: Flag<["-"], "r">, Alias, HelpText<"Alias for --repl">, Group; def repl_: Joined<["--", "-"], "repl=">, MetaVarName<"">, HelpText<"Runs lldb in REPL mode with a stub process with the given flags.">, Group; def: Joined<["-"], "r=">, MetaVarName<"">, Alias, HelpText<"Alias for --repl=">, Group; def repl_language: Separate<["--", "-"], "repl-language">, MetaVarName<"">, HelpText<"Chooses the language for the REPL.">, Group; def: Separate<["-"], "R">, Alias, HelpText<"Alias for --repl-language">, Group; // Command options. def grp_command : OptionGroup<"command">, HelpText<"COMMANDS">; def no_lldbinit: F<"no-lldbinit">, HelpText<"Do not automatically parse any '.lldbinit' files.">, Group; def: Flag<["-"], "x">, Alias, HelpText<"Alias for --no-lldbinit">, Group; def local_lldbinit: F<"local-lldbinit">, HelpText<"Allow the debugger to parse the .lldbinit files in the current working directory, unless --no-lldbinit is passed.">, Group; def batch: F<"batch">, HelpText<"Tells the debugger to run the commands from -s, -S, -o & -O, and then quit.">, Group; def: Flag<["-"], "b">, Alias, HelpText<"Alias for --batch">, Group; def source_quietly: F<"source-quietly">, HelpText<"Tells the debugger not to echo commands while sourcing files or one-line commands provided on the command line.">, Group; def: Flag<["-"], "Q">, Alias, HelpText<"Alias for --source-quietly">, Group; def one_line_on_crash: Separate<["--", "-"], "one-line-on-crash">, MetaVarName<"">, HelpText<"When in batch mode, tells the debugger to run this one-line lldb command if the target crashes.">, Group; def: Separate<["-"], "k">, Alias, HelpText<"Alias for --one-line-on-crash">, Group; def source_on_crash: Separate<["--", "-"], "source-on-crash">, MetaVarName<"">, HelpText<"When in batch mode, tells the debugger to source this file of lldb commands if the target crashes.">, Group; def: Separate<["-"], "K">, Alias, HelpText<"Alias for --source-on-crash">, Group; def source: Separate<["--", "-"], "source">, MetaVarName<"">, HelpText<"Tells the debugger to read in and execute the lldb commands in the given file, after any file has been loaded.">, Group; def: Separate<["-"], "s">, Alias, HelpText<"Alias for --source">, Group; def source_before_file: Separate<["--", "-"], "source-before-file">, MetaVarName<"">, HelpText<"Tells the debugger to read in and execute the lldb commands in the given file, before any file has been loaded.">, Group; def: Separate<["-"], "S">, Alias, HelpText<"Alias for --source-before-file">, Group; def one_line: Separate<["--", "-"], "one-line">, MetaVarName<"">, HelpText<"Tells the debugger to execute this one-line lldb command after any file provided on the command line has been loaded.">, Group; def: Separate<["-"], "o">, Alias, HelpText<"Alias for --one-line">, Group; def one_line_before_file: Separate<["--", "-"], "one-line-before-file">, MetaVarName<"">, HelpText<"Tells the debugger to execute this one-line lldb command before any file provided on the command line has been loaded.">, Group; def: Separate<["-"], "O">, Alias, HelpText<"Alias for --one-line-before-file">, Group; // General options. def version: F<"version">, HelpText<"Prints out the current version number of the LLDB debugger.">; def: Flag<["-"], "v">, Alias, HelpText<"Alias for --version">; def help: F<"help">, HelpText<"Prints out the usage information for the LLDB debugger.">; def: Flag<["-"], "h">, Alias, HelpText<"Alias for --help">; def core: Separate<["--", "-"], "core">, MetaVarName<"">, HelpText<"Tells the debugger to use the full path to as the core file.">; def: Separate<["-"], "c">, Alias, HelpText<"Alias for --core">; def editor: F<"editor">, HelpText<"Tells the debugger to open source files using the host's \"external editor\" mechanism.">; def: Flag<["-"], "e">, Alias, HelpText<"Alias for --editor">; def no_use_colors: F<"no-use-colors">, HelpText<"Do not use colors.">; def: Flag<["-"], "X">, Alias, HelpText<"Alias for --no-use-color">; def file: Separate<["--", "-"], "file">, MetaVarName<"">, HelpText<"Tells the debugger to use the file as the program to be debugged.">; def: Separate<["-"], "f">, Alias, HelpText<"Alias for --file">; def arch: Separate<["--", "-"], "arch">, MetaVarName<"">, HelpText<"Tells the debugger to use the specified architecture when starting and running the program.">; def: Separate<["-"], "a">, Alias, HelpText<"Alias for --arch">; def debug: F<"debug">, HelpText<"Tells the debugger to print out extra information for debugging itself.">; def: Flag<["-"], "d">, Alias, HelpText<"Alias for --debug">; def REM : R<["--"], "">;