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", "OptionEnumValues(g_sort_option_enumeration)">; 7} 8 9let Command = "help" in { 10 def help_hide_aliases : Option<"hide-aliases", "a">, 11 Desc<"Hide aliases in the command list.">; 12 def help_hide_user : Option<"hide-user-commands", "u">, 13 Desc<"Hide user-defined commands from the list.">; 14 def help_show_hidden : Option<"show-hidden-commands", "h">, 15 Desc<"Include commands prefixed with an underscore.">; 16} 17 18let Command = "settings set" in { 19 def setset_global : Option<"global", "g">, Arg<"Filename">, 20 Completion<"DiskFile">, 21 Desc<"Apply the new value to the global default value.">; 22 def setset_force : Option<"force", "f">, 23 Desc<"Force an empty value to be accepted as the default.">; 24} 25 26let Command = "settings write" in { 27 def setwrite_file : Option<"file", "f">, Required, Arg<"Filename">, 28 Completion<"DiskFile">, 29 Desc<"The file into which to write the settings.">; 30 def setwrite_append : Option<"append", "a">, 31 Desc<"Append to saved settings file if it exists.">; 32} 33 34let Command = "settings read" in { 35 def setread_file : Option<"file", "f">, Required, Arg<"Filename">, 36 Completion<"DiskFile">, 37 Desc<"The file from which to read the settings.">; 38} 39 40let Command = "breakpoint list" in { 41 // FIXME: We need to add an "internal" command, and then add this sort of 42 // thing to it. But I need to see it for now, and don't want to wait. 43 def blist_internal : Option<"internal", "i">, 44 Desc<"Show debugger internal breakpoints">; 45 def blist_brief : Option<"brief", "b">, Group<1>, 46 Desc<"Give a brief description of the breakpoint (no location info).">; 47 def blist_full : Option<"full", "f">, Group<2>, 48 Desc<"Give a full description of the breakpoint and its locations.">; 49 def blist_verbose : Option<"verbose", "v">, Group<3>, 50 Desc<"Explain everything we know about the breakpoint (for debugging " 51 "debugger bugs).">; 52 def blist_dummy_bp : Option<"dummy-breakpoints", "D">, 53 Desc<"List Dummy breakpoints - i.e. breakpoints set before a file is " 54 "provided, which prime new targets.">; 55} 56 57let Command = "breakpoint modify" in { 58 def breakpoint_modify_ignore_count : Option<"ignore-count", "i">, Group<1>, 59 Arg<"Count">, 60 Desc<"Set the number of times this breakpoint is skipped before stopping.">; 61 def breakpoint_modify_one_shot : Option<"one-shot", "o">, Group<1>, 62 Arg<"Boolean">, 63 Desc<"The breakpoint is deleted the first time it stop causes a stop.">; 64 def breakpoint_modify_thread_index : Option<"thread-index", "x">, Group<1>, 65 Arg<"ThreadIndex">, Desc<"The breakpoint stops only for the thread whose " 66 "index matches this argument.">; 67 def breakpoint_modify_thread_id : Option<"thread-id", "t">, Group<1>, 68 Arg<"ThreadID">, Desc<"The breakpoint stops only for the thread whose TID " 69 "matches this argument.">; 70 def breakpoint_modify_thread_name : Option<"thread-name", "T">, Group<1>, 71 Arg<"ThreadName">, Desc<"The breakpoint stops only for the thread whose " 72 "thread name matches this argument.">; 73 def breakpoint_modify_queue_name : Option<"queue-name", "q">, Group<1>, 74 Arg<"QueueName">, Desc<"The breakpoint stops only for threads in the queue " 75 "whose name is given by this argument.">; 76 def breakpoint_modify_condition : Option<"condition", "c">, Group<1>, 77 Arg<"Expression">, Desc<"The breakpoint stops only if this condition " 78 "expression evaluates to true.">; 79 def breakpoint_modify_auto_continue : Option<"auto-continue", "G">, Group<1>, 80 Arg<"Boolean">, 81 Desc<"The breakpoint will auto-continue after running its commands.">; 82 def breakpoint_modify_enable : Option<"enable", "e">, Group<2>, 83 Desc<"Enable the breakpoint.">; 84 def breakpoint_modify_disable : Option<"disable", "d">, Group<3>, 85 Desc<"Disable the breakpoint.">; 86 def breakpoint_modify_command : Option<"command", "C">, Group<4>, 87 Arg<"Command">, 88 Desc<"A command to run when the breakpoint is hit, can be provided more " 89 "than once, the commands will get run in order left to right.">; 90} 91 92let Command = "breakpoint dummy" in { 93 def breakpoint_dummy_options_dummy_breakpoints : 94 Option<"dummy-breakpoints", "D">, Group<1>, 95 Desc<"Act on Dummy breakpoints - i.e. breakpoints set before a file is " 96 "provided, which prime new targets.">; 97} 98 99let Command = "breakpoint set" in { 100 def breakpoint_set_shlib : Option<"shlib", "s">, Arg<"ShlibName">, 101 Completion<"Module">, Groups<[1,2,3,4,5,6,7,8,9,11]>, // *not* in group 10 102 Desc<"Set the breakpoint only in this shared library. Can repeat this " 103 "option multiple times to specify multiple shared libraries.">; 104 def breakpoint_set_hardware : Option<"hardware", "H">, 105 Desc<"Require the breakpoint to use hardware breakpoints.">; 106 def breakpoint_set_file : Option<"file", "f">, Arg<"Filename">, 107 Completion<"SourceFile">, Groups<[1,3,4,5,6,7,8,9,11]>, 108 Desc<"Specifies the source file in which to set this breakpoint. Note, by " 109 "default lldb only looks for files that are #included if they use the " 110 "standard include file extensions. To set breakpoints on .c/.cpp/.m/.mm " 111 "files that are #included, set target.inline-breakpoint-strategy to " 112 "\"always\".">; 113 def breakpoint_set_line : Option<"line", "l">, Group<1>, Arg<"LineNum">, 114 Required, 115 Desc<"Specifies the line number on which to set this breakpoint.">; 116 def breakpoint_set_address : Option<"address", "a">, Group<2>, 117 Arg<"AddressOrExpression">, Required, 118 Desc<"Set the breakpoint at the specified address. If the address maps " 119 "uniquely toa particular binary, then the address will be converted to " 120 "a \"file\"address, so that the breakpoint will track that binary+offset " 121 "no matter where the binary eventually loads. Alternately, if you also " 122 "specify the module - with the -s option - then the address will be " 123 "treated as a file address in that module, and resolved accordingly. " 124 "Again, this will allow lldb to track that offset on subsequent reloads. " 125 " The module need not have been loaded at the time you specify this " 126 "breakpoint, and will get resolved when the module is loaded.">; 127 def breakpoint_set_name : Option<"name", "n">, Group<3>, Arg<"FunctionName">, 128 Completion<"Symbol">, Required, 129 Desc<"Set the breakpoint by function name. Can be repeated multiple times " 130 "to makeone breakpoint for multiple names">; 131 def breakpoint_set_source_regexp_function : 132 Option<"source-regexp-function", "X">, Group<9>, Arg<"FunctionName">, 133 Completion<"Symbol">, 134 Desc<"When used with '-p' limits the source regex to source contained in " 135 "the namedfunctions. Can be repeated multiple times.">; 136 def breakpoint_set_fullname : Option<"fullname", "F">, Group<4>, 137 Arg<"FullName">, Required, Completion<"Symbol">, 138 Desc<"Set the breakpoint by fully qualified function names. For C++ this " 139 "means namespaces and all arguments, and for Objective-C this means a full " 140 "functionprototype with class and selector. Can be repeated multiple times" 141 " to make one breakpoint for multiple names.">; 142 def breakpoint_set_selector : Option<"selector", "S">, Group<5>, 143 Arg<"Selector">, Required, 144 Desc<"Set the breakpoint by ObjC selector name. Can be repeated multiple " 145 "times tomake one breakpoint for multiple Selectors.">; 146 def breakpoint_set_method : Option<"method", "M">, Group<6>, Arg<"Method">, 147 Required, Desc<"Set the breakpoint by C++ method names. Can be repeated " 148 "multiple times tomake one breakpoint for multiple methods.">; 149 def breakpoint_set_func_regex : Option<"func-regex", "r">, Group<7>, 150 Arg<"RegularExpression">, Required, Desc<"Set the breakpoint by function " 151 "name, evaluating a regular-expression to findthe function name(s).">; 152 def breakpoint_set_basename : Option<"basename", "b">, Group<8>, 153 Arg<"FunctionName">, Required, Completion<"Symbol">, 154 Desc<"Set the breakpoint by function basename (C++ namespaces and arguments" 155 " will beignored). Can be repeated multiple times to make one breakpoint " 156 "for multiplesymbols.">; 157 def breakpoint_set_source_pattern_regexp : 158 Option<"source-pattern-regexp", "p">, Group<9>, Arg<"RegularExpression">, 159 Required, Desc<"Set the breakpoint by specifying a regular expression which" 160 " is matched against the source text in a source file or files specified " 161 "with the -f can be specified more than once. If no source files " 162 "are specified, uses the current \"default source file\". If you want to " 163 "match against all source files, pass the \"--all-files\" option.">; 164 def breakpoint_set_all_files : Option<"all-files", "A">, Group<9>, 165 Desc<"All files are searched for source pattern matches.">; 166 def breakpoint_set_python_class : Option<"python-class", "P">, Group<11>, 167 Arg<"PythonClass">, Required, Desc<"The name of the class that implement " 168 "a scripted breakpoint.">; 169 def breakpoint_set_python_class_key : Option<"python-class-key", "k">, 170 Group<11>, Arg<"None">, 171 Desc<"The key for a key/value pair passed to the class that implements a " 172 "scripted breakpoint. Can be specified more than once.">; 173 def breakpoint_set_python_class_value : Option<"python-class-value", "v">, 174 Group<11>, Arg<"None">, Desc<"The value for the previous key in the pair " 175 "passed to the class that implements a scripted breakpoint. " 176 "Can be specified more than once.">; 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]>, 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]>, 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]>, Arg<"Boolean">, 204 Desc<"Move breakpoints to nearest code. If not set the " 205 "target.move-to-nearest-codesetting is used.">; 206 /* Don't add this option till it actually does something useful... 207 def breakpoint_set_exception_typename : Option<"exception-typename", "O">, 208 Arg<"TypeName">, Desc<"The breakpoint will only stop if an " 209 "exception Object of this type is thrown. Can be repeated multiple times " 210 "to stop for multiple object types">; 211 */ 212} 213 214let Command = "breakpoint clear" in { 215 def breakpoint_clear_file : Option<"file", "f">, Group<1>, Arg<"Filename">, 216 Completion<"SourceFile">, 217 Desc<"Specify the breakpoint by source location in this particular file.">; 218 def breakpoint_clear_line : Option<"line", "l">, Group<1>, Arg<"LineNum">, 219 Required, 220 Desc<"Specify the breakpoint by source location at this particular line.">; 221} 222 223let Command = "breakpoint delete" in { 224 def breakpoint_delete_force : Option<"force", "f">, Group<1>, 225 Desc<"Delete all breakpoints without querying for confirmation.">; 226 def breakpoint_delete_dummy_breakpoints : Option<"dummy-breakpoints", "D">, 227 Group<1>, Desc<"Delete Dummy breakpoints - i.e. breakpoints set before a " 228 "file is provided, which prime new targets.">; 229} 230 231let Command = "breakpoint name" in { 232 def breakpoint_name_name : Option<"name", "N">, Group<1>, 233 Arg<"BreakpointName">, Desc<"Specifies a breakpoint name to use.">; 234 def breakpoint_name_breakpoint_id : Option<"breakpoint-id", "B">, Group<2>, 235 Arg<"BreakpointID">, Desc<"Specify a breakpoint ID to use.">; 236 def breakpoint_name_dummy_breakpoints : Option<"dummy-breakpoints", "D">, 237 Group<3>, Desc<"Operate on Dummy breakpoints - i.e. breakpoints set before " 238 "a file is provided, which prime new targets.">; 239 def breakpoint_name_help_string : Option<"help-string", "H">, Group<4>, 240 Arg<"None">, Desc<"A help string describing the purpose of this name.">; 241} 242 243let Command = "breakpoint access" in { 244 def breakpoint_access_allow_list : Option<"allow-list", "L">, Group<1>, 245 Arg<"Boolean">, Desc<"Determines whether the breakpoint will show up in " 246 "break list if not referred to explicitly.">; 247 def breakpoint_access_allow_disable : Option<"allow-disable", "A">, Group<2>, 248 Arg<"Boolean">, Desc<"Determines whether the breakpoint can be disabled by " 249 "name or when all breakpoints are disabled.">; 250 def breakpoint_access_allow_delete : Option<"allow-delete", "D">, Group<3>, 251 Arg<"Boolean">, Desc<"Determines whether the breakpoint can be deleted by " 252 "name or when all breakpoints are deleted.">; 253} 254 255let Command = "breakpoint read" in { 256 def breakpoint_read_file : Option<"file", "f">, Arg<"Filename">, Required, 257 Completion<"DiskFile">, 258 Desc<"The file from which to read the breakpoints.">; 259 def breakpoint_read_breakpoint_name : Option<"breakpoint-name", "N">, 260 Arg<"BreakpointName">, Desc<"Only read in breakpoints with this name.">; 261} 262 263let Command = "breakpoint write" in { 264 def breakpoint_write_file : Option<"file", "f">, Arg<"Filename">, Required, 265 Completion<"DiskFile">, 266 Desc<"The file into which to write the breakpoints.">; 267 def breakpoint_write_append : Option<"append", "a">, 268 Desc<"Append to saved breakpoints file if it exists.">; 269} 270 271let Command = "breakpoint command add" in { 272 def breakpoint_add_one_liner : Option<"one-liner", "o">, Group<1>, 273 Arg<"OneLiner">, Desc<"Specify a one-line breakpoint command inline. Be " 274 "sure to surround it with quotes.">; 275 def breakpoint_add_stop_on_error : Option<"stop-on-error", "e">, 276 Arg<"Boolean">, Desc<"Specify whether breakpoint command execution should " 277 "terminate on error.">; 278 def breakpoint_add_script_type : Option<"script-type", "s">, 279 EnumArg<"None", "ScriptOptionEnum()">, 280 Desc<"Specify the language for the commands - if none is specified, the " 281 "lldb command interpreter will be used.">; 282 def breakpoint_add_python_function : Option<"python-function", "F">, 283 Group<2>, Arg<"PythonFunction">, 284 Desc<"Give the name of a Python function to run as command for this " 285 "breakpoint. Be sure to give a module name if appropriate.">; 286 def breakpoint_add_dummy_breakpoints : Option<"dummy-breakpoints", "D">, 287 Desc<"Sets Dummy breakpoints - i.e. breakpoints set before a file is " 288 "provided, which prime new targets.">; 289} 290 291let Command = "breakpoint command delete" in { 292 def breakpoint_command_delete_dummy_breakpoints : 293 Option<"dummy-breakpoints", "D">, Group<1>, 294 Desc<"Delete commands from Dummy breakpoints - i.e. breakpoints set before " 295 "a file is provided, which prime new targets.">; 296} 297 298let Command = "disassemble" in { 299 def disassemble_options_bytes : Option<"bytes", "b">, 300 Desc<"Show opcode bytes when disassembling.">; 301 def disassemble_options_context : Option<"context", "C">, Arg<"NumLines">, 302 Desc<"Number of context lines of source to show.">; 303 def disassemble_options_mixed : Option<"mixed", "m">, 304 Desc<"Enable mixed source and assembly display.">; 305 def disassemble_options_raw : Option<"raw", "r">, 306 Desc<"Print raw disassembly with no symbol information.">; 307 def disassemble_options_plugin : Option<"plugin", "P">, Arg<"Plugin">, 308 Desc<"Name of the disassembler plugin you want to use.">; 309 def disassemble_options_flavor : Option<"flavor", "F">, 310 Arg<"DisassemblyFlavor">, Desc<"Name of the disassembly flavor you want to " 311 "use. Currently the only valid options are default, and for Intel " 312 "architectures, att and intel.">; 313 def disassemble_options_arch : Option<"arch", "A">, Arg<"Architecture">, 314 Desc<"Specify the architecture to use from cross disassembly.">; 315 def disassemble_options_start_address : Option<"start-address", "s">, 316 Groups<[1,2]>, Arg<"AddressOrExpression">, Required, 317 Desc<"Address at which to start disassembling.">; 318 def disassemble_options_end_address : Option<"end-address", "e">, Group<1>, 319 Arg<"AddressOrExpression">, Desc<"Address at which to end disassembling.">; 320 def disassemble_options_count : Option<"count", "c">, Groups<[2,3,4,5]>, 321 Arg<"NumLines">, Desc<"Number of instructions to display.">; 322 def disassemble_options_name : Option<"name", "n">, Group<3>, 323 Arg<"FunctionName">, Completion<"Symbol">, 324 Desc<"Disassemble entire contents of the given function name.">; 325 def disassemble_options_frame : Option<"frame", "f">, Group<4>, 326 Desc<"Disassemble from the start of the current frame's function.">; 327 def disassemble_options_pc : Option<"pc", "p">, Group<5>, 328 Desc<"Disassemble around the current pc.">; 329 def disassemble_options_line : Option<"line", "l">, Group<6>, 330 Desc<"Disassemble the current frame's current source line instructions if" 331 "there is debug line table information, else disassemble around the pc.">; 332 def disassemble_options_address : Option<"address", "a">, Group<7>, 333 Arg<"AddressOrExpression">, 334 Desc<"Disassemble function containing this address.">; 335} 336 337let Command = "expression" in { 338 def expression_options_all_threads : Option<"all-threads", "a">, 339 Groups<[1,2]>, Arg<"Boolean">, Desc<"Should we run all threads if the " 340 "execution doesn't complete on one thread.">; 341 def expression_options_ignore_breakpoints : Option<"ignore-breakpoints", "i">, 342 Groups<[1,2]>, Arg<"Boolean">, 343 Desc<"Ignore breakpoint hits while running expressions">; 344 def expression_options_timeout : Option<"timeout", "t">, Groups<[1,2]>, 345 Arg<"UnsignedInteger">, 346 Desc<"Timeout value (in microseconds) for running the expression.">; 347 def expression_options_unwind_on_error : Option<"unwind-on-error", "u">, 348 Groups<[1,2]>, Arg<"Boolean">, 349 Desc<"Clean up program state if the expression causes a crash, or raises a " 350 "signal. Note, unlike gdb hitting a breakpoint is controlled by another " 351 "option (-i).">; 352 def expression_options_debug : Option<"debug", "g">, Groups<[1,2]>, 353 Desc<"When specified, debug the JIT code by setting a breakpoint on the " 354 "first instruction and forcing breakpoints to not be ignored (-i0) and no " 355 "unwinding to happen on error (-u0).">; 356 def expression_options_language : Option<"language", "l">, Groups<[1,2]>, 357 Arg<"Language">, Desc<"Specifies the Language to use when parsing the " 358 "expression. If not set the target.language setting is used.">; 359 def expression_options_apply_fixits : Option<"apply-fixits", "X">, 360 Groups<[1,2]>, Arg<"Language">, Desc<"If true, simple fix-it hints will be " 361 "automatically applied to the expression.">; 362 def expression_options_description_verbosity : 363 Option<"description-verbosity", "v">, Group<1>, 364 OptionalEnumArg<"DescriptionVerbosity", "DescriptionVerbosityTypes()">, 365 Desc<"How verbose should the output of this expression be, if the object " 366 "description is asked for.">; 367 def expression_options_top_level : Option<"top-level", "p">, Groups<[1,2]>, 368 Desc<"Interpret the expression as a complete translation unit, without " 369 "injecting it into the local context. Allows declaration of persistent, " 370 "top-level entities without a $ prefix.">; 371 def expression_options_allow_jit : Option<"allow-jit", "j">, Groups<[1,2]>, 372 Arg<"Boolean">, 373 Desc<"Controls whether the expression can fall back to being JITted if it's" 374 "not supported by the interpreter (defaults to true).">; 375} 376 377let Command = "frame diag" in { 378 def frame_diag_register : Option<"register", "r">, Group<1>, 379 Arg<"RegisterName">, Desc<"A register to diagnose.">; 380 def frame_diag_address : Option<"address", "a">, Group<1>, Arg<"Address">, 381 Desc<"An address to diagnose.">; 382 def frame_diag_offset : Option<"offset", "o">, Group<1>, Arg<"Offset">, 383 Desc<"An optional offset. Requires --register.">; 384} 385 386let Command = "frame select" in { 387 def frame_select_relative : Option<"relative", "r">, Group<1>, Arg<"Offset">, 388 Desc<"A relative frame index offset from the current frame index.">; 389} 390 391let Command = "frame recognizer add" in { 392 def frame_recognizer_shlib : Option<"shlib", "s">, Arg<"ShlibName">, 393 Completion<"Module">, 394 Desc<"Name of the module or shared library that this recognizer applies " 395 "to.">; 396 def frame_recognizer_function : Option<"function", "n">, Arg<"Name">, 397 Completion<"Symbol">, 398 Desc<"Name of the function that this recognizer applies to.">; 399 def frame_recognizer_python_class : Option<"python-class", "l">, Group<2>, 400 Arg<"PythonClass">, 401 Desc<"Give the name of a Python class to use for this frame recognizer.">; 402 def frame_recognizer_regex : Option<"regex", "x">, 403 Desc<"Function name and module name are actually regular expressions.">; 404} 405 406let Command = "history" in { 407 def history_count : Option<"count", "c">, Group<1>, Arg<"UnsignedInteger">, 408 Desc<"How many history commands to print.">; 409 def history_start_index : Option<"start-index", "s">, Group<1>, 410 Arg<"UnsignedInteger">, Desc<"Index at which to start printing history " 411 "commands (or end to mean tail mode).">; 412 def history_end_index : Option<"end-index", "e">, Group<1>, 413 Arg<"UnsignedInteger">, 414 Desc<"Index at which to stop printing history commands.">; 415 def history_clear : Option<"clear", "C">, Group<2>, 416 Desc<"Clears the current command history.">; 417} 418 419let Command = "log" in { 420 def log_file : Option<"file", "f">, Group<1>, Arg<"Filename">, 421 Desc<"Set the destination file to log to.">; 422 def log_threadsafe : Option<"threadsafe", "t">, Group<1>, 423 Desc<"Enable thread safe logging to avoid interweaved log lines.">; 424 def log_verbose : Option<"verbose", "v">, Group<1>, 425 Desc<"Enable verbose logging.">; 426 def log_sequence : Option<"sequence", "s">, Group<1>, 427 Desc<"Prepend all log lines with an increasing integer sequence id.">; 428 def log_timestamp : Option<"timestamp", "T">, Group<1>, 429 Desc<"Prepend all log lines with a timestamp.">; 430 def log_pid_tid : Option<"pid-tid", "p">, Group<1>, 431 Desc<"Prepend all log lines with the process and thread ID that generates " 432 "the log line.">; 433 def log_thread_name : Option<"thread-name", "n">, Group<1>, 434 Desc<"Prepend all log lines with the thread name for the thread that " 435 "generates the log line.">; 436 437 def log_stack : Option<"stack", "S">, Group<1>, 438 Desc<"Append a stack backtrace to each log line.">; 439 def log_append : Option<"append", "a">, Group<1>, 440 Desc<"Append to the log file instead of overwriting.">; 441 def log_file_function : Option<"file-function", "F">, Group<1>, 442 Desc<"Prepend the names of files and function that generate the logs.">; 443} 444 445let Command = "memory read" in { 446 def memory_read_num_per_line : Option<"num-per-line", "l">, Group<1>, 447 Arg<"NumberPerLine">, Desc<"The number of items per line to display.">; 448 def memory_read_binary : Option<"binary", "b">, Group<2>, 449 Desc<"If true, memory will be saved as binary. If false, the memory is " 450 "saved save as an ASCII dump that uses the format, size, count and number " 451 "per line settings.">; 452 def memory_read_type : Option<"type", "t">, Groups<[3,4]>, Arg<"Name">, 453 Required, Desc<"The name of a type to view memory as.">; 454 def memory_read_language : Option<"language", "x">, Group<4>, Arg<"Language">, 455 Desc<"The language of the type to view memory as.">; 456 def memory_read_offset : Option<"offset", "E">, Group<3>, Arg<"Count">, 457 Desc<"How many elements of the specified type to skip before starting to " 458 "display data.">; 459 def memory_read_force : Option<"force", "r">, Groups<[1,2,3]>, 460 Desc<"Necessary if reading over target.max-memory-read-size bytes.">; 461} 462 463let Command = "memory find" in { 464 def memory_find_expression : Option<"expression", "e">, Group<1>, 465 Arg<"Expression">, Required, 466 Desc<"Evaluate an expression to obtain a byte pattern.">; 467 def memory_find_string : Option<"string", "s">, Group<2>, Arg<"Name">, 468 Required, Desc<"Use text to find a byte pattern.">; 469 def memory_find_count : Option<"count", "c">, Arg<"Count">, 470 Desc<"How many times to perform the search.">; 471 def memory_find_dump_offset : Option<"dump-offset", "o">, Arg<"Offset">, 472 Desc<"When dumping memory for a match, an offset from the match location to" 473 " start dumping from.">; 474} 475 476let Command = "memory write" in { 477 def memory_write_infile : Option<"infile", "i">, Group<1>, Arg<"Filename">, 478 Required, Desc<"Write memory using the contents of a file.">; 479 def memory_write_offset : Option<"offset", "o">, Group<1>, Arg<"Offset">, 480 Desc<"Start writing bytes from an offset within the input file.">; 481} 482 483let Command = "register read" in { 484 def register_read_alternate : Option<"alternate", "A">, 485 Desc<"Display register names using the alternate register name if there " 486 "is one.">; 487 def register_read_set : Option<"set", "s">, Group<1>, Arg<"Index">, 488 Desc<"Specify which register sets to dump by index.">; 489 def register_read_all : Option<"all", "a">, Group<2>, 490 Desc<"Show all register sets.">; 491} 492 493let Command = "source" in { 494 def source_stop_on_error : Option<"stop-on-error", "e">, Arg<"Boolean">, 495 Desc<"If true, stop executing commands on error.">; 496 def source_stop_on_continue : Option<"stop-on-continue", "c">, Arg<"Boolean">, 497 Desc<"If true, stop executing commands on continue.">; 498 def source_silent_run : Option<"silent-run", "s">, Arg<"Boolean">, 499 Desc<"If true don't echo commands while executing.">; 500} 501 502let Command = "alias" in { 503 def alias_help : Option<"help", "h">, Arg<"HelpText">, 504 Desc<"Help text for this command">; 505 def alias_long_help : Option<"long-help", "H">, Arg<"HelpText">, 506 Desc<"Long help text for this command">; 507} 508 509let Command = "regex" in { 510 def regex_help : Option<"help", "h">, Group<1>, Arg<"None">, 511 Desc<"The help text to display for this command.">; 512 def regex_syntax : Option<"syntax", "s">, Group<1>, Arg<"None">, 513 Desc<"A syntax string showing the typical usage syntax.">; 514} 515 516let Command = "permissions" in { 517 def permissions_permissions_value : Option<"permissions-value", "v">, 518 Arg<"PermissionsNumber">, 519 Desc<"Give out the numeric value for permissions (e.g. 757)">; 520 def permissions_permissions_string : Option<"permissions-string", "s">, 521 Arg<"PermissionsString">, 522 Desc<"Give out the string value for permissions (e.g. rwxr-xr--).">; 523 def permissions_user_read : Option<"user-read", "r">, 524 Desc<"Allow user to read.">; 525 def permissions_user_write : Option<"user-write", "w">, 526 Desc<"Allow user to write.">; 527 def permissions_user_exec : Option<"user-exec", "x">, 528 Desc<"Allow user to execute.">; 529 def permissions_group_read : Option<"group-read", "R">, 530 Desc<"Allow group to read.">; 531 def permissions_group_write : Option<"group-write", "W">, 532 Desc<"Allow group to write.">; 533 def permissions_group_exec : Option<"group-exec", "X">, 534 Desc<"Allow group to execute.">; 535 def permissions_world_read : Option<"world-read", "d">, 536 Desc<"Allow world to read.">; 537 def permissions_world_write : Option<"world-write", "t">, 538 Desc<"Allow world to write.">; 539 def permissions_world_exec : Option<"world-exec", "e">, 540 Desc<"Allow world to execute.">; 541} 542 543let Command = "platform fread" in { 544 def platform_fread_offset : Option<"offset", "o">, Group<1>, Arg<"Index">, 545 Desc<"Offset into the file at which to start reading.">; 546 def platform_fread_count : Option<"count", "c">, Group<1>, Arg<"Count">, 547 Desc<"Number of bytes to read from the file.">; 548} 549 550let Command = "platform fwrite" in { 551 def platform_fwrite_offset : Option<"offset", "o">, Group<1>, Arg<"Index">, 552 Desc<"Offset into the file at which to start reading.">; 553 def platform_fwrite_data : Option<"data", "d">, Group<1>, Arg<"Value">, 554 Desc<"Text to write to the file.">; 555} 556 557let Command = "platform process list" in { 558 def platform_process_list_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">, 559 Desc<"List the process info for a specific process ID.">; 560 def platform_process_list_name : Option<"name", "n">, Group<2>, 561 Arg<"ProcessName">, Required, 562 Desc<"Find processes with executable basenames that match a string.">; 563 def platform_process_list_ends_with : Option<"ends-with", "e">, Group<3>, 564 Arg<"ProcessName">, Required, 565 Desc<"Find processes with executable basenames that end with a string.">; 566 def platform_process_list_starts_with : Option<"starts-with", "s">, Group<4>, 567 Arg<"ProcessName">, Required, 568 Desc<"Find processes with executable basenames that start with a string.">; 569 def platform_process_list_contains : Option<"contains", "c">, Group<5>, 570 Arg<"ProcessName">, Required, 571 Desc<"Find processes with executable basenames that contain a string.">; 572 def platform_process_list_regex : Option<"regex", "r">, Group<6>, 573 Arg<"RegularExpression">, Required, 574 Desc<"Find processes with executable basenames that match a regular " 575 "expression.">; 576 def platform_process_list_parent : Option<"parent", "P">, GroupRange<2, 6>, 577 Arg<"Pid">, Desc<"Find processes that have a matching parent process ID.">; 578 def platform_process_list_uid : Option<"uid", "u">, GroupRange<2, 6>, 579 Arg<"UnsignedInteger">, Validator<"&posix_validator">, 580 Desc<"Find processes that have a matching user ID.">; 581 def platform_process_list_euid : Option<"euid", "U">, GroupRange<2, 6>, 582 Arg<"UnsignedInteger">, Validator<"&posix_validator">, 583 Desc<"Find processes that have a matching effective user ID.">; 584 def platform_process_list_gid : Option<"gid", "g">, GroupRange<2, 6>, 585 Arg<"UnsignedInteger">, Validator<"&posix_validator">, 586 Desc<"Find processes that have a matching group ID.">; 587 def platform_process_list_egid : Option<"egid", "G">, GroupRange<2, 6>, 588 Arg<"UnsignedInteger">, Validator<"&posix_validator">, 589 Desc<"Find processes that have a matching effective group ID.">; 590 def platform_process_list_arch : Option<"arch", "a">, GroupRange<2, 6>, 591 Arg<"Architecture">, 592 Desc<"Find processes that have a matching architecture.">; 593 def platform_process_list_show_args : Option<"show-args", "A">, 594 GroupRange<1, 6>, 595 Desc<"Show process arguments instead of the process executable basename.">; 596 def platform_process_list_verbose : Option<"verbose", "v">, GroupRange<1, 6>, 597 Desc<"Enable verbose output.">; 598} 599 600let Command = "platform process attach" in { 601 def platform_process_attach_plugin : Option<"plugin", "P">, Arg<"Plugin">, 602 Desc<"Name of the process plugin you want to use.">; 603 def platform_process_attach_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">, 604 Desc<"The process ID of an existing process to attach to.">; 605 def platform_process_attach_name : Option<"name", "n">, Group<2>, 606 Arg<"ProcessName">, Desc<"The name of the process to attach to.">; 607 def platform_process_attach_waitfor : Option<"waitfor", "w">, Group<2>, 608 Desc<"Wait for the process with <process-name> to launch.">; 609} 610 611let Command = "platform shell" in { 612 def platform_shell_timeout : Option<"timeout", "t">, Arg<"Value">, 613 Desc<"Seconds to wait for the remote host to finish running the command.">; 614} 615 616let Command = "process attach" in { 617 def process_attach_continue : Option<"continue", "c">, 618 Desc<"Immediately continue the process once attached.">; 619 def process_attach_plugin : Option<"plugin", "P">, Arg<"Plugin">, 620 Desc<"Name of the process plugin you want to use.">; 621 def process_attach_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">, 622 Desc<"The process ID of an existing process to attach to.">; 623 def process_attach_name : Option<"name", "n">, Group<2>, Arg<"ProcessName">, 624 Desc<"The name of the process to attach to.">; 625 def process_attach_include_existing : Option<"include-existing", "i">, 626 Group<2>, Desc<"Include existing processes when doing attach -w.">; 627 def process_attach_waitfor : Option<"waitfor", "w">, Group<2>, 628 Desc<"Wait for the process with <process-name> to launch.">; 629} 630 631let Command = "process continue" in { 632 def process_continue_ignore_count : Option<"ignore-count", "i">, 633 Arg<"UnsignedInteger">, Desc<"Ignore <N> crossings of the breakpoint (if it" 634 " exists) for the currently selected thread.">; 635} 636 637let Command = "process detach" in { 638 def process_detach_keep_stopped : Option<"keep-stopped", "s">, Group<1>, 639 Arg<"Boolean">, Desc<"Whether or not the process should be kept stopped on" 640 " detach (if possible).">; 641} 642 643let Command = "process connect" in { 644 def process_connect_plugin : Option<"plugin", "p">, Arg<"Plugin">, 645 Desc<"Name of the process plugin you want to use.">; 646} 647 648let Command = "process load" in { 649 def process_load_install : Option<"install", "i">, OptionalArg<"Path">, 650 Desc<"Install the shared library to the target. If specified without an " 651 "argument then the library will installed in the current working " 652 "directory.">; 653} 654 655let Command = "process handle" in { 656 def process_handle_stop : Option<"stop", "s">, Group<1>, Arg<"Boolean">, 657 Desc<"Whether or not the process should be stopped if the signal is " 658 "received.">; 659 def process_handle_notify : Option<"notify", "n">, Group<1>, Arg<"Boolean">, 660 Desc<"Whether or not the debugger should notify the user if the signal is " 661 "received.">; 662 def process_handle_pass : Option<"pass", "p">, Group<1>, Arg<"Boolean">, 663 Desc<"Whether or not the signal should be passed to the process.">; 664} 665 666let Command = "script import" in { 667 def script_import_allow_reload : Option<"allow-reload", "r">, Group<1>, 668 Desc<"Allow the script to be loaded even if it was already loaded before. " 669 "This argument exists for backwards compatibility, but reloading is always " 670 "allowed, whether you specify it or not.">; 671} 672 673let Command = "script add" in { 674 def script_add_function : Option<"function", "f">, Group<1>, 675 Arg<"PythonFunction">, 676 Desc<"Name of the Python function to bind to this command name.">; 677 def script_add_class : Option<"class", "c">, Group<2>, Arg<"PythonClass">, 678 Desc<"Name of the Python class to bind to this command name.">; 679 def script_add_help : Option<"help", "h">, Group<1>, Arg<"HelpText">, 680 Desc<"The help text to display for this command.">; 681 def script_add_synchronicity : Option<"synchronicity", "s">, 682 EnumArg<"ScriptedCommandSynchronicity", "ScriptSynchroType()">, 683 Desc<"Set the synchronicity of this command's executions with regard to " 684 "LLDB event system.">; 685} 686let Command = "source info" in { 687 def source_info_count : Option<"count", "c">, Arg<"Count">, 688 Desc<"The number of line entries to display.">; 689 def source_info_shlib : Option<"shlib", "s">, Groups<[1,2]>, Arg<"ShlibName">, 690 Completion<"Module">, Desc<"Look up the source in the given module or " 691 "shared library (can be specified more than once).">; 692 def source_info_file : Option<"file", "f">, Group<1>, Arg<"Filename">, 693 Completion<"SourceFile">, Desc<"The file from which to display source.">; 694 def source_info_line : Option<"line", "l">, Group<1>, Arg<"LineNum">, 695 Desc<"The line number at which to start the displaying lines.">; 696 def source_info_end_line : Option<"end-line", "e">, Group<1>, Arg<"LineNum">, 697 Desc<"The line number at which to stop displaying lines.">; 698 def source_info_name : Option<"name", "n">, Group<2>, Arg<"Symbol">, 699 Completion<"Symbol">, 700 Desc<"The name of a function whose source to display.">; 701 def source_info_address : Option<"address", "a">, Group<3>, 702 Arg<"AddressOrExpression">, Desc<"Lookup the address and display the source" 703 " information for the corresponding file and line.">; 704} 705 706let Command = "source list" in { 707 def source_list_count : Option<"count", "c">, Arg<"Count">, 708 Desc<"The number of source lines to display.">; 709 def source_list_shlib : Option<"shlib", "s">, Groups<[1,2]>, Arg<"ShlibName">, 710 Completion<"Module">, 711 Desc<"Look up the source file in the given shared library.">; 712 def source_list_show_breakpoints : Option<"show-breakpoints", "b">, 713 Desc<"Show the line table locations from the debug information that " 714 "indicate valid places to set source level breakpoints.">; 715 def source_list_file : Option<"file", "f">, Group<1>, Arg<"Filename">, 716 Completion<"SourceFile">, Desc<"The file from which to display source.">; 717 def source_list_line : Option<"line", "l">, Group<1>, Arg<"LineNum">, 718 Desc<"The line number at which to start the display source.">; 719 def source_list_name : Option<"name", "n">, Group<2>, Arg<"Symbol">, 720 Completion<"Symbol">, 721 Desc<"The name of a function whose source to display.">; 722 def source_list_address : Option<"address", "a">, Group<3>, 723 Arg<"AddressOrExpression">, Desc<"Lookup the address and display the source" 724 " information for the corresponding file and line.">; 725 def source_list_reverse : Option<"reverse", "r">, Group<4>, Desc<"Reverse the" 726 " listing to look backwards from the last displayed block of source.">; 727} 728 729let Command = "target dependents" in { 730 def dependents_no_dependents : Option<"no-dependents", "d">, Group<1>, 731 OptionalEnumArg<"Value", "OptionEnumValues(g_dependents_enumaration)">, 732 Desc<"Whether or not to load dependents when creating a target. If the " 733 "option is not specified, the value is implicitly 'default'. If the " 734 "option is specified but without a value, the value is implicitly " 735 "'true'.">; 736} 737 738let Command = "target modules dump" in { 739 def target_modules_dump_verbose : Option<"verbose", "v">, 740 Desc<"Enable verbose dump.">; 741} 742 743let Command = "target modules list" in { 744 def target_modules_list_address : Option<"address", "a">, Group<1>, 745 Arg<"AddressOrExpression">, Desc<"Display the image at this address.">; 746 def target_modules_list_arch : Option<"arch", "A">, Group<1>, 747 OptionalArg<"Width">, Desc<"Display the architecture when listing images.">; 748 def target_modules_list_triple : Option<"triple", "t">, Group<1>, 749 OptionalArg<"Width">, Desc<"Display the triple when listing images.">; 750 def target_modules_list_header : Option<"header", "h">, Group<1>, 751 Desc<"Display the image base address as a load address if debugging, a file" 752 " address otherwise.">; 753 def target_modules_list_offset : Option<"offset", "o">, Group<1>, 754 Desc<"Display the image load address offset from the base file address " 755 "(the slide amount).">; 756 def target_modules_list_uuid : Option<"uuid", "u">, Group<1>, 757 Desc<"Display the UUID when listing images.">; 758 def target_modules_list_fullpath : Option<"fullpath", "f">, Group<1>, 759 OptionalArg<"Width">, 760 Desc<"Display the fullpath to the image object file.">; 761 def target_modules_list_directory : Option<"directory", "d">, Group<1>, 762 OptionalArg<"Width">, Desc<"Display the directory with optional width for " 763 "the image object file.">; 764 def target_modules_list_basename : Option<"basename", "b">, Group<1>, 765 OptionalArg<"Width">, Desc<"Display the basename with optional width for " 766 "the image object file.">; 767 def target_modules_list_symfile : Option<"symfile", "s">, Group<1>, 768 OptionalArg<"Width">, Desc<"Display the fullpath to the image symbol file " 769 "with optional width.">; 770 def target_modules_list_symfile_unique : Option<"symfile-unique", "S">, 771 Group<1>, OptionalArg<"Width">, Desc<"Display the symbol file with optional" 772 " width only if it is different from the executable object file.">; 773 def target_modules_list_mod_time : Option<"mod-time", "m">, Group<1>, 774 OptionalArg<"Width">, Desc<"Display the modification time with optional " 775 "width of the module.">; 776 def target_modules_list_ref_count : Option<"ref-count", "r">, Group<1>, 777 OptionalArg<"Width">, Desc<"Display the reference count if the module is " 778 "still in the shared module cache.">; 779 def target_modules_list_pointer : Option<"pointer", "p">, Group<1>, 780 OptionalArg<"None">, Desc<"Display the module pointer.">; 781 def target_modules_list_global : Option<"global", "g">, Group<1>, 782 Desc<"Display the modules from the global module list, not just the " 783 "current target.">; 784} 785 786let Command = "target modules show unwind" in { 787 def target_modules_show_unwind_name : Option<"name", "n">, Group<1>, 788 Arg<"FunctionName">, 789 Desc<"Show unwind instructions for a function or symbol name.">; 790 def target_modules_show_unwind_address : Option<"address", "a">, Group<2>, 791 Arg<"AddressOrExpression">, Desc<"Show unwind instructions for a function " 792 "or symbol containing an address">; 793} 794 795let Command = "target modules lookup" in { 796 def target_modules_lookup_address : Option<"address", "a">, Group<1>, 797 Arg<"AddressOrExpression">, Required, Desc<"Lookup an address in one or " 798 "more target modules.">; 799 def target_modules_lookup_offset : Option<"offset", "o">, Group<1>, 800 Arg<"Offset">, Desc<"When looking up an address subtract <offset> from any " 801 "addresses before doing the lookup.">; 802 // FIXME: re-enable regex for types when the LookupTypeInModule actually uses 803 // the regex option by adding to group 6. 804 def target_modules_lookup_regex : Option<"regex", "r">, Groups<[2,4,5]>, 805 Desc<"The <name> argument for name lookups are regular expressions.">; 806 def target_modules_lookup_symbol : Option<"symbol", "s">, Group<2>, 807 Arg<"Symbol">, Required, Desc<"Lookup a symbol by name in the symbol tables" 808 " in one or more target modules.">; 809 def target_modules_lookup_file : Option<"file", "f">, Group<3>, 810 Arg<"Filename">, Required, Desc<"Lookup a file by fullpath or basename in " 811 "one or more target modules.">; 812 def target_modules_lookup_line : Option<"line", "l">, Group<3>, 813 Arg<"LineNum">, Desc<"Lookup a line number in a file (must be used in " 814 "conjunction with --file).">; 815 def target_modules_lookup_no_inlines : Option<"no-inlines", "i">, 816 GroupRange<3,5>, 817 Desc<"Ignore inline entries (must be used in conjunction with --file or " 818 "--function).">; 819 def target_modules_lookup_function : Option<"function", "F">, Group<4>, 820 Arg<"FunctionName">, Required, Desc<"Lookup a function by name in the debug" 821 " symbols in one or more target modules.">; 822 def target_modules_lookup_name : Option<"name", "n">, Group<5>, 823 Arg<"FunctionOrSymbol">, Required, Desc<"Lookup a function or symbol by " 824 "name in one or more target modules.">; 825 def target_modules_lookup_type : Option<"type", "t">, Group<6>, Arg<"Name">, 826 Required, Desc<"Lookup a type by name in the debug symbols in one or more " 827 "target modules.">; 828 def target_modules_lookup_verbose : Option<"verbose", "v">, 829 Desc<"Enable verbose lookup information.">; 830 def target_modules_lookup_all : Option<"all", "A">, Desc<"Print all matches, " 831 "not just the best match, if a best match is available.">; 832} 833 834let Command = "target stop hook add" in { 835 def target_stop_hook_add_one_liner : Option<"one-liner", "o">, 836 Arg<"OneLiner">, Desc<"Add a command for the stop hook. Can be specified " 837 "more than once, and commands will be run in the order they appear.">; 838 def target_stop_hook_add_shlib : Option<"shlib", "s">, Arg<"ShlibName">, 839 Completion<"Module">, 840 Desc<"Set the module within which the stop-hook is to be run.">; 841 def target_stop_hook_add_thread_index : Option<"thread-index", "x">, 842 Arg<"ThreadIndex">, Desc<"The stop hook is run only for the thread whose " 843 "index matches this argument.">; 844 def target_stop_hook_add_thread_id : Option<"thread-id", "t">, 845 Arg<"ThreadID">, Desc<"The stop hook is run only for the thread whose TID " 846 "matches this argument.">; 847 def target_stop_hook_add_thread_name : Option<"thread-name", "T">, 848 Arg<"ThreadName">, Desc<"The stop hook is run only for the thread whose " 849 "thread name matches this argument.">; 850 def target_stop_hook_add_queue_name : Option<"queue-name", "q">, 851 Arg<"QueueName">, Desc<"The stop hook is run only for threads in the queue " 852 "whose name is given by this argument.">; 853 def target_stop_hook_add_file : Option<"file", "f">, Group<1>, 854 Arg<"Filename">, Desc<"Specify the source file within which the stop-hook " 855 "is to be run.">, Completion<"SourceFile">; 856 def target_stop_hook_add_start_line : Option<"start-line", "l">, Group<1>, 857 Arg<"LineNum">, Desc<"Set the start of the line range for which the " 858 "stop-hook is to be run.">; 859 def target_stop_hook_add_end_line : Option<"end-line", "e">, Group<1>, 860 Arg<"LineNum">, Desc<"Set the end of the line range for which the stop-hook" 861 " is to be run.">; 862 def target_stop_hook_add_classname : Option<"classname", "c">, Group<2>, 863 Arg<"ClassName">, 864 Desc<"Specify the class within which the stop-hook is to be run.">; 865 def target_stop_hook_add_name : Option<"name", "n">, Group<3>, 866 Arg<"FunctionName">, Desc<"Set the function name within which the stop hook" 867 " will be run.">, Completion<"Symbol">; 868 def target_stop_hook_add_auto_continue : Option<"auto-continue", "G">, 869 Arg<"Boolean">, Desc<"The breakpoint will auto-continue after running its" 870 " commands.">; 871} 872 873let Command = "thread backtrace" in { 874 def thread_backtrace_count : Option<"count", "c">, Group<1>, Arg<"Count">, 875 Desc<"How many frames to display (-1 for all)">; 876 def thread_backtrace_start : Option<"start", "s">, Group<1>, 877 Arg<"FrameIndex">, Desc<"Frame in which to start the backtrace">; 878 def thread_backtrace_extended : Option<"extended", "e">, Group<1>, 879 Arg<"Boolean">, Desc<"Show the extended backtrace, if available">; 880} 881 882let Command = "thread step scope" in { 883 def thread_step_scope_step_in_avoids_no_debug : 884 Option<"step-in-avoids-no-debug", "a">, Group<1>, Arg<"Boolean">, 885 Desc<"A boolean value that sets whether stepping into functions will step " 886 "over functions with no debug information.">; 887 def thread_step_scope_step_out_avoids_no_debug : 888 Option<"step-out-avoids-no-debug", "A">, Group<1>, Arg<"Boolean">, 889 Desc<"A boolean value, if true stepping out of functions will continue to" 890 " step out till it hits a function with debug information.">; 891 def thread_step_scope_count : Option<"count", "c">, Group<1>, Arg<"Count">, 892 Desc<"How many times to perform the stepping operation - currently only " 893 "supported for step-inst and next-inst.">; 894 def thread_step_scope_end_linenumber : Option<"end-linenumber", "e">, 895 Group<1>, Arg<"LineNum">, Desc<"The line at which to stop stepping - " 896 "defaults to the next line and only supported for step-in and step-over." 897 " You can also pass the string 'block' to step to the end of the current" 898 " block. This is particularly use in conjunction with --step-target to" 899 " step through a complex calling sequence.">; 900 def thread_step_scope_run_mode : Option<"run-mode", "m">, Group<1>, 901 EnumArg<"RunMode", "TriRunningModes()">, Desc<"Determine how to run other " 902 "threads while stepping the current thread.">; 903 def thread_step_scope_step_over_regexp : Option<"step-over-regexp", "r">, 904 Group<1>, Arg<"RegularExpression">, Desc<"A regular expression that defines" 905 "function names to not to stop at when stepping in.">; 906 def thread_step_scope_step_in_target : Option<"step-in-target", "t">, 907 Group<1>, Arg<"FunctionName">, Desc<"The name of the directly called " 908 "function step in should stop at when stepping into.">; 909 def thread_step_scope_python_class : Option<"python-class", "C">, Group<2>, 910 Arg<"PythonClass">, Desc<"The name of the class that will manage this step " 911 "- only supported for Scripted Step.">; 912} 913 914let Command = "thread until" in { 915 def thread_until_frame : Option<"frame", "f">, Group<1>, Arg<"FrameIndex">, 916 Desc<"Frame index for until operation - defaults to 0">; 917 def thread_until_thread : Option<"thread", "t">, Group<1>, Arg<"ThreadIndex">, 918 Desc<"Thread index for the thread for until operation">; 919 def thread_until_run_mode : Option<"run-mode", "m">, Group<1>, 920 EnumArg<"RunMode", "DuoRunningModes()">, Desc<"Determine how to run other" 921 "threads while stepping this one">; 922 def thread_until_address : Option<"address", "a">, Group<1>, 923 Arg<"AddressOrExpression">, Desc<"Run until we reach the specified address," 924 "or leave the function - can be specified multiple times.">; 925} 926 927let Command = "thread info" in { 928 def thread_info_json : Option<"json", "j">, Desc<"Display the thread info in" 929 " JSON format.">; 930 def thread_info_stop_info : Option<"stop-info", "s">, Desc<"Display the " 931 "extended stop info in JSON format.">; 932} 933 934let Command = "thread return" in { 935 def thread_return_from_expression : Option<"from-expression", "x">, 936 Desc<"Return from the innermost expression evaluation.">; 937} 938 939let Command = "thread jump" in { 940 def thread_jump_file : Option<"file", "f">, Group<1>, Arg<"Filename">, 941 Completion<"SourceFile">, Desc<"Specifies the source file to jump to.">; 942 def thread_jump_line : Option<"line", "l">, Group<1>, Arg<"LineNum">, 943 Required, Desc<"Specifies the line number to jump to.">; 944 def thread_jump_by : Option<"by", "b">, Group<2>, Arg<"Offset">, Required, 945 Desc<"Jumps by a relative line offset from the current line.">; 946 def thread_jump_address : Option<"address", "a">, Group<3>, 947 Arg<"AddressOrExpression">, Required, Desc<"Jumps to a specific address.">; 948 def thread_jump_force : Option<"force", "r">, Groups<[1,2,3]>, 949 Desc<"Allows the PC to leave the current function.">; 950} 951 952let Command = "thread plan list" in { 953 def thread_plan_list_verbose : Option<"verbose", "v">, Group<1>, 954 Desc<"Display more information about the thread plans">; 955 def thread_plan_list_internal : Option<"internal", "i">, Group<1>, 956 Desc<"Display internal as well as user thread plans">; 957} 958 959let Command = "type summary add" in { 960 def type_summary_add_category : Option<"category", "w">, Arg<"Name">, 961 Desc<"Add this to the given category instead of the default one.">; 962 def type_summary_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, 963 Desc<"If true, cascade through typedef chains.">; 964 def type_summary_add_no_value : Option<"no-value", "v">, 965 Desc<"Don't show the value, just show the summary, for this type.">; 966 def type_summary_add_skip_pointers : Option<"skip-pointers", "p">, 967 Desc<"Don't use this format for pointers-to-type objects.">; 968 def type_summary_add_skip_references : Option<"skip-references", "r">, 969 Desc<"Don't use this format for references-to-type objects.">; 970 def type_summary_add_regex : Option<"regex", "x">, 971 Desc<"Type names are actually regular expressions.">; 972 def type_summary_add_inline_children : Option<"inline-children", "c">, 973 Group<1>, Required, 974 Desc<"If true, inline all child values into summary string.">; 975 def type_summary_add_omit_names : Option<"omit-names", "O">, Group<1>, 976 Desc<"If true, omit value names in the summary display.">; 977 def type_summary_add_summary_string : Option<"summary-string", "s">, Group<2>, 978 Arg<"SummaryString">, Required, 979 Desc<"Summary string used to display text and object contents.">; 980 def type_summary_add_python_script : Option<"python-script", "o">, Group<3>, 981 Arg<"PythonScript">, 982 Desc<"Give a one-liner Python script as part of the command.">; 983 def type_summary_add_python_function : Option<"python-function", "F">, 984 Group<3>, Arg<"PythonFunction">, 985 Desc<"Give the name of a Python function to use for this type.">; 986 def type_summary_add_input_python : Option<"input-python", "P">, Group<3>, 987 Desc<"Input Python code to use for this type manually.">; 988 def type_summary_add_expand : Option<"expand", "e">, Groups<[2,3]>, 989 Desc<"Expand aggregate data types to show children on separate lines.">; 990 def type_summary_add_hide_empty : Option<"hide-empty", "h">, Groups<[2,3]>, 991 Desc<"Do not expand aggregate data types with no children.">; 992 def type_summary_add_name : Option<"name", "n">, Groups<[2,3]>, Arg<"Name">, 993 Desc<"A name for this summary string.">; 994} 995 996let Command = "type synth add" in { 997 def type_synth_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, 998 Desc<"If true, cascade through typedef chains.">; 999 def type_synth_add_skip_pointers : Option<"skip-pointers", "p">, 1000 Desc<"Don't use this format for pointers-to-type objects.">; 1001 def type_synth_add_skip_references : Option<"skip-references", "r">, 1002 Desc<"Don't use this format for references-to-type objects.">; 1003 def type_synth_add_category : Option<"category", "w">, Arg<"Name">, 1004 Desc<"Add this to the given category instead of the default one.">; 1005 def type_synth_add_python_class : Option<"python-class", "l">, Group<2>, 1006 Arg<"PythonClass">, 1007 Desc<"Use this Python class to produce synthetic children.">; 1008 def type_synth_add_input_python : Option<"input-python", "P">, Group<3>, 1009 Desc<"Type Python code to generate a class that provides synthetic " 1010 "children.">; 1011 def type_synth_add_regex : Option<"regex", "x">, 1012 Desc<"Type names are actually regular expressions.">; 1013} 1014 1015let Command = "type format add" in { 1016 def type_format_add_category : Option<"category", "w">, Arg<"Name">, 1017 Desc<"Add this to the given category instead of the default one.">; 1018 def type_format_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, 1019 Desc<"If true, cascade through typedef chains.">; 1020 def type_format_add_skip_pointers : Option<"skip-pointers", "p">, 1021 Desc<"Don't use this format for pointers-to-type objects.">; 1022 def type_format_add_skip_references : Option<"skip-references", "r">, 1023 Desc<"Don't use this format for references-to-type objects.">; 1024 def type_format_add_regex : Option<"regex", "x">, 1025 Desc<"Type names are actually regular expressions.">; 1026 def type_format_add_type : Option<"type", "t">, Group<2>, Arg<"Name">, 1027 Desc<"Format variables as if they were of this type.">; 1028} 1029 1030let Command = "type formatter delete" in { 1031 def type_formatter_delete_all : Option<"all", "a">, Group<1>, 1032 Desc<"Delete from every category.">; 1033 def type_formatter_delete_category : Option<"category", "w">, Group<2>, 1034 Arg<"Name">, Desc<"Delete from given category.">; 1035 def type_formatter_delete_language : Option<"language", "l">, Group<3>, 1036 Arg<"Language">, Desc<"Delete from given language's category.">; 1037} 1038 1039let Command = "type formatter clear" in { 1040 def type_formatter_clear_all : Option<"all", "a">, 1041 Desc<"Clear every category.">; 1042} 1043 1044let Command = "type formatter list" in { 1045 def type_formatter_list_category_regex : Option<"category-regex", "w">, 1046 Group<1>, Arg<"Name">, Desc<"Only show categories matching this filter.">; 1047 def type_formatter_list_language : Option<"language", "l">, Group<2>, 1048 Arg<"Language">, Desc<"Only show the category for a specific language.">; 1049} 1050 1051let Command = "type category define" in { 1052 def type_category_define_enabled : Option<"enabled", "e">, 1053 Desc<"If specified, this category will be created enabled.">; 1054 def type_category_define_language : Option<"language", "l">, Arg<"Language">, 1055 Desc<"Specify the language that this category is supported for.">; 1056} 1057 1058let Command = "type category enable" in { 1059 def type_category_enable_language : Option<"language", "l">, Arg<"Language">, 1060 Desc<"Enable the category for this language.">; 1061} 1062 1063let Command = "type category disable" in { 1064 def type_category_disable_language : Option<"language", "l">, Arg<"Language">, 1065 Desc<"Enable the category for this language.">; 1066} 1067 1068let Command = "type filter add" in { 1069 def type_filter_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, 1070 Desc<"If true, cascade through typedef chains.">; 1071 def type_filter_add_skip_pointers : Option<"skip-pointers", "p">, 1072 Desc<"Don't use this format for pointers-to-type objects.">; 1073 def type_filter_add_skip_references : Option<"skip-references", "r">, 1074 Desc<"Don't use this format for references-to-type objects.">; 1075 def type_filter_add_category : Option<"category", "w">, Arg<"Name">, 1076 Desc<"Add this to the given category instead of the default one.">; 1077 def type_filter_add_child : Option<"child", "c">, Arg<"ExpressionPath">, 1078 Desc<"Include this expression path in the synthetic view.">; 1079 def type_filter_add_regex : Option<"regex", "x">, 1080 Desc<"Type names are actually regular expressions.">; 1081} 1082 1083let Command = "type lookup" in { 1084 def type_lookup_show_help : Option<"show-help", "h">, 1085 Desc<"Display available help for types">; 1086 def type_lookup_language : Option<"language", "l">, Arg<"Language">, 1087 Desc<"Which language's types should the search scope be">; 1088} 1089 1090let Command = "watchpoint list" in { 1091 def watchpoint_list_brief : Option<"brief", "b">, Group<1>, Desc<"Give a " 1092 "brief description of the watchpoint (no location info).">; 1093 def watchpoint_list_full : Option<"full", "f">, Group<2>, Desc<"Give a full " 1094 "description of the watchpoint and its locations.">; 1095 def watchpoint_list_verbose : Option<"verbose", "v">, Group<3>, Desc<"Explain" 1096 "everything we know about the watchpoint (for debugging debugger bugs).">; 1097} 1098 1099let Command = "watchpoint ignore" in { 1100 def watchpoint_ignore_ignore_count : Option<"ignore-count", "i">, 1101 Arg<"Count">, Required, Desc<"Set the number of times this watchpoint is" 1102 " skipped before stopping.">; 1103} 1104 1105let Command = "watchpoint modify" in { 1106 def watchpoint_modify_condition : Option<"condition", "c">, Arg<"Expression">, 1107 Desc<"The watchpoint stops only if this condition expression evaluates " 1108 "to true.">; 1109} 1110 1111let Command = "watchpoint command add" in { 1112 def watchpoint_command_add_one_liner : Option<"one-liner", "o">, Group<1>, 1113 Arg<"OneLiner">, Desc<"Specify a one-line watchpoint command inline. Be " 1114 "sure to surround it with quotes.">; 1115 def watchpoint_command_add_stop_on_error : Option<"stop-on-error", "e">, 1116 Arg<"Boolean">, Desc<"Specify whether watchpoint command execution should " 1117 "terminate on error.">; 1118 def watchpoint_command_add_script_type : Option<"script-type", "s">, 1119 EnumArg<"None", "ScriptOptionEnum()">, Desc<"Specify the language for the" 1120 " commands - if none is specified, the lldb command interpreter will be " 1121 "used.">; 1122 def watchpoint_command_add_python_function : Option<"python-function", "F">, 1123 Group<2>, Arg<"PythonFunction">, Desc<"Give the name of a Python function " 1124 "to run as command for this watchpoint. Be sure to give a module name if " 1125 "appropriate.">; 1126} 1127