100eae5eaSJonas Devlieghereinclude "llvm/Option/OptParser.td" 200eae5eaSJonas Devlieghere 300eae5eaSJonas Devlieghereclass F<string name>: Flag<["--", "-"], name>; 400eae5eaSJonas Devlieghereclass S<string name>: Separate<["--", "-"], name>; 500eae5eaSJonas Devlieghereclass R<list<string> prefixes, string name> 600eae5eaSJonas Devlieghere : Option<prefixes, name, KIND_REMAINING_ARGS>; 700eae5eaSJonas Devlieghere 8bb775beeSJonas Devlieghere// Please keep this in sync with the man page in docs/man/lldb.rst 9bb775beeSJonas Devlieghere 1000eae5eaSJonas Devlieghere// Attaching options. 1100eae5eaSJonas Devliegheredef grp_attach : OptionGroup<"attaching">, HelpText<"ATTACHING">; 1200eae5eaSJonas Devlieghere 1300eae5eaSJonas Devliegheredef attach_name: Separate<["--", "-"], "attach-name">, 1400eae5eaSJonas Devlieghere MetaVarName<"<name>">, 1500eae5eaSJonas Devlieghere HelpText<"Tells the debugger to attach to a process with the given name.">, 1600eae5eaSJonas Devlieghere Group<grp_attach>; 1700eae5eaSJonas Devliegheredef: Separate<["-"], "n">, 1800eae5eaSJonas Devlieghere Alias<attach_name>, 1900eae5eaSJonas Devlieghere HelpText<"Alias for --attach-name">, 2000eae5eaSJonas Devlieghere Group<grp_attach>; 2100eae5eaSJonas Devlieghere 2200eae5eaSJonas Devliegheredef wait_for: F<"wait-for">, 2300eae5eaSJonas Devlieghere HelpText<"Tells the debugger to wait for a process with the given pid or name to launch before attaching.">, 2400eae5eaSJonas Devlieghere Group<grp_attach>; 2500eae5eaSJonas Devliegheredef: Flag<["-"], "w">, 2600eae5eaSJonas Devlieghere Alias<wait_for>, 2700eae5eaSJonas Devlieghere HelpText<"Alias for --wait-for">, 2800eae5eaSJonas Devlieghere Group<grp_attach>; 2900eae5eaSJonas Devlieghere 3000eae5eaSJonas Devliegheredef attach_pid: Separate<["--", "-"], "attach-pid">, 3100eae5eaSJonas Devlieghere MetaVarName<"<pid>">, 3200eae5eaSJonas Devlieghere HelpText<"Tells the debugger to attach to a process with the given pid.">, 3300eae5eaSJonas Devlieghere Group<grp_attach>; 3400eae5eaSJonas Devliegheredef: Separate<["-"], "p">, 3500eae5eaSJonas Devlieghere Alias<attach_pid>, 3600eae5eaSJonas Devlieghere HelpText<"Alias for --attach-pid">, 3700eae5eaSJonas Devlieghere Group<grp_attach>; 3800eae5eaSJonas Devlieghere 3900eae5eaSJonas Devlieghere 4000eae5eaSJonas Devlieghere// Scripting options. 4100eae5eaSJonas Devliegheredef grp_scripting : OptionGroup<"scripting">, HelpText<"SCRIPTING">; 4200eae5eaSJonas Devlieghere 4300eae5eaSJonas Devliegheredef python_path: F<"python-path">, 4400eae5eaSJonas Devlieghere HelpText<"Prints out the path to the lldb.py file for this version of lldb.">, 4500eae5eaSJonas Devlieghere Group<grp_scripting>; 4600eae5eaSJonas Devliegheredef: Flag<["-"], "P">, 4700eae5eaSJonas Devlieghere Alias<python_path>, 4800eae5eaSJonas Devlieghere HelpText<"Alias for --python-path">, 4900eae5eaSJonas Devlieghere Group<grp_scripting>; 5000eae5eaSJonas Devlieghere 51*bbef51ebSLawrence D'Annadef print_script_interpreter_info: F<"print-script-interpreter-info">, 52*bbef51ebSLawrence D'Anna HelpText<"Prints out a json dictionary with information about the scripting language interpreter.">, 53*bbef51ebSLawrence D'Anna Group<grp_scripting>; 54*bbef51ebSLawrence D'Anna 557e896277SJonas Devliegheredef script_language: Separate<["--", "-"], "script-language">, 567e896277SJonas Devlieghere MetaVarName<"<language>">, 5700eae5eaSJonas Devlieghere HelpText<"Tells the debugger to use the specified scripting language for user-defined scripts.">, 5800eae5eaSJonas Devlieghere Group<grp_scripting>; 5900eae5eaSJonas Devliegheredef: Separate<["-"], "l">, 6000eae5eaSJonas Devlieghere Alias<script_language>, 6100eae5eaSJonas Devlieghere HelpText<"Alias for --script-language">, 6200eae5eaSJonas Devlieghere Group<grp_scripting>; 6300eae5eaSJonas Devlieghere 6400eae5eaSJonas Devlieghere// Repl options. 6500eae5eaSJonas Devliegheredef grp_repl : OptionGroup<"repl">, HelpText<"REPL">; 6600eae5eaSJonas Devlieghere 677e896277SJonas Devliegheredef repl: Flag<["--", "-"], "repl">, 6800eae5eaSJonas Devlieghere HelpText<"Runs lldb in REPL mode with a stub process.">, 6900eae5eaSJonas Devlieghere Group<grp_repl>; 707e896277SJonas Devliegheredef: Flag<["-"], "r">, 7100eae5eaSJonas Devlieghere Alias<repl>, 7200eae5eaSJonas Devlieghere HelpText<"Alias for --repl">, 7300eae5eaSJonas Devlieghere Group<grp_repl>; 747e896277SJonas Devliegheredef repl_: Joined<["--", "-"], "repl=">, 757e896277SJonas Devlieghere MetaVarName<"<flags>">, 767e896277SJonas Devlieghere HelpText<"Runs lldb in REPL mode with a stub process with the given flags.">, 777e896277SJonas Devlieghere Group<grp_repl>; 787e896277SJonas Devliegheredef: Joined<["-"], "r=">, 797e896277SJonas Devlieghere MetaVarName<"<flags>">, 807e896277SJonas Devlieghere Alias<repl_>, 817e896277SJonas Devlieghere HelpText<"Alias for --repl=<flags>">, 827e896277SJonas Devlieghere Group<grp_repl>; 8300eae5eaSJonas Devlieghere 8400eae5eaSJonas Devliegheredef repl_language: Separate<["--", "-"], "repl-language">, 8500eae5eaSJonas Devlieghere MetaVarName<"<language>">, 8600eae5eaSJonas Devlieghere HelpText<"Chooses the language for the REPL.">, 8700eae5eaSJonas Devlieghere Group<grp_repl>; 8800eae5eaSJonas Devliegheredef: Separate<["-"], "R">, 8900eae5eaSJonas Devlieghere Alias<repl_language>, 9000eae5eaSJonas Devlieghere HelpText<"Alias for --repl-language">, 9100eae5eaSJonas Devlieghere Group<grp_repl>; 9200eae5eaSJonas Devlieghere 9300eae5eaSJonas Devlieghere 9400eae5eaSJonas Devlieghere// Command options. 9500eae5eaSJonas Devliegheredef grp_command : OptionGroup<"command">, HelpText<"COMMANDS">; 9600eae5eaSJonas Devlieghere 9700eae5eaSJonas Devliegheredef no_lldbinit: F<"no-lldbinit">, 9800eae5eaSJonas Devlieghere HelpText<"Do not automatically parse any '.lldbinit' files.">, 9900eae5eaSJonas Devlieghere Group<grp_command>; 10000eae5eaSJonas Devliegheredef: Flag<["-"], "x">, 10100eae5eaSJonas Devlieghere Alias<no_lldbinit>, 10200eae5eaSJonas Devlieghere HelpText<"Alias for --no-lldbinit">, 10300eae5eaSJonas Devlieghere Group<grp_command>; 1047ffd9638SJonas Devliegheredef local_lldbinit: F<"local-lldbinit">, 1057ffd9638SJonas Devlieghere HelpText<"Allow the debugger to parse the .lldbinit files in the current working directory, unless --no-lldbinit is passed.">, 1067ffd9638SJonas Devlieghere Group<grp_command>; 10700eae5eaSJonas Devlieghere 10800eae5eaSJonas Devliegheredef batch: F<"batch">, 10900eae5eaSJonas Devlieghere HelpText<"Tells the debugger to run the commands from -s, -S, -o & -O, and then quit.">, 11000eae5eaSJonas Devlieghere Group<grp_command>; 11100eae5eaSJonas Devliegheredef: Flag<["-"], "b">, 11200eae5eaSJonas Devlieghere Alias<batch>, 11300eae5eaSJonas Devlieghere HelpText<"Alias for --batch">, 11400eae5eaSJonas Devlieghere Group<grp_command>; 11500eae5eaSJonas Devlieghere 11600eae5eaSJonas Devliegheredef source_quietly: F<"source-quietly">, 117e2a6c08bSLawrence D'Anna HelpText<"Tells the debugger not to echo commands while sourcing files or one-line commands provided on the command line.">, 11800eae5eaSJonas Devlieghere Group<grp_command>; 11900eae5eaSJonas Devliegheredef: Flag<["-"], "Q">, 12000eae5eaSJonas Devlieghere Alias<source_quietly>, 12100eae5eaSJonas Devlieghere HelpText<"Alias for --source-quietly">, 12200eae5eaSJonas Devlieghere Group<grp_command>; 12300eae5eaSJonas Devlieghere 12400eae5eaSJonas Devliegheredef one_line_on_crash: Separate<["--", "-"], "one-line-on-crash">, 12500eae5eaSJonas Devlieghere MetaVarName<"<command>">, 126bb775beeSJonas Devlieghere HelpText<"When in batch mode, tells the debugger to run this one-line lldb command if the target crashes.">, 12700eae5eaSJonas Devlieghere Group<grp_command>; 12800eae5eaSJonas Devliegheredef: Separate<["-"], "k">, 12900eae5eaSJonas Devlieghere Alias<one_line_on_crash>, 13000eae5eaSJonas Devlieghere HelpText<"Alias for --one-line-on-crash">, 13100eae5eaSJonas Devlieghere Group<grp_command>; 13200eae5eaSJonas Devlieghere 13300eae5eaSJonas Devliegheredef source_on_crash: Separate<["--", "-"], "source-on-crash">, 13400eae5eaSJonas Devlieghere MetaVarName<"<file>">, 13500eae5eaSJonas Devlieghere HelpText<"When in batch mode, tells the debugger to source this file of lldb commands if the target crashes.">, 13600eae5eaSJonas Devlieghere Group<grp_command>; 13700eae5eaSJonas Devliegheredef: Separate<["-"], "K">, 13800eae5eaSJonas Devlieghere Alias<source_on_crash>, 13900eae5eaSJonas Devlieghere HelpText<"Alias for --source-on-crash">, 14000eae5eaSJonas Devlieghere Group<grp_command>; 14100eae5eaSJonas Devlieghere 14200eae5eaSJonas Devliegheredef source: Separate<["--", "-"], "source">, 14300eae5eaSJonas Devlieghere MetaVarName<"<file>">, 14400eae5eaSJonas Devlieghere HelpText<"Tells the debugger to read in and execute the lldb commands in the given file, after any file has been loaded.">, 14500eae5eaSJonas Devlieghere Group<grp_command>; 14600eae5eaSJonas Devliegheredef: Separate<["-"], "s">, 14700eae5eaSJonas Devlieghere Alias<source>, 14800eae5eaSJonas Devlieghere HelpText<"Alias for --source">, 14900eae5eaSJonas Devlieghere Group<grp_command>; 15000eae5eaSJonas Devlieghere 15100eae5eaSJonas Devliegheredef source_before_file: Separate<["--", "-"], "source-before-file">, 15200eae5eaSJonas Devlieghere MetaVarName<"<file>">, 15300eae5eaSJonas Devlieghere HelpText<"Tells the debugger to read in and execute the lldb commands in the given file, before any file has been loaded.">, 15400eae5eaSJonas Devlieghere Group<grp_command>; 15500eae5eaSJonas Devliegheredef: Separate<["-"], "S">, 15600eae5eaSJonas Devlieghere Alias<source_before_file>, 15700eae5eaSJonas Devlieghere HelpText<"Alias for --source-before-file">, 15800eae5eaSJonas Devlieghere Group<grp_command>; 15900eae5eaSJonas Devlieghere 16000eae5eaSJonas Devliegheredef one_line: Separate<["--", "-"], "one-line">, 16100eae5eaSJonas Devlieghere MetaVarName<"<command>">, 16200eae5eaSJonas Devlieghere HelpText<"Tells the debugger to execute this one-line lldb command after any file provided on the command line has been loaded.">, 16300eae5eaSJonas Devlieghere Group<grp_command>; 16400eae5eaSJonas Devliegheredef: Separate<["-"], "o">, 16500eae5eaSJonas Devlieghere Alias<one_line>, 16600eae5eaSJonas Devlieghere HelpText<"Alias for --one-line">, 16700eae5eaSJonas Devlieghere Group<grp_command>; 16800eae5eaSJonas Devlieghere 16900eae5eaSJonas Devliegheredef one_line_before_file: Separate<["--", "-"], "one-line-before-file">, 17000eae5eaSJonas Devlieghere MetaVarName<"<command>">, 17100eae5eaSJonas Devlieghere HelpText<"Tells the debugger to execute this one-line lldb command before any file provided on the command line has been loaded.">, 17200eae5eaSJonas Devlieghere Group<grp_command>; 17300eae5eaSJonas Devliegheredef: Separate<["-"], "O">, 17400eae5eaSJonas Devlieghere Alias<one_line_before_file>, 17500eae5eaSJonas Devlieghere HelpText<"Alias for --one-line-before-file">, 17600eae5eaSJonas Devlieghere Group<grp_command>; 17700eae5eaSJonas Devlieghere 17800eae5eaSJonas Devlieghere 17900eae5eaSJonas Devlieghere// General options. 18000eae5eaSJonas Devliegheredef version: F<"version">, 18100eae5eaSJonas Devlieghere HelpText<"Prints out the current version number of the LLDB debugger.">; 18200eae5eaSJonas Devliegheredef: Flag<["-"], "v">, 18300eae5eaSJonas Devlieghere Alias<version>, 18400eae5eaSJonas Devlieghere HelpText<"Alias for --version">; 18500eae5eaSJonas Devlieghere 18600eae5eaSJonas Devliegheredef help: F<"help">, 18700eae5eaSJonas Devlieghere HelpText<"Prints out the usage information for the LLDB debugger.">; 18800eae5eaSJonas Devliegheredef: Flag<["-"], "h">, 18900eae5eaSJonas Devlieghere Alias<help>, 19000eae5eaSJonas Devlieghere HelpText<"Alias for --help">; 19100eae5eaSJonas Devlieghere 192cef2af0fSJonas Devliegheredef core: Separate<["--", "-"], "core">, 193cef2af0fSJonas Devlieghere MetaVarName<"<filename>">, 194cef2af0fSJonas Devlieghere HelpText<"Tells the debugger to use the full path to <filename> as the core file.">; 195cef2af0fSJonas Devliegheredef: Separate<["-"], "c">, 19600eae5eaSJonas Devlieghere Alias<core>, 19700eae5eaSJonas Devlieghere HelpText<"Alias for --core">; 19800eae5eaSJonas Devlieghere 19900eae5eaSJonas Devliegheredef editor: F<"editor">, 20000eae5eaSJonas Devlieghere HelpText<"Tells the debugger to open source files using the host's \"external editor\" mechanism.">; 20100eae5eaSJonas Devliegheredef: Flag<["-"], "e">, 20200eae5eaSJonas Devlieghere Alias<editor>, 20300eae5eaSJonas Devlieghere HelpText<"Alias for --editor">; 20400eae5eaSJonas Devlieghere 20500eae5eaSJonas Devliegheredef no_use_colors: F<"no-use-colors">, 20600eae5eaSJonas Devlieghere HelpText<"Do not use colors.">; 20700eae5eaSJonas Devliegheredef: Flag<["-"], "X">, 20800eae5eaSJonas Devlieghere Alias<no_use_colors>, 20900eae5eaSJonas Devlieghere HelpText<"Alias for --no-use-color">; 21000eae5eaSJonas Devlieghere 21100eae5eaSJonas Devliegheredef file: Separate<["--", "-"], "file">, 21200eae5eaSJonas Devlieghere MetaVarName<"<filename>">, 21300eae5eaSJonas Devlieghere HelpText<"Tells the debugger to use the file <filename> as the program to be debugged.">; 21400eae5eaSJonas Devliegheredef: Separate<["-"], "f">, 21500eae5eaSJonas Devlieghere Alias<file>, 21600eae5eaSJonas Devlieghere HelpText<"Alias for --file">; 21700eae5eaSJonas Devlieghere 21800eae5eaSJonas Devliegheredef arch: Separate<["--", "-"], "arch">, 21900eae5eaSJonas Devlieghere MetaVarName<"<architecture>">, 22000eae5eaSJonas Devlieghere HelpText<"Tells the debugger to use the specified architecture when starting and running the program.">; 22100eae5eaSJonas Devliegheredef: Separate<["-"], "a">, 22200eae5eaSJonas Devlieghere Alias<arch>, 22300eae5eaSJonas Devlieghere HelpText<"Alias for --arch">; 22400eae5eaSJonas Devlieghere 22500eae5eaSJonas Devliegheredef debug: F<"debug">, 22600eae5eaSJonas Devlieghere HelpText<"Tells the debugger to print out extra information for debugging itself.">; 22700eae5eaSJonas Devliegheredef: Flag<["-"], "d">, 22800eae5eaSJonas Devlieghere Alias<debug>, 22900eae5eaSJonas Devlieghere HelpText<"Alias for --debug">; 23000eae5eaSJonas Devlieghere 23100eae5eaSJonas Devliegheredef REM : R<["--"], "">; 232