1include "OptionsBase.td"
2
3let Command = "target modules dump symtab" in {
4  def tm_sort : Option<"sort", "s">, Group<1>,
5    Desc<"Supply a sort order when dumping the symbol table.">,
6    EnumArg<"SortOrder">;
7  def tm_smn : Option<"show-mangled-names", "m">, Group<1>,
8    Desc<"Do not demangle symbol names before showing them.">;
9}
10
11let Command = "help" in {
12  def help_hide_aliases : Option<"hide-aliases", "a">,
13    Desc<"Hide aliases in the command list.">;
14  def help_hide_user : Option<"hide-user-commands", "u">,
15    Desc<"Hide user-defined commands from the list.">;
16  def help_show_hidden : Option<"show-hidden-commands", "h">,
17    Desc<"Include commands prefixed with an underscore.">;
18}
19
20let Command = "settings set" in {
21  def setset_global : Option<"global", "g">,
22    Desc<"Apply the new value to the global default value.">;
23  def setset_force : Option<"force", "f">,
24    Desc<"Force an empty value to be accepted as the default.">;
25  def setset_exists : Option<"exists", "e">,
26    Desc<"Set the setting if it exists, but do not cause the command to raise "
27    "an error if it does not exist.">;
28}
29
30let Command = "settings write" in {
31  def setwrite_file : Option<"file", "f">, Required, Arg<"Filename">,
32    Completion<"DiskFile">,
33    Desc<"The file into which to write the settings.">;
34  def setwrite_append : Option<"append", "a">,
35    Desc<"Append to saved settings file if it exists.">;
36}
37
38let Command = "settings read" in {
39  def setread_file : Option<"file", "f">, Required, Arg<"Filename">,
40    Completion<"DiskFile">,
41    Desc<"The file from which to read the settings.">;
42}
43
44let Command = "settings clear" in {
45  def setclear_all : Option<"all", "a">,
46    Desc<"Clear all settings.">;
47}
48
49let Command = "breakpoint list" in {
50  // FIXME: We need to add an "internal" command, and then add this sort of
51  // thing to it. But I need to see it for now, and don't want to wait.
52  def blist_internal : Option<"internal", "i">,
53    Desc<"Show debugger internal breakpoints">;
54  def blist_brief : Option<"brief", "b">, Group<1>,
55    Desc<"Give a brief description of the breakpoint (no location info).">;
56  def blist_full : Option<"full", "f">, Group<2>,
57    Desc<"Give a full description of the breakpoint and its locations.">;
58  def blist_verbose : Option<"verbose", "v">, Group<3>,
59    Desc<"Explain everything we know about the breakpoint (for debugging "
60    "debugger bugs).">;
61  def blist_dummy_bp : Option<"dummy-breakpoints", "D">,
62    Desc<"List Dummy breakpoints - i.e. breakpoints set before a file is "
63    "provided, which prime new targets.">;
64}
65
66let Command = "breakpoint modify" in {
67  def breakpoint_modify_ignore_count : Option<"ignore-count", "i">, Group<1>,
68    Arg<"Count">,
69    Desc<"Set the number of times this breakpoint is skipped before stopping.">;
70  def breakpoint_modify_one_shot : Option<"one-shot", "o">, Group<1>,
71    Arg<"Boolean">,
72    Desc<"The breakpoint is deleted the first time it stop causes a stop.">;
73  def breakpoint_modify_thread_index : Option<"thread-index", "x">, Group<1>,
74    Arg<"ThreadIndex">, Desc<"The breakpoint stops only for the thread whose "
75    "index matches this argument.">;
76  def breakpoint_modify_thread_id : Option<"thread-id", "t">, Group<1>,
77    Arg<"ThreadID">, Desc<"The breakpoint stops only for the thread whose TID "
78    "matches this argument.  The token 'current' resolves to the current thread's ID.">;
79  def breakpoint_modify_thread_name : Option<"thread-name", "T">, Group<1>,
80    Arg<"ThreadName">, Desc<"The breakpoint stops only for the thread whose "
81    "thread name matches this argument.">;
82  def breakpoint_modify_queue_name : Option<"queue-name", "q">, Group<1>,
83    Arg<"QueueName">, Desc<"The breakpoint stops only for threads in the queue "
84    "whose name is given by this argument.">;
85  def breakpoint_modify_condition : Option<"condition", "c">, Group<1>,
86    Arg<"Expression">, Desc<"The breakpoint stops only if this condition "
87    "expression evaluates to true.">;
88  def breakpoint_modify_auto_continue : Option<"auto-continue", "G">, Group<1>,
89    Arg<"Boolean">,
90    Desc<"The breakpoint will auto-continue after running its commands.">;
91  def breakpoint_modify_enable : Option<"enable", "e">, Group<2>,
92    Desc<"Enable the breakpoint.">;
93  def breakpoint_modify_disable : Option<"disable", "d">, Group<3>,
94    Desc<"Disable the breakpoint.">;
95  def breakpoint_modify_command : Option<"command", "C">, Group<4>,
96    Arg<"Command">,
97    Desc<"A command to run when the breakpoint is hit, can be provided more "
98    "than once, the commands will be run in left-to-right order.">;
99}
100
101let Command = "breakpoint dummy" in {
102  def breakpoint_dummy_options_dummy_breakpoints :
103    Option<"dummy-breakpoints", "D">, Group<1>,
104    Desc<"Act on Dummy breakpoints - i.e. breakpoints set before a file is "
105    "provided, which prime new targets.">;
106}
107
108let Command = "breakpoint set" in {
109  def breakpoint_set_shlib : Option<"shlib", "s">, Arg<"ShlibName">,
110    Completion<"Module">, Groups<[1,2,3,4,5,6,7,8,9,11,12]>, // *not* in group 10
111    Desc<"Set the breakpoint only in this shared library.  Can repeat this "
112    "option multiple times to specify multiple shared libraries.">;
113  def breakpoint_set_hardware : Option<"hardware", "H">,
114    Desc<"Require the breakpoint to use hardware breakpoints.">;
115  def breakpoint_set_file : Option<"file", "f">, Arg<"Filename">,
116    Completion<"SourceFile">, Groups<[1,3,4,5,6,7,8,9,11]>,
117    Desc<"Specifies the source file in which to set this breakpoint.  Note, by "
118    "default lldb only looks for files that are #included if they use the "
119    "standard include file extensions.  To set breakpoints on .c/.cpp/.m/.mm "
120    "files that are #included, set target.inline-breakpoint-strategy to "
121    "\"always\".">;
122  def breakpoint_set_line : Option<"line", "l">, Group<1>, Arg<"LineNum">,
123    Required,
124    Desc<"Specifies the line number on which to set this breakpoint.">;
125  def breakpoint_set_column : Option<"column", "u">, Group<1>, Arg<"ColumnNum">,
126    Desc<"Specifies the column number on which to set this breakpoint.">;
127  def breakpoint_set_address : Option<"address", "a">, Group<2>,
128    Arg<"AddressOrExpression">, Required,
129    Desc<"Set the breakpoint at the specified address.  If the address maps "
130    "uniquely to a particular binary, then the address will be converted to "
131    "a \"file\"address, so that the breakpoint will track that binary+offset "
132    "no matter where the binary eventually loads.  Alternately, if you also "
133    "specify the module - with the -s option - then the address will be "
134    "treated as a file address in that module, and resolved accordingly.  "
135    "Again, this will allow lldb to track that offset on subsequent reloads.  "
136    "The module need not have been loaded at the time you specify this "
137    "breakpoint, and will get resolved when the module is loaded.">;
138  def breakpoint_set_name : Option<"name", "n">, Group<3>, Arg<"FunctionName">,
139    Completion<"Symbol">, Required,
140    Desc<"Set the breakpoint by function name.  Can be repeated multiple times "
141    "to make one breakpoint for multiple names.">;
142  def breakpoint_set_source_regexp_function :
143    Option<"source-regexp-function", "X">, Group<9>, Arg<"FunctionName">,
144    Completion<"Symbol">,
145    Desc<"When used with '-p' limits the source regex to source contained in "
146    "the named functions.  Can be repeated multiple times.">;
147  def breakpoint_set_fullname : Option<"fullname", "F">, Group<4>,
148    Arg<"FullName">, Required, Completion<"Symbol">,
149    Desc<"Set the breakpoint by fully qualified function names. For C++ this "
150    "means namespaces and all arguments, and for Objective-C this means a full "
151    "function prototype with class and selector.  Can be repeated multiple times"
152    " to make one breakpoint for multiple names.">;
153  def breakpoint_set_selector : Option<"selector", "S">, Group<5>,
154    Arg<"Selector">, Required,
155    Desc<"Set the breakpoint by Objective-C selector name.  Can be repeated "
156    "multiple times to make one breakpoint for multiple Selectors.">;
157  def breakpoint_set_method : Option<"method", "M">, Group<6>, Arg<"Method">,
158    Required, Desc<"Set the breakpoint by C++ method names.  Can be repeated "
159    "multiple times to make one breakpoint for multiple methods.">;
160  def breakpoint_set_func_regex : Option<"func-regex", "r">, Group<7>,
161    Arg<"RegularExpression">, Required, Desc<"Set the breakpoint by function "
162    "name, evaluating a regular-expression to find the function name(s).">;
163  def breakpoint_set_basename : Option<"basename", "b">, Group<8>,
164    Arg<"FunctionName">, Required, Completion<"Symbol">,
165    Desc<"Set the breakpoint by function basename (C++ namespaces and arguments"
166    " will be ignored).  Can be repeated multiple times to make one breakpoint "
167    "for multiple symbols.">;
168  def breakpoint_set_source_pattern_regexp :
169    Option<"source-pattern-regexp", "p">, Group<9>, Arg<"RegularExpression">,
170    Required, Desc<"Set the breakpoint by specifying a regular expression which"
171    " is matched against the source text in a source file or files specified "
172    "with the -f can be specified more than once.  If no source files "
173    "are specified, uses the current \"default source file\".  If you want to "
174    "match against all source files, pass the \"--all-files\" option.">;
175  def breakpoint_set_all_files : Option<"all-files", "A">, Group<9>,
176    Desc<"All files are searched for source pattern matches.">;
177  def breakpoint_set_language_exception : Option<"language-exception", "E">,
178    Group<10>, Arg<"Language">, Required,
179    Desc<"Set the breakpoint on exceptions thrown by the specified language "
180    "(without options, on throw but not catch.)">;
181  def breakpoint_set_on_throw : Option<"on-throw", "w">, Group<10>,
182    Arg<"Boolean">, Desc<"Set the breakpoint on exception throW.">;
183  def breakpoint_set_on_catch : Option<"on-catch", "h">, Group<10>,
184    Arg<"Boolean">, Desc<"Set the breakpoint on exception catcH.">;
185  def breakpoint_set_language : Option<"language", "L">, GroupRange<3, 8>,
186    Arg<"Language">,
187    Desc<"Specifies the Language to use when interpreting the breakpoint's "
188    "expression (note: currently only implemented for setting breakpoints on "
189    "identifiers). If not set the target.language setting is used.">;
190  def breakpoint_set_skip_prologue : Option<"skip-prologue", "K">,
191    Arg<"Boolean">, Groups<[1,3,4,5,6,7,8,12]>,
192    Desc<"sKip the prologue if the breakpoint is at the beginning of a "
193    "function. If not set the target.skip-prologue setting is used.">;
194  def breakpoint_set_breakpoint_name : Option<"breakpoint-name", "N">,
195    Arg<"BreakpointName">,
196    Desc<"Adds this to the list of names for this breakpoint.">;
197  def breakpoint_set_address_slide : Option<"address-slide", "R">,
198    Arg<"Address">, Groups<[1,3,4,5,6,7,8,12]>,
199    Desc<"Add the specified offset to whatever address(es) the breakpoint "
200    "resolves to. At present this applies the offset directly as given, and "
201    "doesn't try to align it to instruction boundaries.">;
202  def breakpoint_set_move_to_nearest_code : Option<"move-to-nearest-code", "m">,
203    Groups<[1,9,12]>, Arg<"Boolean">,
204    Desc<"Move breakpoints to nearest code. If not set the "
205    "target.move-to-nearest-code setting is used.">;
206  def breakpoint_set_file_colon_line : Option<"joint-specifier", "y">, Group<12>, Arg<"FileLineColumn">,
207    Required, Completion<"SourceFile">,
208    Desc<"A specifier in the form filename:line[:column] for setting file & line breakpoints.">;
209  /* Don't add this option till it actually does something useful...
210  def breakpoint_set_exception_typename : Option<"exception-typename", "O">,
211    Arg<"TypeName">, Desc<"The breakpoint will only stop if an "
212    "exception Object of this type is thrown.  Can be repeated multiple times "
213    "to stop for multiple object types">;
214   */
215}
216
217let Command = "breakpoint clear" in {
218  def breakpoint_clear_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
219    Completion<"SourceFile">,
220    Desc<"Specify the breakpoint by source location in this particular file.">;
221  def breakpoint_clear_line : Option<"line", "l">, Group<1>, Arg<"LineNum">,
222    Required,
223    Desc<"Specify the breakpoint by source location at this particular line.">;
224}
225
226let Command = "breakpoint delete" in {
227  def breakpoint_delete_force : Option<"force", "f">, Group<1>,
228    Desc<"Delete all breakpoints without querying for confirmation.">;
229  def breakpoint_delete_dummy_breakpoints : Option<"dummy-breakpoints", "D">,
230    Group<1>, Desc<"Delete Dummy breakpoints - i.e. breakpoints set before a "
231    "file is provided, which prime new targets.">;
232  def breakpoint_delete_disabled : Option<"disabled", "d">, Group<1>,
233    Desc<"Delete all breakpoints which are currently disabled.  When using the disabled option "
234    "any breakpoints listed on the command line are EXCLUDED from deletion.">;
235}
236
237let Command = "breakpoint name" in {
238  def breakpoint_name_name : Option<"name", "N">, Group<1>,
239    Arg<"BreakpointName">, Desc<"Specifies a breakpoint name to use.">;
240  def breakpoint_name_breakpoint_id : Option<"breakpoint-id", "B">, Group<2>,
241    Arg<"BreakpointID">, Desc<"Specify a breakpoint ID to use.">;
242  def breakpoint_name_dummy_breakpoints : Option<"dummy-breakpoints", "D">,
243    Group<3>, Desc<"Operate on Dummy breakpoints - i.e. breakpoints set before "
244    "a file is provided, which prime new targets.">;
245  def breakpoint_name_help_string : Option<"help-string", "H">, Group<4>,
246    Arg<"None">, Desc<"A help string describing the purpose of this name.">;
247}
248
249let Command = "breakpoint access" in {
250  def breakpoint_access_allow_list : Option<"allow-list", "L">, Group<1>,
251    Arg<"Boolean">, Desc<"Determines whether the breakpoint will show up in "
252    "break list if not referred to explicitly.">;
253  def breakpoint_access_allow_disable : Option<"allow-disable", "A">, Group<2>,
254    Arg<"Boolean">, Desc<"Determines whether the breakpoint can be disabled by "
255    "name or when all breakpoints are disabled.">;
256  def breakpoint_access_allow_delete : Option<"allow-delete", "D">, Group<3>,
257    Arg<"Boolean">, Desc<"Determines whether the breakpoint can be deleted by "
258    "name or when all breakpoints are deleted.">;
259}
260
261let Command = "breakpoint read" in {
262  def breakpoint_read_file : Option<"file", "f">, Arg<"Filename">, Required,
263    Completion<"DiskFile">,
264    Desc<"The file from which to read the breakpoints.">;
265  def breakpoint_read_breakpoint_name : Option<"breakpoint-name", "N">,
266    Arg<"BreakpointName">, Desc<"Only read in breakpoints with this name.">;
267}
268
269let Command = "breakpoint write" in {
270  def breakpoint_write_file : Option<"file", "f">, Arg<"Filename">, Required,
271    Completion<"DiskFile">,
272    Desc<"The file into which to write the breakpoints.">;
273  def breakpoint_write_append : Option<"append", "a">,
274    Desc<"Append to saved breakpoints file if it exists.">;
275}
276
277let Command = "breakpoint command add" in {
278  def breakpoint_add_one_liner : Option<"one-liner", "o">, Group<1>,
279    Arg<"OneLiner">, Desc<"Specify a one-line breakpoint command inline. Be "
280    "sure to surround it with quotes.">;
281  def breakpoint_add_stop_on_error : Option<"stop-on-error", "e">,
282    Arg<"Boolean">, Desc<"Specify whether breakpoint command execution should "
283    "terminate on error.">;
284  def breakpoint_add_script_type : Option<"script-type", "s">,
285    EnumArg<"ScriptLang">,
286    Desc<"Specify the language for the commands - if none is specified, the "
287    "lldb command interpreter will be used.">;
288  def breakpoint_add_dummy_breakpoints : Option<"dummy-breakpoints", "D">,
289    Desc<"Sets Dummy breakpoints - i.e. breakpoints set before a file is "
290    "provided, which prime new targets.">;
291}
292
293let Command = "breakpoint command delete" in {
294  def breakpoint_command_delete_dummy_breakpoints :
295    Option<"dummy-breakpoints", "D">, Group<1>,
296    Desc<"Delete commands from Dummy breakpoints - i.e. breakpoints set before "
297    "a file is provided, which prime new targets.">;
298}
299
300let Command = "disassemble" in {
301  def disassemble_options_bytes : Option<"bytes", "b">,
302    Desc<"Show opcode bytes when disassembling.">;
303  def disassemble_options_kind : Option<"kind", "k">,
304    Desc<"Show instruction control flow kind. Refer to the enum "
305    "`InstructionControlFlowKind` for a list of control flow kind. "
306    "As an important note, far jumps, far calls and far returns often indicate "
307    "calls to and from kernel.">;
308  def disassemble_options_context : Option<"context", "C">, Arg<"NumLines">,
309    Desc<"Number of context lines of source to show.">;
310  def disassemble_options_mixed : Option<"mixed", "m">,
311    Desc<"Enable mixed source and assembly display.">;
312  def disassemble_options_raw : Option<"raw", "r">,
313    Desc<"Print raw disassembly with no symbol information.">;
314  def disassemble_options_plugin : Option<"plugin", "P">, Arg<"Plugin">,
315    Desc<"Name of the disassembler plugin you want to use.">;
316  def disassemble_options_flavor : Option<"flavor", "F">,
317    Arg<"DisassemblyFlavor">, Desc<"Name of the disassembly flavor you want to "
318    "use. Currently the only valid options are default, and for Intel "
319    "architectures, att and intel.">;
320  def disassemble_options_arch : Option<"arch", "A">, Arg<"Architecture">,
321    Desc<"Specify the architecture to use from cross disassembly.">;
322  def disassemble_options_start_address : Option<"start-address", "s">,
323    Groups<[1,2]>, Arg<"AddressOrExpression">, Required,
324    Desc<"Address at which to start disassembling.">;
325  def disassemble_options_end_address : Option<"end-address", "e">, Group<1>,
326    Arg<"AddressOrExpression">, Desc<"Address at which to end disassembling.">;
327  def disassemble_options_count : Option<"count", "c">, Groups<[2,3,4,5,7]>,
328    Arg<"NumLines">, Desc<"Number of instructions to display.">;
329  def disassemble_options_name : Option<"name", "n">, Group<3>,
330    Arg<"FunctionName">, Completion<"Symbol">,
331    Desc<"Disassemble entire contents of the given function name.">;
332  def disassemble_options_frame : Option<"frame", "f">, Group<4>,
333    Desc<"Disassemble from the start of the current frame's function.">;
334  def disassemble_options_pc : Option<"pc", "p">, Group<5>,
335    Desc<"Disassemble around the current pc.">;
336  def disassemble_options_line : Option<"line", "l">, Group<6>,
337    Desc<"Disassemble the current frame's current source line instructions if "
338    "there is debug line table information, else disassemble around the pc.">;
339  def disassemble_options_address : Option<"address", "a">, Group<7>,
340    Arg<"AddressOrExpression">,
341    Desc<"Disassemble function containing this address.">;
342  def disassemble_options_force : Option<"force", "\\x01">, Groups<[2,3,4,5,7]>,
343    Desc<"Force disassembly of large functions.">;
344}
345
346let Command = "diagnostics dump" in {
347  def diagnostics_dump_directory : Option<"directory", "d">, Group<1>,
348    Arg<"Path">, Desc<"Dump the diagnostics to the given directory.">;
349}
350
351let Command = "expression" in {
352  def expression_options_all_threads : Option<"all-threads", "a">,
353    Groups<[1,2]>, Arg<"Boolean">, Desc<"Should we run all threads if the "
354    "execution doesn't complete on one thread.">;
355  def expression_options_ignore_breakpoints : Option<"ignore-breakpoints", "i">,
356    Groups<[1,2]>, Arg<"Boolean">,
357    Desc<"Ignore breakpoint hits while running expressions">;
358  def expression_options_timeout : Option<"timeout", "t">, Groups<[1,2]>,
359    Arg<"UnsignedInteger">,
360    Desc<"Timeout value (in microseconds) for running the expression.">;
361  def expression_options_unwind_on_error : Option<"unwind-on-error", "u">,
362    Groups<[1,2]>, Arg<"Boolean">,
363    Desc<"Clean up program state if the expression causes a crash, or raises a "
364    "signal. Note, unlike gdb hitting a breakpoint is controlled by another "
365    "option (-i).">;
366  def expression_options_debug : Option<"debug", "g">, Groups<[1,2]>,
367    Desc<"When specified, debug the JIT code by setting a breakpoint on the "
368    "first instruction and forcing breakpoints to not be ignored (-i0) and no "
369    "unwinding to happen on error (-u0).">;
370  def expression_options_language : Option<"language", "l">, Groups<[1,2,3]>,
371    Arg<"Language">, Desc<"Specifies the Language to use when parsing the "
372    "expression.  If not set the target.language setting is used.">;
373  def expression_options_apply_fixits : Option<"apply-fixits", "X">,
374    Groups<[1,2]>, Arg<"Boolean">, Desc<"If true, simple fix-it hints will be "
375    "automatically applied to the expression.">;
376  def expression_options_description_verbosity :
377    Option<"description-verbosity", "v">, Group<1>,
378    OptionalEnumArg<"DescriptionVerbosity">,
379    Desc<"How verbose should the output of this expression be, if the object "
380    "description is asked for.">;
381  def expression_options_top_level : Option<"top-level", "p">, Groups<[1,2]>,
382    Desc<"Interpret the expression as a complete translation unit, without "
383    "injecting it into the local context.  Allows declaration of persistent, "
384    "top-level entities without a $ prefix.">;
385  def expression_options_allow_jit : Option<"allow-jit", "j">, Groups<[1,2]>,
386    Arg<"Boolean">,
387    Desc<"Controls whether the expression can fall back to being JITted if it's "
388    "not supported by the interpreter (defaults to true).">;
389  def persistent_result : Option<"persistent-result", "\\x01">, Groups<[1,2]>,
390    Arg<"Boolean">,
391    Desc<"Persist expression result in a variable for subsequent use. "
392    "Expression results will be labeled with $-prefixed variables, e.g. $0, "
393    "$1, etc. Defaults to true.">;
394}
395
396let Command = "frame diag" in {
397  def frame_diag_register : Option<"register", "r">, Group<1>,
398    Arg<"RegisterName">, Desc<"A register to diagnose.">;
399  def frame_diag_address : Option<"address", "a">, Group<1>, Arg<"Address">,
400    Desc<"An address to diagnose.">;
401  def frame_diag_offset : Option<"offset", "o">, Group<1>, Arg<"Offset">,
402    Desc<"An optional offset.  Requires --register.">;
403}
404
405let Command = "frame select" in {
406  def frame_select_relative : Option<"relative", "r">, Group<1>, Arg<"Offset">,
407    Desc<"A relative frame index offset from the current frame index.">;
408}
409
410let Command = "frame recognizer add" in {
411  def frame_recognizer_shlib : Option<"shlib", "s">, Arg<"ShlibName">,
412    Completion<"Module">,
413    Desc<"Name of the module or shared library that this recognizer applies "
414    "to.">;
415  def frame_recognizer_function : Option<"function", "n">, Arg<"Name">,
416    Completion<"Symbol">,
417    Desc<"Name of the function that this recognizer applies to. "
418         "Can be specified more than once except if -x|--regex is provided.">;
419  def frame_recognizer_python_class : Option<"python-class", "l">, Group<2>,
420    Arg<"PythonClass">,
421    Desc<"Give the name of a Python class to use for this frame recognizer.">;
422  def frame_recognizer_regex : Option<"regex", "x">,
423    Desc<"Function name and module name are actually regular expressions.">;
424  def frame_recognizer_first_instruction_only : Option<"first-instruction-only", "f">, Arg<"Boolean">,
425    Desc<"If true, only apply this recognizer to frames whose PC currently points to the "
426    "first instruction of the specified function. If false, the recognizer "
427    "will always be applied, regardless of the current position within the specified function. The "
428    "implementer should keep in mind that some features, e.g. accessing function argument "
429    "values via $arg<N>, are not guaranteed to work reliably in this case, so extra care must "
430    "be taken to make the recognizer operate correctly. Defaults to true.">;
431}
432
433let Command = "history" in {
434  def history_count : Option<"count", "c">, Group<1>, Arg<"UnsignedInteger">,
435    Desc<"How many history commands to print.">;
436  def history_start_index : Option<"start-index", "s">, Group<1>,
437    Arg<"UnsignedInteger">, Desc<"Index at which to start printing history "
438    "commands (or end to mean tail mode).">;
439  def history_end_index : Option<"end-index", "e">, Group<1>,
440    Arg<"UnsignedInteger">,
441    Desc<"Index at which to stop printing history commands.">;
442  def history_clear : Option<"clear", "C">, Group<2>,
443    Desc<"Clears the current command history.">;
444}
445
446let Command = "log enable" in {
447  def log_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
448    Desc<"Set the destination file to log to.">;
449  def log_handler : Option<"log-handler", "h">, Group<1>,
450    EnumArg<"LogHandler">, Desc<"Specify a log handler which determines where log messages are written.">;
451  def log_buffer_size : Option<"buffer", "b">, Group<1>, Arg<"UnsignedInteger">,
452    Desc<"Set the log to be buffered, using the specified buffer size, if supported by the log handler.">;
453  def log_verbose : Option<"verbose", "v">, Group<1>,
454    Desc<"Enable verbose logging.">;
455  def log_sequence : Option<"sequence", "s">, Group<1>,
456    Desc<"Prepend all log lines with an increasing integer sequence id.">;
457  def log_timestamp : Option<"timestamp", "T">, Group<1>,
458    Desc<"Prepend all log lines with a timestamp.">;
459  def log_pid_tid : Option<"pid-tid", "p">, Group<1>,
460    Desc<"Prepend all log lines with the process and thread ID that generates "
461    "the log line.">;
462  def log_thread_name : Option<"thread-name", "n">, Group<1>,
463    Desc<"Prepend all log lines with the thread name for the thread that "
464    "generates the log line.">;
465
466  def log_stack : Option<"stack", "S">, Group<1>,
467    Desc<"Append a stack backtrace to each log line.">;
468  def log_append : Option<"append", "a">, Group<1>,
469    Desc<"Append to the log file instead of overwriting.">;
470  def log_file_function : Option<"file-function", "F">, Group<1>,
471    Desc<"Prepend the names of files and function that generate the logs.">;
472}
473
474let Command = "log dump" in {
475  def log_dump_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
476    Desc<"Set the destination file to dump to.">;
477}
478
479let Command = "memory read" in {
480  def memory_read_num_per_line : Option<"num-per-line", "l">, Group<1>,
481    Arg<"NumberPerLine">, Desc<"The number of items per line to display.">;
482  def memory_read_binary : Option<"binary", "b">, Group<2>,
483    Desc<"If true, memory will be saved as binary. If false, the memory is "
484    "saved save as an ASCII dump that uses the format, size, count and number "
485    "per line settings.">;
486  def memory_read_type : Option<"type", "t">, Groups<[3,4]>, Arg<"Name">,
487    Required, Desc<"The name of a type to view memory as.">;
488  def memory_read_language : Option<"language", "x">, Group<4>, Arg<"Language">,
489    Desc<"The language of the type to view memory as.">;
490  def memory_read_offset : Option<"offset", "E">, Group<3>, Arg<"Count">,
491    Desc<"How many elements of the specified type to skip before starting to "
492    "display data.">;
493  def memory_read_force : Option<"force", "r">, Groups<[1,2,3]>,
494    Desc<"Necessary if reading over target.max-memory-read-size bytes.">;
495}
496
497let Command = "memory find" in {
498  def memory_find_expression : Option<"expression", "e">, Group<1>,
499    Arg<"Expression">, Required,
500    Desc<"Evaluate an expression to obtain a byte pattern.">;
501  def memory_find_string : Option<"string", "s">, Group<2>, Arg<"Name">,
502    Required, Desc<"Use text to find a byte pattern.">;
503  def memory_find_count : Option<"count", "c">, Arg<"Count">,
504    Desc<"How many times to perform the search.">;
505  def memory_find_dump_offset : Option<"dump-offset", "o">, Arg<"Offset">,
506    Desc<"When dumping memory for a match, an offset from the match location to"
507    " start dumping from.">;
508}
509
510let Command = "memory write" in {
511  def memory_write_infile : Option<"infile", "i">, Group<1>, Arg<"Filename">,
512    Required, Desc<"Write memory using the contents of a file.">;
513  def memory_write_offset : Option<"offset", "o">, Group<1>, Arg<"Offset">,
514    Desc<"Start writing bytes from an offset within the input file.">;
515}
516
517let Command = "memory region" in {
518  def memory_region_all : Option<"all", "a">, Group<2>, Required,
519    Desc<"Show all memory regions. This is equivalent to starting from address "
520         "0 and repeating the command. Unmapped areas are included.">;
521}
522
523let Command = "memory tag write" in {
524  def memory_write_end_addr : Option<"end-addr", "e">, Group<1>,
525  Arg<"AddressOrExpression">, Desc<
526    "Set tags for start address to end-addr, repeating tags as needed"
527    " to cover the range. (instead of calculating the range from the"
528    " number of tags given)">;
529}
530
531let Command = "register read" in {
532  def register_read_alternate : Option<"alternate", "A">,
533    Desc<"Display register names using the alternate register name if there "
534    "is one.">;
535  def register_read_set : Option<"set", "s">, Group<1>, Arg<"Index">,
536    Desc<"Specify which register sets to dump by index.">;
537  def register_read_all : Option<"all", "a">, Group<2>,
538    Desc<"Show all register sets.">;
539}
540
541let Command = "source" in {
542  def source_stop_on_error : Option<"stop-on-error", "e">, Arg<"Boolean">,
543    Desc<"If true, stop executing commands on error.">;
544  def source_stop_on_continue : Option<"stop-on-continue", "c">, Arg<"Boolean">,
545    Desc<"If true, stop executing commands on continue.">;
546  def source_silent_run : Option<"silent-run", "s">, Arg<"Boolean">,
547    Desc<"If true don't echo commands while executing.">;
548  def cmd_relative_to_command_file : Option<"relative-to-command-file", "C">,
549    Desc<"Resolve non-absolute paths relative to the location of the "
550    "current command file. This argument can only be used when the command is "
551    "being sourced from a file.">;
552}
553
554let Command = "alias" in {
555  def alias_help : Option<"help", "h">, Arg<"HelpText">,
556    Desc<"Help text for this command">;
557  def alias_long_help : Option<"long-help", "H">, Arg<"HelpText">,
558    Desc<"Long help text for this command">;
559}
560
561let Command = "regex" in {
562  def regex_help : Option<"help", "h">, Group<1>, Arg<"None">,
563    Desc<"The help text to display for this command.">;
564  def regex_syntax : Option<"syntax", "s">, Group<1>, Arg<"None">,
565    Desc<"A syntax string showing the typical usage syntax.">;
566}
567
568let Command = "permissions" in {
569  def permissions_permissions_value : Option<"permissions-value", "v">,
570    Arg<"PermissionsNumber">,
571    Desc<"Give out the numeric value for permissions (e.g. 757)">;
572  def permissions_permissions_string : Option<"permissions-string", "s">,
573    Arg<"PermissionsString">,
574    Desc<"Give out the string value for permissions (e.g. rwxr-xr--).">;
575  def permissions_user_read : Option<"user-read", "r">,
576    Desc<"Allow user to read.">;
577  def permissions_user_write : Option<"user-write", "w">,
578    Desc<"Allow user to write.">;
579  def permissions_user_exec : Option<"user-exec", "x">,
580    Desc<"Allow user to execute.">;
581  def permissions_group_read : Option<"group-read", "R">,
582    Desc<"Allow group to read.">;
583  def permissions_group_write : Option<"group-write", "W">,
584    Desc<"Allow group to write.">;
585  def permissions_group_exec : Option<"group-exec", "X">,
586    Desc<"Allow group to execute.">;
587  def permissions_world_read : Option<"world-read", "d">,
588    Desc<"Allow world to read.">;
589  def permissions_world_write : Option<"world-write", "t">,
590    Desc<"Allow world to write.">;
591  def permissions_world_exec : Option<"world-exec", "e">,
592    Desc<"Allow world to execute.">;
593}
594
595let Command = "platform fread" in {
596  def platform_fread_offset : Option<"offset", "o">, Group<1>, Arg<"Index">,
597    Desc<"Offset into the file at which to start reading.">;
598  def platform_fread_count : Option<"count", "c">, Group<1>, Arg<"Count">,
599    Desc<"Number of bytes to read from the file.">;
600}
601
602let Command = "platform fwrite" in {
603  def platform_fwrite_offset : Option<"offset", "o">, Group<1>, Arg<"Index">,
604    Desc<"Offset into the file at which to start reading.">;
605  def platform_fwrite_data : Option<"data", "d">, Group<1>, Arg<"Value">,
606    Desc<"Text to write to the file.">;
607}
608
609let Command = "platform process list" in {
610  def platform_process_list_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">,
611    Desc<"List the process info for a specific process ID.">;
612  def platform_process_list_name : Option<"name", "n">, Group<2>,
613    Arg<"ProcessName">, Required,
614    Desc<"Find processes with executable basenames that match a string.">;
615  def platform_process_list_ends_with : Option<"ends-with", "e">, Group<3>,
616  Arg<"ProcessName">, Required,
617    Desc<"Find processes with executable basenames that end with a string.">;
618  def platform_process_list_starts_with : Option<"starts-with", "s">, Group<4>,
619    Arg<"ProcessName">, Required,
620    Desc<"Find processes with executable basenames that start with a string.">;
621  def platform_process_list_contains : Option<"contains", "c">, Group<5>,
622    Arg<"ProcessName">, Required,
623    Desc<"Find processes with executable basenames that contain a string.">;
624  def platform_process_list_regex : Option<"regex", "r">, Group<6>,
625    Arg<"RegularExpression">, Required,
626    Desc<"Find processes with executable basenames that match a regular "
627    "expression.">;
628  def platform_process_list_parent : Option<"parent", "P">, GroupRange<2, 6>,
629    Arg<"Pid">, Desc<"Find processes that have a matching parent process ID.">;
630  def platform_process_list_uid : Option<"uid", "u">, GroupRange<2, 6>,
631    Arg<"UnsignedInteger">, Validator<"&posix_validator">,
632    Desc<"Find processes that have a matching user ID.">;
633  def platform_process_list_euid : Option<"euid", "U">, GroupRange<2, 6>,
634    Arg<"UnsignedInteger">, Validator<"&posix_validator">,
635    Desc<"Find processes that have a matching effective user ID.">;
636  def platform_process_list_gid : Option<"gid", "g">, GroupRange<2, 6>,
637    Arg<"UnsignedInteger">, Validator<"&posix_validator">,
638    Desc<"Find processes that have a matching group ID.">;
639  def platform_process_list_egid : Option<"egid", "G">, GroupRange<2, 6>,
640    Arg<"UnsignedInteger">, Validator<"&posix_validator">,
641    Desc<"Find processes that have a matching effective group ID.">;
642  def platform_process_list_arch : Option<"arch", "a">, GroupRange<2, 6>,
643    Arg<"Architecture">,
644    Desc<"Find processes that have a matching architecture.">;
645  def platform_process_list_show_args : Option<"show-args", "A">,
646    GroupRange<1, 6>,
647    Desc<"Show process arguments instead of the process executable basename.">;
648  def platform_process_list_all_users: Option<"all-users", "x">,
649    GroupRange<1,6>,
650    Desc<"Show processes matching all user IDs.">;
651  def platform_process_list_verbose : Option<"verbose", "v">, GroupRange<1, 6>,
652    Desc<"Enable verbose output.">;
653}
654
655let Command = "platform process attach" in {
656  def platform_process_attach_plugin : Option<"plugin", "P">, Arg<"Plugin">,
657    Desc<"Name of the process plugin you want to use.">;
658  def platform_process_attach_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">,
659    Desc<"The process ID of an existing process to attach to.">;
660  def platform_process_attach_name : Option<"name", "n">, Group<2>,
661    Arg<"ProcessName">, Desc<"The name of the process to attach to.">;
662  def platform_process_attach_waitfor : Option<"waitfor", "w">, Group<2>,
663    Desc<"Wait for the process with <process-name> to launch.">;
664}
665
666let Command = "platform shell" in {
667  def platform_shell_host : Option<"host", "h">,
668    Desc<"Run the commands on the host shell when enabled.">;
669  def platform_shell_timeout : Option<"timeout", "t">, Arg<"Value">,
670    Desc<"Seconds to wait for the remote host to finish running the command.">;
671  def platform_shell_interpreter : Option<"shell", "s">, Arg<"Path">,
672    Desc<"Shell interpreter path. This is the binary used to run the command.">;
673}
674
675let Command = "process launch" in {
676  def process_launch_stop_at_entry : Option<"stop-at-entry", "s">,
677    Desc<"Stop at the entry point of the program when launching a process.">;
678  def process_launch_disable_aslr : Option<"disable-aslr", "A">, Arg<"Boolean">,
679    Desc<"Set whether to disable address space layout randomization when launching a process.">;
680  def process_launch_plugin : Option<"plugin", "P">, Arg<"Plugin">,
681    Desc<"Name of the process plugin you want to use.">;
682  def process_launch_working_dir : Option<"working-dir", "w">, Arg<"DirectoryName">,
683    Desc<"Set the current working directory to <path> when running the inferior.">;
684  def process_launch_arch : Option<"arch", "a">, Arg<"Architecture">,
685    Desc<"Set the architecture for the process to launch when ambiguous.">;
686  def process_launch_environment : Option<"environment", "E">,
687    Arg<"None">, Desc<"Specify an environment variable name/value string "
688    "(--environment NAME=VALUE). Can be specified multiple times for subsequent "
689    "environment entries.">;
690  def process_launch_shell : Option<"shell", "c">, GroupRange<1,3>,
691    OptionalArg<"Filename">, Desc<"Run the process in a shell (not supported on all platforms).">;
692  def process_launch_stdin : Option<"stdin", "i">, Group<1>,
693    Arg<"Filename">, Desc<"Redirect stdin for the process to <filename>.">;
694  def process_launch_stdout : Option<"stdout", "o">, Group<1>,
695    Arg<"Filename">, Desc<"Redirect stdout for the process to <filename>.">;
696  def process_launch_stderr : Option<"stderr", "e">, Group<1>,
697    Arg<"Filename">, Desc<"Redirect stderr for the process to <filename>.">;
698  def process_launch_tty : Option<"tty", "t">, Group<2>,
699    Desc<"Start the process in a terminal (not supported on all platforms).">;
700  def process_launch_no_stdio : Option<"no-stdio", "n">, Group<3>,
701    Desc<"Do not set up for terminal I/O to go to running process.">;
702  def process_launch_shell_expand_args : Option<"shell-expand-args", "X">, Group<4>,
703    Arg<"Boolean">, Desc<"Set whether to shell expand arguments to the process when launching.">;
704}
705
706let Command = "process attach" in {
707  def process_attach_continue : Option<"continue", "c">,
708    Desc<"Immediately continue the process once attached.">;
709  def process_attach_plugin : Option<"plugin", "P">, Arg<"Plugin">,
710    Desc<"Name of the process plugin you want to use.">;
711  def process_attach_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">,
712    Desc<"The process ID of an existing process to attach to.">;
713  def process_attach_name : Option<"name", "n">, Group<2>, Arg<"ProcessName">,
714    Desc<"The name of the process to attach to.">;
715  def process_attach_include_existing : Option<"include-existing", "i">,
716    Group<2>, Desc<"Include existing processes when doing attach -w.">;
717  def process_attach_waitfor : Option<"waitfor", "w">, Group<2>,
718    Desc<"Wait for the process with <process-name> to launch.">;
719}
720
721let Command = "process continue" in {
722  def process_continue_ignore_count : Option<"ignore-count", "i">, Group<1>,
723    Arg<"UnsignedInteger">, Desc<"Ignore <N> crossings of the breakpoint (if it"
724    " exists) for the currently selected thread.">;
725  def process_continue_run_to_bkpt : Option<"continue-to-bkpt", "b">, Group<2>,
726    Arg<"BreakpointIDRange">, Desc<"Specify a breakpoint to continue to, temporarily "
727    "ignoring other breakpoints.  Can be specified more than once.  "
728    "The continue action will be done synchronously if this option is specified.">;
729}
730
731let Command = "process detach" in {
732  def process_detach_keep_stopped : Option<"keep-stopped", "s">, Group<1>,
733    Arg<"Boolean">, Desc<"Whether or not the process should be kept stopped on"
734    " detach (if possible).">;
735}
736
737let Command = "process connect" in {
738  def process_connect_plugin : Option<"plugin", "p">, Arg<"Plugin">,
739    Desc<"Name of the process plugin you want to use.">;
740}
741
742let Command = "process load" in {
743  def process_load_install : Option<"install", "i">, OptionalArg<"Path">,
744    Desc<"Install the shared library to the target. If specified without an "
745    "argument then the library will installed in the current working "
746    "directory.">;
747}
748
749let Command = "process handle" in {
750  def process_handle_clear : Option<"clear", "c">, Group<2>,
751    Desc<"Removes the signals listed from the Target signal handlers">;
752  def process_handle_stop : Option<"stop", "s">, Group<1>, Arg<"Boolean">,
753    Desc<"Whether or not the process should be stopped if the signal is "
754    "received.">;
755  def process_handle_notify : Option<"notify", "n">, Group<1>, Arg<"Boolean">,
756    Desc<"Whether or not the debugger should notify the user if the signal is "
757    "received.">;
758  def process_handle_pass : Option<"pass", "p">, Group<1>, Arg<"Boolean">,
759    Desc<"Whether or not the signal should be passed to the process.">;
760  def process_handle_only_target : Option<"target", "t">, Group<1>,
761    Desc<"Show only the signals with behaviors modified in this target">;
762  def process_handle_dummy : Option<"dummy", "d">, Group<2>,
763    Desc<"Also clear the values in the dummy target so they won't be inherited by new targets.">;
764}
765
766let Command = "process status" in {
767  def process_status_verbose : Option<"verbose", "v">, Group<1>,
768    Desc<"Show verbose process status including extended crash information.">;
769}
770
771let Command = "process save_core" in {
772  def process_save_core_style : Option<"style", "s">, Group<1>,
773    EnumArg<"SaveCoreStyle">, Desc<"Request a specific style "
774    "of corefile to be saved.">;
775  def process_save_core_plugin_name : Option<"plugin-name", "p">,
776    OptionalArg<"Plugin">, Desc<"Specify a plugin name to create the core file."
777    "This allows core files to be saved in different formats.">;
778}
779
780let Command = "script import" in {
781  def script_import_allow_reload : Option<"allow-reload", "r">, Group<1>,
782    Desc<"Allow the script to be loaded even if it was already loaded before. "
783    "This argument exists for backwards compatibility, but reloading is always "
784    "allowed, whether you specify it or not.">;
785  def relative_to_command_file : Option<"relative-to-command-file", "c">,
786    Group<1>, Desc<"Resolve non-absolute paths relative to the location of the "
787    "current command file. This argument can only be used when the command is "
788    "being sourced from a file.">;
789  def silent : Option<"silent", "s">, Group<1>,
790    Desc<"If true don't print any script output while importing.">;
791}
792
793let Command = "script add" in {
794  def script_add_function : Option<"function", "f">, Group<1>,
795    Arg<"PythonFunction">,
796    Desc<"Name of the Python function to bind to this command name.">;
797  def script_add_class : Option<"class", "c">, Group<2>, Arg<"PythonClass">,
798  Desc<"Name of the Python class to bind to this command name.">;
799  def script_add_help : Option<"help", "h">, Group<1>, Arg<"HelpText">,
800  Desc<"The help text to display for this command.">;
801  def script_add_overwrite : Option<"overwrite", "o">, Groups<[1,2]>,
802  Desc<"Overwrite an existing command at this node.">;
803  def script_add_synchronicity : Option<"synchronicity", "s">,
804    EnumArg<"ScriptedCommandSynchronicity">,
805    Desc<"Set the synchronicity of this command's executions with regard to "
806    "LLDB event system.">;
807  def completion_type : Option<"completion-type", "C">,
808  EnumArg<"CompletionType">,
809  Desc<"Specify which completion type the command should use - if none is specified, the command won't use auto-completion.">;
810}
811
812let Command = "container add" in {
813  def container_add_help : Option<"help", "h">, Arg<"HelpText">,
814    Desc<"Help text for this command">;
815  def container_add_long_help : Option<"long-help", "H">, Arg<"HelpText">,
816    Desc<"Long help text for this command">;
817  def container_add_overwrite : Option<"overwrite", "o">, Group<1>,
818  Desc<"Overwrite an existing command at this node.">;
819}
820
821let Command = "script" in {
822  def script_language : Option<"language", "l">,
823    EnumArg<"ScriptLang">, Desc<"Specify the scripting "
824    " language. If none is specific the default scripting language is used.">;
825}
826
827let Command = "source info" in {
828  def source_info_count : Option<"count", "c">, Arg<"Count">,
829    Desc<"The number of line entries to display.">;
830  def source_info_shlib : Option<"shlib", "s">, Groups<[1,2]>, Arg<"ShlibName">,
831    Completion<"Module">, Desc<"Look up the source in the given module or "
832    "shared library (can be specified more than once).">;
833  def source_info_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
834    Completion<"SourceFile">, Desc<"The file from which to display source.">;
835  def source_info_line : Option<"line", "l">, Group<1>, Arg<"LineNum">,
836    Desc<"The line number at which to start the displaying lines.">;
837  def source_info_end_line : Option<"end-line", "e">, Group<1>, Arg<"LineNum">,
838    Desc<"The line number at which to stop displaying lines.">;
839  def source_info_name : Option<"name", "n">, Group<2>, Arg<"Symbol">,
840    Completion<"Symbol">,
841    Desc<"The name of a function whose source to display.">;
842  def source_info_address : Option<"address", "a">, Group<3>,
843    Arg<"AddressOrExpression">, Desc<"Lookup the address and display the source"
844    " information for the corresponding file and line.">;
845}
846
847let Command = "source list" in {
848  def source_list_count : Option<"count", "c">, Arg<"Count">,
849    Desc<"The number of source lines to display.">;
850  def source_list_shlib : Option<"shlib", "s">, Groups<[1,2,5]>, Arg<"ShlibName">,
851    Completion<"Module">,
852    Desc<"Look up the source file in the given shared library.">;
853  def source_list_show_breakpoints : Option<"show-breakpoints", "b">,
854    Desc<"Show the line table locations from the debug information that "
855    "indicate valid places to set source level breakpoints.">;
856  def source_list_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
857    Completion<"SourceFile">, Desc<"The file from which to display source.">;
858  def source_list_line : Option<"line", "l">, Group<1>, Arg<"LineNum">,
859    Desc<"The line number at which to start the display source.">;
860  def source_list_name : Option<"name", "n">, Group<2>, Arg<"Symbol">,
861    Completion<"Symbol">,
862    Desc<"The name of a function whose source to display.">;
863  def source_list_address : Option<"address", "a">, Group<3>,
864    Arg<"AddressOrExpression">, Desc<"Lookup the address and display the source"
865    " information for the corresponding file and line.">;
866  def source_list_reverse : Option<"reverse", "r">, Group<4>, Desc<"Reverse the"
867    " listing to look backwards from the last displayed block of source.">;
868  def source_list_file_colon_line : Option<"joint-specifier", "y">, Group<5>,
869    Arg<"FileLineColumn">, Completion<"SourceFile">,
870    Desc<"A specifier in the form filename:line[:column] from which to display"
871         " source.">;
872}
873
874let Command = "target dependents" in {
875  def dependents_no_dependents : Option<"no-dependents", "d">, Group<1>,
876    OptionalEnumArg<"Value">,
877    Desc<"Whether or not to load dependents when creating a target. If the "
878         "option is not specified, the value is implicitly 'default'. If the "
879         "option is specified but without a value, the value is implicitly "
880         "'true'.">;
881}
882
883let Command = "target modules dump" in {
884  def target_modules_dump_verbose : Option<"verbose", "v">,
885    Desc<"Enable verbose dump.">;
886}
887
888let Command = "target modules list" in {
889  def target_modules_list_address : Option<"address", "a">, Group<1>,
890    Arg<"AddressOrExpression">, Desc<"Display the image at this address.">;
891  def target_modules_list_arch : Option<"arch", "A">, Group<1>,
892    OptionalArg<"Width">, Desc<"Display the architecture when listing images.">;
893  def target_modules_list_triple : Option<"triple", "t">, Group<1>,
894    OptionalArg<"Width">, Desc<"Display the triple when listing images.">;
895  def target_modules_list_header : Option<"header", "h">, Group<1>,
896    Desc<"Display the image base address as a load address if debugging, a file"
897    " address otherwise.">;
898  def target_modules_list_offset : Option<"offset", "o">, Group<1>,
899    Desc<"Display the image load address offset from the base file address "
900    "(the slide amount).">;
901  def target_modules_list_uuid : Option<"uuid", "u">, Group<1>,
902    Desc<"Display the UUID when listing images.">;
903  def target_modules_list_fullpath : Option<"fullpath", "f">, Group<1>,
904    OptionalArg<"Width">,
905    Desc<"Display the fullpath to the image object file.">;
906  def target_modules_list_directory : Option<"directory", "d">, Group<1>,
907    OptionalArg<"Width">, Desc<"Display the directory with optional width for "
908    "the image object file.">;
909  def target_modules_list_basename : Option<"basename", "b">, Group<1>,
910    OptionalArg<"Width">, Desc<"Display the basename with optional width for "
911    "the image object file.">;
912  def target_modules_list_symfile : Option<"symfile", "s">, Group<1>,
913    OptionalArg<"Width">, Desc<"Display the fullpath to the image symbol file "
914    "with optional width.">;
915  def target_modules_list_symfile_unique : Option<"symfile-unique", "S">,
916    Group<1>, OptionalArg<"Width">, Desc<"Display the symbol file with optional"
917    " width only if it is different from the executable object file.">;
918  def target_modules_list_mod_time : Option<"mod-time", "m">, Group<1>,
919    OptionalArg<"Width">, Desc<"Display the modification time with optional "
920    "width of the module.">;
921  def target_modules_list_ref_count : Option<"ref-count", "r">, Group<1>,
922    OptionalArg<"Width">, Desc<"Display the reference count if the module is "
923    "still in the shared module cache.">;
924  def target_modules_list_pointer : Option<"pointer", "p">, Group<1>,
925    OptionalArg<"None">, Desc<"Display the module pointer.">;
926  def target_modules_list_global : Option<"global", "g">, Group<1>,
927    Desc<"Display the modules from the global module list, not just the "
928    "current target.">;
929}
930
931let Command = "target modules show unwind" in {
932  def target_modules_show_unwind_name : Option<"name", "n">, Group<1>,
933    Arg<"FunctionName">,
934    Desc<"Show unwind instructions for a function or symbol name.">;
935  def target_modules_show_unwind_address : Option<"address", "a">, Group<2>,
936    Arg<"AddressOrExpression">, Desc<"Show unwind instructions for a function "
937    "or symbol containing an address">;
938}
939
940let Command = "target modules lookup" in {
941  def target_modules_lookup_address : Option<"address", "a">, Group<1>,
942    Arg<"AddressOrExpression">, Required, Desc<"Lookup an address in one or "
943    "more target modules.">;
944  def target_modules_lookup_offset : Option<"offset", "o">, Group<1>,
945    Arg<"Offset">, Desc<"When looking up an address subtract <offset> from any "
946    "addresses before doing the lookup.">;
947  // FIXME: re-enable regex for types when the LookupTypeInModule actually uses
948  // the regex option by adding to group 6.
949  def target_modules_lookup_regex : Option<"regex", "r">, Groups<[2,4,5]>,
950    Desc<"The <name> argument for name lookups are regular expressions.">;
951  def target_modules_lookup_symbol : Option<"symbol", "s">, Group<2>,
952    Arg<"Symbol">, Required, Desc<"Lookup a symbol by name in the symbol tables"
953    " in one or more target modules.">;
954  def target_modules_lookup_file : Option<"file", "f">, Group<3>,
955    Arg<"Filename">, Required, Desc<"Lookup a file by fullpath or basename in "
956    "one or more target modules.">;
957  def target_modules_lookup_line : Option<"line", "l">, Group<3>,
958    Arg<"LineNum">, Desc<"Lookup a line number in a file (must be used in "
959    "conjunction with --file).">;
960  def target_modules_lookup_no_inlines : Option<"no-inlines", "i">,
961    GroupRange<3,5>,
962    Desc<"Ignore inline entries (must be used in conjunction with --file or "
963    "--function).">;
964  def target_modules_lookup_function : Option<"function", "F">, Group<4>,
965    Arg<"FunctionName">, Required, Desc<"Lookup a function by name in the debug"
966    " symbols in one or more target modules.">;
967  def target_modules_lookup_name : Option<"name", "n">, Group<5>,
968    Arg<"FunctionOrSymbol">, Required, Desc<"Lookup a function or symbol by "
969    "name in one or more target modules.">;
970  def target_modules_lookup_type : Option<"type", "t">, Group<6>, Arg<"Name">,
971    Required, Desc<"Lookup a type by name in the debug symbols in one or more "
972    "target modules.">;
973  def target_modules_lookup_variables_ranges : Option<"show-variable-ranges",
974    "\\x01">, GroupRange<1, 6>, Desc<"Dump valid ranges of variables (must be "
975    "used in conjunction with --verbose">;
976  def target_modules_lookup_verbose : Option<"verbose", "v">,
977    Desc<"Enable verbose lookup information.">;
978  def target_modules_lookup_all : Option<"all", "A">, Desc<"Print all matches, "
979    "not just the best match, if a best match is available.">;
980}
981
982let Command = "target stop hook add" in {
983  def target_stop_hook_add_one_liner : Option<"one-liner", "o">, GroupRange<1,3>,
984    Arg<"OneLiner">, Desc<"Add a command for the stop hook.  Can be specified "
985    "more than once, and commands will be run in the order they appear.">;
986  def target_stop_hook_add_shlib : Option<"shlib", "s">, Arg<"ShlibName">,
987    Completion<"Module">,
988    Desc<"Set the module within which the stop-hook is to be run.">;
989  def target_stop_hook_add_thread_index : Option<"thread-index", "x">,
990    Arg<"ThreadIndex">, Desc<"The stop hook is run only for the thread whose "
991    "index matches this argument.">;
992  def target_stop_hook_add_thread_id : Option<"thread-id", "t">,
993    Arg<"ThreadID">, Desc<"The stop hook is run only for the thread whose TID "
994    "matches this argument.">;
995  def target_stop_hook_add_thread_name : Option<"thread-name", "T">,
996    Arg<"ThreadName">, Desc<"The stop hook is run only for the thread whose "
997    "thread name matches this argument.">;
998  def target_stop_hook_add_queue_name : Option<"queue-name", "q">,
999    Arg<"QueueName">, Desc<"The stop hook is run only for threads in the queue "
1000    "whose name is given by this argument.">;
1001  def target_stop_hook_add_file : Option<"file", "f">, Groups<[1,4]>,
1002    Arg<"Filename">, Desc<"Specify the source file within which the stop-hook "
1003    "is to be run.">, Completion<"SourceFile">;
1004  def target_stop_hook_add_start_line : Option<"start-line", "l">, Groups<[1,4]>,
1005    Arg<"LineNum">, Desc<"Set the start of the line range for which the "
1006    "stop-hook is to be run.">;
1007  def target_stop_hook_add_end_line : Option<"end-line", "e">, Groups<[1,4]>,
1008    Arg<"LineNum">, Desc<"Set the end of the line range for which the stop-hook"
1009    " is to be run.">;
1010  def target_stop_hook_add_classname : Option<"classname", "c">, Groups<[2,5]>,
1011    Arg<"ClassName">,
1012    Desc<"Specify the class within which the stop-hook is to be run.">;
1013  def target_stop_hook_add_name : Option<"name", "n">, Groups<[3,6]>,
1014    Arg<"FunctionName">, Desc<"Set the function name within which the stop hook"
1015    " will be run.">, Completion<"Symbol">;
1016  def target_stop_hook_add_auto_continue : Option<"auto-continue", "G">,
1017    Arg<"Boolean">, Desc<"The breakpoint will auto-continue after running its"
1018    " commands.">;
1019}
1020
1021let Command = "thread backtrace" in {
1022  def thread_backtrace_count : Option<"count", "c">, Group<1>, Arg<"Count">,
1023  Desc<"How many frames to display (-1 for all)">;
1024  def thread_backtrace_start : Option<"start", "s">, Group<1>,
1025  Arg<"FrameIndex">, Desc<"Frame in which to start the backtrace">;
1026  def thread_backtrace_extended : Option<"extended", "e">, Group<1>,
1027  Arg<"Boolean">, Desc<"Show the extended backtrace, if available">;
1028}
1029
1030let Command = "thread step scope" in {
1031  def thread_step_scope_step_in_avoids_no_debug :
1032    Option<"step-in-avoids-no-debug", "a">, Group<1>, Arg<"Boolean">,
1033    Desc<"A boolean value that sets whether stepping into functions will step "
1034    "over functions with no debug information.">;
1035  def thread_step_scope_step_out_avoids_no_debug :
1036    Option<"step-out-avoids-no-debug", "A">, Group<1>, Arg<"Boolean">,
1037    Desc<"A boolean value, if true stepping out of functions will continue to"
1038    " step out till it hits a function with debug information.">;
1039  def thread_step_scope_count : Option<"count", "c">, Group<1>, Arg<"Count">,
1040    Desc<"How many times to perform the stepping operation - currently only "
1041    "supported for step-inst and next-inst.">;
1042  def thread_step_scope_end_linenumber : Option<"end-linenumber", "e">,
1043    Group<1>, Arg<"LineNum">, Desc<"The line at which to stop stepping - "
1044      "defaults to the next line and only supported for step-in and step-over."
1045      "  You can also pass the string 'block' to step to the end of the current"
1046      " block.  This is particularly use  in conjunction with --step-target to"
1047      " step through a complex calling sequence.">;
1048  def thread_step_scope_run_mode : Option<"run-mode", "m">, Group<1>,
1049    EnumArg<"RunMode">, Desc<"Determine how to run other "
1050    "threads while stepping the current thread.">;
1051  def thread_step_scope_step_over_regexp : Option<"step-over-regexp", "r">,
1052    Group<1>, Arg<"RegularExpression">, Desc<"A regular expression that defines "
1053    "function names to not to stop at when stepping in.">;
1054  def thread_step_scope_step_in_target : Option<"step-in-target", "t">,
1055    Group<1>, Arg<"FunctionName">, Desc<"The name of the directly called "
1056    "function step in should stop at when stepping into.">;
1057}
1058
1059let Command = "thread until" in {
1060  def thread_until_frame : Option<"frame", "f">, Group<1>, Arg<"FrameIndex">,
1061    Desc<"Frame index for until operation - defaults to 0">;
1062  def thread_until_thread : Option<"thread", "t">, Group<1>, Arg<"ThreadIndex">,
1063    Desc<"Thread index for the thread for until operation">;
1064  def thread_until_run_mode : Option<"run-mode", "m">, Group<1>,
1065    EnumArg<"RunMode">, Desc<"Determine how to run other "
1066    "threads while stepping this one">;
1067  def thread_until_address : Option<"address", "a">, Group<1>,
1068    Arg<"AddressOrExpression">, Desc<"Run until we reach the specified address, "
1069    "or leave the function - can be specified multiple times.">;
1070}
1071
1072let Command = "thread info" in {
1073  def thread_info_json : Option<"json", "j">, Desc<"Display the thread info in"
1074    " JSON format.">;
1075  def thread_info_stop_info : Option<"stop-info", "s">, Desc<"Display the "
1076    "extended stop info in JSON format.">;
1077}
1078
1079let Command = "thread return" in {
1080  def thread_return_from_expression : Option<"from-expression", "x">,
1081    Desc<"Return from the innermost expression evaluation.">;
1082}
1083
1084let Command = "thread jump" in {
1085  def thread_jump_file : Option<"file", "f">, Group<1>, Arg<"Filename">,
1086    Completion<"SourceFile">, Desc<"Specifies the source file to jump to.">;
1087  def thread_jump_line : Option<"line", "l">, Group<1>, Arg<"LineNum">,
1088    Required, Desc<"Specifies the line number to jump to.">;
1089  def thread_jump_by : Option<"by", "b">, Group<2>, Arg<"Offset">, Required,
1090    Desc<"Jumps by a relative line offset from the current line.">;
1091  def thread_jump_address : Option<"address", "a">, Group<3>,
1092    Arg<"AddressOrExpression">, Required, Desc<"Jumps to a specific address.">;
1093  def thread_jump_force : Option<"force", "r">, Groups<[1,2,3]>,
1094    Desc<"Allows the PC to leave the current function.">;
1095}
1096
1097let Command = "thread plan list" in {
1098  def thread_plan_list_verbose : Option<"verbose", "v">, Group<1>,
1099    Desc<"Display more information about the thread plans">;
1100  def thread_plan_list_internal : Option<"internal", "i">, Group<1>,
1101    Desc<"Display internal as well as user thread plans">;
1102  def thread_plan_list_thread_id : Option<"thread-id", "t">, Group<1>,
1103    Arg<"ThreadID">, Desc<"List the thread plans for this TID, can be "
1104    "specified more than once.">;
1105  def thread_plan_list_unreported : Option<"unreported", "u">, Group<1>,
1106    Desc<"Display thread plans for unreported threads">;
1107}
1108
1109let Command = "thread trace dump function calls" in {
1110  def thread_trace_dump_function_calls_file : Option<"file", "F">, Group<1>,
1111    Arg<"Filename">,
1112    Desc<"Dump the function calls to a file instead of the standard output.">;
1113  def thread_trace_dump_function_calls_json: Option<"json", "j">,
1114    Group<1>,
1115    Desc<"Dump in simple JSON format.">;
1116  def thread_trace_dump_function_calls_pretty_json: Option<"pretty-json", "J">,
1117    Group<1>,
1118    Desc<"Dump in JSON format but pretty printing the output for easier "
1119    "readability.">;
1120}
1121
1122let Command = "thread trace dump instructions" in {
1123  def thread_trace_dump_instructions_forwards: Option<"forwards", "f">,
1124    Group<1>,
1125    Desc<"If specified, the trace is traversed forwards chronologically "
1126    "starting at the oldest instruction. Otherwise, it starts at the most "
1127    "recent one and the traversal is backwards.">;
1128  def thread_trace_dump_instructions_count : Option<"count", "c">, Group<1>,
1129    Arg<"Count">,
1130    Desc<"The number of instructions to display starting at the most recent "
1131    "instruction, or the oldest if --forwards is provided.">;
1132  def thread_trace_dump_instructions_all : Option<"all", "a">, Group<1>,
1133    Desc<"From the starting point of the trace, dump all instructions "
1134    "available.">;
1135  def thread_trace_dump_instructions_id: Option<"id", "i">, Group<1>,
1136    Arg<"Index">,
1137    Desc<"Custom starting instruction id from where to start traversing. This "
1138    "id can be provided in decimal or hexadecimal representation.">;
1139  def thread_trace_dump_instructions_skip: Option<"skip", "s">, Group<1>,
1140    Arg<"Index">,
1141    Desc<"How many trace items (instructions, errors and events) to skip from "
1142    "the starting position of the trace before starting the traversal.">;
1143  def thread_trace_dump_instructions_raw : Option<"raw", "r">, Group<1>,
1144    Desc<"Dump only instruction address without disassembly nor symbol "
1145    "information.">;
1146  def thread_trace_dump_instructions_file : Option<"file", "F">, Group<1>,
1147    Arg<"Filename">,
1148    Desc<"Dump the instruction to a file instead of the standard output.">;
1149  def thread_trace_dump_instructions_json: Option<"json", "j">,
1150    Group<1>,
1151    Desc<"Dump in simple JSON format.">;
1152  def thread_trace_dump_instructions_pretty_print: Option<"pretty-json", "J">,
1153    Group<1>,
1154    Desc<"Dump in JSON format but pretty printing the output for easier "
1155    "readability.">;
1156  def thread_trace_dump_instructions_show_kind : Option<"kind", "k">, Group<1>,
1157    Desc<"Show instruction control flow kind. Refer to the enum "
1158    "`InstructionControlFlowKind` for a list of control flow kind. "
1159    "As an important note, far jumps, far calls and far returns often indicate "
1160    "calls to and from kernel.">;
1161  def thread_trace_dump_instructions_show_timestamps: Option<"time", "t">,
1162    Group<1>,
1163    Desc<"For each trace item, print the corresponding wall clock timestamp "
1164    "if available.">;
1165  def thread_trace_dump_instructions_show_events : Option<"events", "e">,
1166    Group<1>,
1167    Desc<"Dump the events that happened during the execution of the target.">;
1168  def thread_trace_dump_instruction_only_events : Option<"only-events", "E">,
1169    Group<1>,
1170    Desc<"Dump only the events that happened during the execution of the "
1171    "target. No instrutions are dumped.">;
1172  def thread_trace_dump_instructions_continue: Option<"continue", "C">,
1173    Group<1>,
1174    Desc<"Continue dumping instructions right where the previous invocation of "
1175    "this command was left, or from the beginning if this is the first "
1176    "invocation. The --skip argument is discarded and the other arguments are "
1177    "preserved from the previous invocation when possible.">;
1178}
1179
1180let Command = "thread trace dump info" in {
1181  def thread_trace_dump_info_verbose : Option<"verbose", "v">, Group<1>,
1182    Desc<"show verbose thread trace dump info">;
1183  def thread_trace_dump_info_json: Option<"json", "j">, Group<1>,
1184    Desc<"Dump in JSON format.">;
1185}
1186
1187let Command = "type summary add" in {
1188  def type_summary_add_category : Option<"category", "w">, Arg<"Name">,
1189    Desc<"Add this to the given category instead of the default one.">;
1190  def type_summary_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
1191    Desc<"If true, cascade through typedef chains.">;
1192  def type_summary_add_no_value : Option<"no-value", "v">,
1193    Desc<"Don't show the value, just show the summary, for this type.">;
1194  def type_summary_add_skip_pointers : Option<"skip-pointers", "p">,
1195    Desc<"Don't use this format for pointers-to-type objects.">;
1196  def type_summary_add_skip_references : Option<"skip-references", "r">,
1197    Desc<"Don't use this format for references-to-type objects.">;
1198  def type_summary_add_regex : Option<"regex", "x">,
1199    Desc<"Type names are actually regular expressions.">;
1200  def type_summary_add_recognizer_function :
1201    Option<"recognizer-function", "\\x01">,
1202    Desc<"The names in the argument list are actually the names of python "
1203    "functions that decide whether to use this summary for any given type. "
1204    "Cannot be specified at the same time as --regex (-x).">;
1205  def type_summary_add_inline_children : Option<"inline-children", "c">,
1206    Group<1>, Required,
1207    Desc<"If true, inline all child values into summary string.">;
1208  def type_summary_add_omit_names : Option<"omit-names", "O">, Group<1>,
1209    Desc<"If true, omit value names in the summary display.">;
1210  def type_summary_add_summary_string : Option<"summary-string", "s">, Group<2>,
1211    Arg<"SummaryString">, Required,
1212    Desc<"Summary string used to display text and object contents.">;
1213  def type_summary_add_python_script : Option<"python-script", "o">, Group<3>,
1214    Arg<"PythonScript">,
1215    Desc<"Give a one-liner Python script as part of the command.">;
1216  def type_summary_add_python_function : Option<"python-function", "F">,
1217    Group<3>, Arg<"PythonFunction">,
1218    Desc<"Give the name of a Python function to use for this type.">;
1219  def type_summary_add_input_python : Option<"input-python", "P">, Group<3>,
1220    Desc<"Input Python code to use for this type manually.">;
1221  def type_summary_add_expand : Option<"expand", "e">, Groups<[2,3]>,
1222    Desc<"Expand aggregate data types to show children on separate lines.">;
1223  def type_summary_add_hide_empty : Option<"hide-empty", "h">, Groups<[2,3]>,
1224    Desc<"Do not expand aggregate data types with no children.">;
1225  def type_summary_add_name : Option<"name", "n">, Groups<[2,3]>, Arg<"Name">,
1226    Desc<"A name for this summary string.">;
1227}
1228
1229let Command = "type synth add" in {
1230  def type_synth_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
1231    Desc<"If true, cascade through typedef chains.">;
1232  def type_synth_add_skip_pointers : Option<"skip-pointers", "p">,
1233    Desc<"Don't use this format for pointers-to-type objects.">;
1234  def type_synth_add_skip_references : Option<"skip-references", "r">,
1235    Desc<"Don't use this format for references-to-type objects.">;
1236  def type_synth_add_category : Option<"category", "w">, Arg<"Name">,
1237    Desc<"Add this to the given category instead of the default one.">;
1238  def type_synth_add_python_class : Option<"python-class", "l">, Group<2>,
1239    Arg<"PythonClass">,
1240    Desc<"Use this Python class to produce synthetic children.">;
1241  def type_synth_add_input_python : Option<"input-python", "P">, Group<3>,
1242    Desc<"Type Python code to generate a class that provides synthetic "
1243    "children.">;
1244  def type_synth_add_regex : Option<"regex", "x">,
1245    Desc<"Type names are actually regular expressions.">;
1246  def type_synth_add_recognizer_function :
1247    Option<"recognizer-function", "\\x01">,
1248    Desc<"The names in the argument list are actually the names of python "
1249    "functions that decide whether to use this summary for any given type. "
1250    "Cannot be specified at the same time as --regex (-x).">;
1251}
1252
1253let Command = "type format add" in {
1254  def type_format_add_category : Option<"category", "w">, Arg<"Name">,
1255    Desc<"Add this to the given category instead of the default one.">;
1256  def type_format_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
1257    Desc<"If true, cascade through typedef chains.">;
1258  def type_format_add_skip_pointers : Option<"skip-pointers", "p">,
1259    Desc<"Don't use this format for pointers-to-type objects.">;
1260  def type_format_add_skip_references : Option<"skip-references", "r">,
1261    Desc<"Don't use this format for references-to-type objects.">;
1262  def type_format_add_regex : Option<"regex", "x">,
1263    Desc<"Type names are actually regular expressions.">;
1264  def type_format_add_type : Option<"type", "t">, Group<2>, Arg<"Name">,
1265    Desc<"Format variables as if they were of this type.">;
1266}
1267
1268let Command = "type formatter delete" in {
1269  def type_formatter_delete_all : Option<"all", "a">, Group<1>,
1270    Desc<"Delete from every category.">;
1271  def type_formatter_delete_category : Option<"category", "w">, Group<2>,
1272    Arg<"Name">, Desc<"Delete from given category.">;
1273  def type_formatter_delete_language : Option<"language", "l">, Group<3>,
1274    Arg<"Language">, Desc<"Delete from given language's category.">;
1275}
1276
1277let Command = "type formatter clear" in {
1278  def type_formatter_clear_all : Option<"all", "a">,
1279    Desc<"Clear every category.">;
1280}
1281
1282let Command = "type formatter list" in {
1283  def type_formatter_list_category_regex : Option<"category-regex", "w">,
1284    Group<1>, Arg<"Name">, Desc<"Only show categories matching this filter.">;
1285  def type_formatter_list_language : Option<"language", "l">, Group<2>,
1286    Arg<"Language">, Desc<"Only show the category for a specific language.">;
1287}
1288
1289let Command = "type category define" in {
1290  def type_category_define_enabled : Option<"enabled", "e">,
1291    Desc<"If specified, this category will be created enabled.">;
1292  def type_category_define_language : Option<"language", "l">, Arg<"Language">,
1293    Desc<"Specify the language that this category is supported for.">;
1294}
1295
1296let Command = "type category enable" in {
1297  def type_category_enable_language : Option<"language", "l">, Arg<"Language">,
1298    Desc<"Enable the category for this language.">;
1299}
1300
1301let Command = "type category disable" in {
1302  def type_category_disable_language : Option<"language", "l">, Arg<"Language">,
1303    Desc<"Enable the category for this language.">;
1304}
1305
1306let Command = "type filter add" in {
1307  def type_filter_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
1308    Desc<"If true, cascade through typedef chains.">;
1309  def type_filter_add_skip_pointers : Option<"skip-pointers", "p">,
1310    Desc<"Don't use this format for pointers-to-type objects.">;
1311  def type_filter_add_skip_references : Option<"skip-references", "r">,
1312    Desc<"Don't use this format for references-to-type objects.">;
1313  def type_filter_add_category : Option<"category", "w">, Arg<"Name">,
1314    Desc<"Add this to the given category instead of the default one.">;
1315  def type_filter_add_child : Option<"child", "c">, Arg<"ExpressionPath">,
1316    Desc<"Include this expression path in the synthetic view.">;
1317  def type_filter_add_regex : Option<"regex", "x">,
1318    Desc<"Type names are actually regular expressions.">;
1319}
1320
1321let Command = "type lookup" in {
1322  def type_lookup_show_help : Option<"show-help", "h">,
1323    Desc<"Display available help for types">;
1324  def type_lookup_language : Option<"language", "l">, Arg<"Language">,
1325    Desc<"Which language's types should the search scope be">;
1326}
1327
1328let Command = "watchpoint list" in {
1329  def watchpoint_list_brief : Option<"brief", "b">, Group<1>, Desc<"Give a "
1330    "brief description of the watchpoint (no location info).">;
1331  def watchpoint_list_full : Option<"full", "f">, Group<2>, Desc<"Give a full "
1332    "description of the watchpoint and its locations.">;
1333  def watchpoint_list_verbose : Option<"verbose", "v">, Group<3>, Desc<"Explain "
1334    "everything we know about the watchpoint (for debugging debugger bugs).">;
1335}
1336
1337let Command = "watchpoint ignore" in {
1338  def watchpoint_ignore_ignore_count : Option<"ignore-count", "i">,
1339    Arg<"Count">, Required, Desc<"Set the number of times this watchpoint is"
1340    " skipped before stopping.">;
1341}
1342
1343let Command = "watchpoint modify" in {
1344  def watchpoint_modify_condition : Option<"condition", "c">, Arg<"Expression">,
1345    Desc<"The watchpoint stops only if this condition expression evaluates "
1346    "to true.">;
1347}
1348
1349let Command = "watchpoint command add" in {
1350  def watchpoint_command_add_one_liner : Option<"one-liner", "o">, Group<1>,
1351    Arg<"OneLiner">, Desc<"Specify a one-line watchpoint command inline. Be "
1352    "sure to surround it with quotes.">;
1353  def watchpoint_command_add_stop_on_error : Option<"stop-on-error", "e">,
1354    Arg<"Boolean">, Desc<"Specify whether watchpoint command execution should "
1355    "terminate on error.">;
1356  def watchpoint_command_add_script_type : Option<"script-type", "s">,
1357    EnumArg<"ScriptLang">, Desc<"Specify the language for the"
1358    " commands - if none is specified, the lldb command interpreter will be "
1359    "used.">;
1360  def watchpoint_command_add_python_function : Option<"python-function", "F">,
1361    Group<2>, Arg<"PythonFunction">, Desc<"Give the name of a Python function "
1362    "to run as command for this watchpoint. Be sure to give a module name if "
1363    "appropriate.">;
1364}
1365
1366let Command = "watchpoint delete" in {
1367  def watchpoint_delete_force : Option<"force", "f">, Group<1>,
1368    Desc<"Delete all watchpoints without querying for confirmation.">;
1369}
1370
1371let Command = "trace load" in {
1372  def trace_load_verbose : Option<"verbose", "v">, Group<1>,
1373    Desc<"Show verbose trace load logging for debugging the plug-in "
1374    "implementation.">;
1375}
1376
1377let Command = "trace save" in {
1378  def trace_save_compact: Option<"compact", "c">,
1379    Group<1>,
1380    Desc<"Try not to save to disk information irrelevant to the traced "
1381        "processes. Each trace plug-in implements this in a different "
1382        "fashion.">;
1383}
1384
1385let Command = "trace dump" in {
1386  def trace_dump_verbose : Option<"verbose", "v">, Group<1>,
1387    Desc<"Show verbose trace information.">;
1388}
1389
1390let Command = "trace schema" in {
1391  def trace_schema_verbose : Option<"verbose", "v">, Group<1>,
1392    Desc<"Show verbose trace schema logging for debugging the plug-in.">;
1393}
1394
1395let Command = "statistics dump" in {
1396  def statistics_dump_all: Option<"all-targets", "a">, Group<1>,
1397    Desc<"Include statistics for all targets.">;
1398}
1399