xref: /freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1 //===-- CommandOptionArgumentTable.h ----------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_INTERPRETER_COMMANDOPTIONARGUMENTTABLE_H
10 #define LLDB_INTERPRETER_COMMANDOPTIONARGUMENTTABLE_H
11 
12 #include "lldb/Interpreter/CommandObject.h"
13 
14 namespace lldb_private {
15 
16 static constexpr OptionEnumValueElement g_corefile_save_style[] = {
17     {lldb::eSaveCoreFull, "full", "Create a core file with all memory saved"},
18     {lldb::eSaveCoreDirtyOnly, "modified-memory",
19      "Create a corefile with only modified memory saved"},
20     {lldb::eSaveCoreStackOnly, "stack",
21      "Create a corefile with only stack  memory saved"},
22 };
23 
24 static constexpr OptionEnumValueElement g_description_verbosity_type[] = {
25     {
26         eLanguageRuntimeDescriptionDisplayVerbosityCompact,
27         "compact",
28         "Only show the description string",
29     },
30     {
31         eLanguageRuntimeDescriptionDisplayVerbosityFull,
32         "full",
33         "Show the full output, including persistent variable's name and type",
34     },
35 };
36 
37 static constexpr OptionEnumValueElement g_sort_option_enumeration[] = {
38     {
39         eSortOrderNone,
40         "none",
41         "No sorting, use the original symbol table order.",
42     },
43     {
44         eSortOrderByAddress,
45         "address",
46         "Sort output by symbol address.",
47     },
48     {
49         eSortOrderByName,
50         "name",
51         "Sort output by symbol name.",
52     },
53     {
54         eSortOrderBySize,
55         "size",
56         "Sort output by symbol byte size.",
57     },
58 };
59 
60 // Note that the negation in the argument name causes a slightly confusing
61 // mapping of the enum values.
62 static constexpr OptionEnumValueElement g_dependents_enumeration[] = {
63     {
64         eLoadDependentsDefault,
65         "default",
66         "Only load dependents when the target is an executable.",
67     },
68     {
69         eLoadDependentsNo,
70         "true",
71         "Don't load dependents, even if the target is an executable.",
72     },
73     {
74         eLoadDependentsYes,
75         "false",
76         "Load dependents, even if the target is not an executable.",
77     },
78 };
79 
80 // FIXME: "script-type" needs to have its contents determined dynamically, so
81 // somebody can add a new scripting language to lldb and have it pickable here
82 // without having to change this enumeration by hand and rebuild lldb proper.
83 static constexpr OptionEnumValueElement g_script_option_enumeration[] = {
84     {
85         lldb::eScriptLanguageNone,
86         "command",
87         "Commands are in the lldb command interpreter language",
88     },
89     {
90         lldb::eScriptLanguagePython,
91         "python",
92         "Commands are in the Python language.",
93     },
94     {
95         lldb::eScriptLanguageLua,
96         "lua",
97         "Commands are in the Lua language.",
98     },
99     {
100         lldb::eScriptLanguageNone,
101         "default",
102         "Commands are in the default scripting language.",
103     },
104 };
105 
106 static constexpr OptionEnumValueElement g_log_handler_type[] = {
107     {
108         eLogHandlerDefault,
109         "default",
110         "Use the default (stream) log handler",
111     },
112     {
113         eLogHandlerStream,
114         "stream",
115         "Write log messages to the debugger output stream or to a file if one "
116         "is specified. A buffer size (in bytes) can be specified with -b. If "
117         "no buffer size is specified the output is unbuffered.",
118     },
119     {
120         eLogHandlerCircular,
121         "circular",
122         "Write log messages to a fixed size circular buffer. A buffer size "
123         "(number of messages) must be specified with -b.",
124     },
125     {
126         eLogHandlerSystem,
127         "os",
128         "Write log messages to the operating system log.",
129     },
130 };
131 
132 static constexpr OptionEnumValueElement g_script_synchro_type[] = {
133     {
134         eScriptedCommandSynchronicitySynchronous,
135         "synchronous",
136         "Run synchronous",
137     },
138     {
139         eScriptedCommandSynchronicityAsynchronous,
140         "asynchronous",
141         "Run asynchronous",
142     },
143     {
144         eScriptedCommandSynchronicityCurrentValue,
145         "current",
146         "Do not alter current setting",
147     },
148 };
149 
150 static constexpr OptionEnumValueElement g_running_mode[] = {
151     {lldb::eOnlyThisThread, "this-thread", "Run only this thread"},
152     {lldb::eAllThreads, "all-threads", "Run all threads"},
153     {lldb::eOnlyDuringStepping, "while-stepping",
154      "Run only this thread while stepping"},
155 };
156 
157 static constexpr OptionEnumValueElement g_completion_type[] = {
158     {lldb::eNoCompletion, "none", "No completion."},
159     {lldb::eSourceFileCompletion, "source-file", "Completes to a source file."},
160     {lldb::eDiskFileCompletion, "disk-file", "Completes to a disk file."},
161     {lldb::eDiskDirectoryCompletion, "disk-directory",
162      "Completes to a disk directory."},
163     {lldb::eSymbolCompletion, "symbol", "Completes to a symbol."},
164     {lldb::eModuleCompletion, "module", "Completes to a module."},
165     {lldb::eSettingsNameCompletion, "settings-name",
166      "Completes to a settings name."},
167     {lldb::ePlatformPluginCompletion, "platform-plugin",
168      "Completes to a platform plugin."},
169     {lldb::eArchitectureCompletion, "architecture",
170      "Completes to a architecture."},
171     {lldb::eVariablePathCompletion, "variable-path",
172      "Completes to a variable path."},
173     {lldb::eRegisterCompletion, "register", "Completes to a register."},
174     {lldb::eBreakpointCompletion, "breakpoint", "Completes to a breakpoint."},
175     {lldb::eProcessPluginCompletion, "process-plugin",
176      "Completes to a process plugin."},
177     {lldb::eDisassemblyFlavorCompletion, "disassembly-flavor",
178      "Completes to a disassembly flavor."},
179     {lldb::eTypeLanguageCompletion, "type-language",
180      "Completes to a type language."},
181     {lldb::eFrameIndexCompletion, "frame-index", "Completes to a frame index."},
182     {lldb::eModuleUUIDCompletion, "module-uuid", "Completes to a module uuid."},
183     {lldb::eStopHookIDCompletion, "stophook-id", "Completes to a stophook id."},
184     {lldb::eThreadIndexCompletion, "thread-index",
185      "Completes to a thread index."},
186     {lldb::eWatchpointIDCompletion, "watchpoint-id",
187      "Completes to a watchpoint id."},
188     {lldb::eBreakpointNameCompletion, "breakpoint-name",
189      "Completes to a breakpoint name."},
190     {lldb::eProcessIDCompletion, "process-id", "Completes to a process id."},
191     {lldb::eProcessNameCompletion, "process-name",
192      "Completes to a process name."},
193     {lldb::eRemoteDiskFileCompletion, "remote-disk-file",
194      "Completes to a remote disk file."},
195     {lldb::eRemoteDiskDirectoryCompletion, "remote-disk-directory",
196      "Completes to a remote disk directory."},
197     {lldb::eTypeCategoryNameCompletion, "type-category-name",
198      "Completes to a type category name."},
199     {lldb::eCustomCompletion, "custom", "Custom completion."},
200     {lldb::eThreadIDCompletion, "thread-id", "Completes to a thread ID."},
201 };
202 
203 llvm::StringRef RegisterNameHelpTextCallback();
204 llvm::StringRef BreakpointIDHelpTextCallback();
205 llvm::StringRef BreakpointIDRangeHelpTextCallback();
206 llvm::StringRef BreakpointNameHelpTextCallback();
207 llvm::StringRef GDBFormatHelpTextCallback();
208 llvm::StringRef FormatHelpTextCallback();
209 llvm::StringRef LanguageTypeHelpTextCallback();
210 llvm::StringRef SummaryStringHelpTextCallback();
211 llvm::StringRef ExprPathHelpTextCallback();
212 llvm::StringRef arch_helper();
213 
214 static constexpr CommandObject::ArgumentTableEntry g_argument_table[] = {
215     // clang-format off
216     { lldb::eArgTypeAddress, "address", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A valid address in the target program's execution space." },
217     { lldb::eArgTypeAddressOrExpression, "address-expression", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An expression that resolves to an address." },
218     { lldb::eArgTypeAliasName, "alias-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of an abbreviation (alias) for a debugger command." },
219     { lldb::eArgTypeAliasOptions, "options-for-aliased-command", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Command options to be used as part of an alias (abbreviation) definition.  (See 'help commands alias' for more information.)" },
220     { lldb::eArgTypeArchitecture, "arch", lldb::eArchitectureCompletion, {}, { arch_helper, true }, "The architecture name, e.g. i386 or x86_64." },
221     { lldb::eArgTypeBoolean, "boolean", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A Boolean value: 'true' or 'false'" },
222     { lldb::eArgTypeBreakpointID, "breakpt-id", lldb::CompletionType::eNoCompletion, {}, { BreakpointIDHelpTextCallback, false }, nullptr },
223     { lldb::eArgTypeBreakpointIDRange, "breakpt-id-list", lldb::CompletionType::eNoCompletion, {}, { BreakpointIDRangeHelpTextCallback, false }, nullptr },
224     { lldb::eArgTypeBreakpointName, "breakpoint-name", lldb::eBreakpointNameCompletion, {}, { BreakpointNameHelpTextCallback, false }, nullptr },
225     { lldb::eArgTypeByteSize, "byte-size", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Number of bytes to use." },
226     { lldb::eArgTypeClassName, "class-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Then name of a class from the debug information in the program." },
227     { lldb::eArgTypeCommandName, "cmd-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A debugger command (may be multiple words), without any options or arguments." },
228     { lldb::eArgTypeCount, "count", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An unsigned integer." },
229     { lldb::eArgTypeDescriptionVerbosity, "description-verbosity", lldb::CompletionType::eNoCompletion, g_description_verbosity_type, { nullptr, false }, "How verbose the output of 'po' should be." },
230     { lldb::eArgTypeDirectoryName, "directory", lldb::eDiskDirectoryCompletion, {}, { nullptr, false }, "A directory name." },
231     { lldb::eArgTypeDisassemblyFlavor, "disassembly-flavor", lldb::eDisassemblyFlavorCompletion, {}, { nullptr, false }, "A disassembly flavor recognized by your disassembly plugin.  Currently the only valid options are \"att\" and \"intel\" for Intel targets" },
232     { lldb::eArgTypeEndAddress, "end-address", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
233     { lldb::eArgTypeExpression, "expr", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
234     { lldb::eArgTypeExpressionPath, "expr-path", lldb::CompletionType::eNoCompletion, {}, { ExprPathHelpTextCallback, true }, nullptr },
235     { lldb::eArgTypeExprFormat, "expression-format", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "[ [bool|b] | [bin] | [char|c] | [oct|o] | [dec|i|d|u] | [hex|x] | [float|f] | [cstr|s] ]" },
236     { lldb::eArgTypeFileLineColumn, "linespec", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A source specifier in the form file:line[:column]" },
237     { lldb::eArgTypeFilename, "filename", lldb::eDiskFileCompletion, {}, { nullptr, false }, "The name of a file (can include path)." },
238     { lldb::eArgTypeFormat, "format", lldb::CompletionType::eNoCompletion, {}, { FormatHelpTextCallback, true }, nullptr },
239     { lldb::eArgTypeFrameIndex, "frame-index", lldb::eFrameIndexCompletion, {}, { nullptr, false }, "Index into a thread's list of frames." },
240     { lldb::eArgTypeFullName, "fullname", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
241     { lldb::eArgTypeFunctionName, "function-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a function." },
242     { lldb::eArgTypeFunctionOrSymbol, "function-or-symbol", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a function or symbol." },
243     { lldb::eArgTypeGDBFormat, "gdb-format", lldb::CompletionType::eNoCompletion, {}, { GDBFormatHelpTextCallback, true }, nullptr },
244     { lldb::eArgTypeHelpText, "help-text", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Text to be used as help for some other entity in LLDB" },
245     { lldb::eArgTypeIndex, "index", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An index into a list." },
246     { lldb::eArgTypeLanguage, "source-language", lldb::eTypeLanguageCompletion, {}, { LanguageTypeHelpTextCallback, true }, nullptr },
247     { lldb::eArgTypeLineNum, "linenum", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Line number in a source file." },
248     { lldb::eArgTypeLogCategory, "log-category", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a category within a log channel, e.g. all (try \"log list\" to see a list of all channels and their categories." },
249     { lldb::eArgTypeLogChannel, "log-channel", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a log channel, e.g. process.gdb-remote (try \"log list\" to see a list of all channels and their categories)." },
250     { lldb::eArgTypeMethod, "method", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A C++ method name." },
251     { lldb::eArgTypeName, "name", lldb::eTypeCategoryNameCompletion, {}, { nullptr, false }, "The name of a type category." },
252     { lldb::eArgTypeNewPathPrefix, "new-path-prefix", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
253     { lldb::eArgTypeNumLines, "num-lines", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The number of lines to use." },
254     { lldb::eArgTypeNumberPerLine, "number-per-line", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The number of items per line to display." },
255     { lldb::eArgTypeOffset, "offset", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
256     { lldb::eArgTypeOldPathPrefix, "old-path-prefix", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
257     { lldb::eArgTypeOneLiner, "one-line-command", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A command that is entered as a single line of text." },
258     { lldb::eArgTypePath, "path", lldb::eDiskFileCompletion, {}, { nullptr, false }, "Path." },
259     { lldb::eArgTypePermissionsNumber, "perms-numeric", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Permissions given as an octal number (e.g. 755)." },
260     { lldb::eArgTypePermissionsString, "perms=string", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Permissions given as a string value (e.g. rw-r-xr--)." },
261     { lldb::eArgTypePid, "pid", lldb::eProcessIDCompletion, {}, { nullptr, false }, "The process ID number." },
262     { lldb::eArgTypePlugin, "plugin", lldb::eProcessPluginCompletion, {}, { nullptr, false }, "Help text goes here." },
263     { lldb::eArgTypeProcessName, "process-name", lldb::eProcessNameCompletion, {}, { nullptr, false }, "The name of the process." },
264     { lldb::eArgTypePythonClass, "python-class", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a Python class." },
265     { lldb::eArgTypePythonFunction, "python-function", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of a Python function." },
266     { lldb::eArgTypePythonScript, "python-script", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Source code written in Python." },
267     { lldb::eArgTypeQueueName, "queue-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The name of the thread queue." },
268     { lldb::eArgTypeRegisterName, "register-name", lldb::CompletionType::eRegisterCompletion, {}, { RegisterNameHelpTextCallback, true }, nullptr },
269     { lldb::eArgTypeRegularExpression, "regular-expression", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A POSIX-compliant extended regular expression." },
270     { lldb::eArgTypeRunArgs, "run-args", lldb::CompletionType::eDiskFileCompletion, {}, { nullptr, false }, "Arguments to be passed to the target program when it starts executing." },
271     { lldb::eArgTypeRunMode, "run-mode", lldb::CompletionType::eNoCompletion, g_running_mode, { nullptr, false }, "Help text goes here." },
272     { lldb::eArgTypeScriptedCommandSynchronicity, "script-cmd-synchronicity", lldb::CompletionType::eNoCompletion, g_script_synchro_type, { nullptr, false }, "The synchronicity to use to run scripted commands with regard to LLDB event system." },
273     { lldb::eArgTypeScriptLang, "script-language", lldb::CompletionType::eNoCompletion, g_script_option_enumeration, { nullptr, false }, "The scripting language to be used for script-based commands.  Supported languages are python and lua." },
274     { lldb::eArgTypeSearchWord, "search-word", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Any word of interest for search purposes." },
275     { lldb::eArgTypeSelector, "selector", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An Objective-C selector name." },
276     { lldb::eArgTypeSettingIndex, "setting-index", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An index into a settings variable that is an array (try 'settings list' to see all the possible settings variables and their types)." },
277     { lldb::eArgTypeSettingKey, "setting-key", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A key into a settings variables that is a dictionary (try 'settings list' to see all the possible settings variables and their types)." },
278     { lldb::eArgTypeSettingPrefix, "setting-prefix", lldb::CompletionType::eSettingsNameCompletion, {}, { nullptr, false }, "The name of a settable internal debugger variable up to a dot ('.'), e.g. 'target.process.'" },
279     { lldb::eArgTypeSettingVariableName, "setting-variable-name", lldb::CompletionType::eSettingsNameCompletion, {}, { nullptr, false }, "The name of a settable internal debugger variable.  Type 'settings list' to see a complete list of such variables." },
280     { lldb::eArgTypeShlibName, "shlib-name", lldb::CompletionType::eDiskFileCompletion, {}, { nullptr, false }, "The name of a shared library." },
281     { lldb::eArgTypeSourceFile, "source-file", lldb::eSourceFileCompletion, {}, { nullptr, false }, "The name of a source file.." },
282     { lldb::eArgTypeSortOrder, "sort-order", lldb::CompletionType::eNoCompletion, g_sort_option_enumeration, { nullptr, false }, "Specify a sort order when dumping lists." },
283     { lldb::eArgTypeStartAddress, "start-address", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
284     { lldb::eArgTypeSummaryString, "summary-string", lldb::CompletionType::eNoCompletion, {}, { SummaryStringHelpTextCallback, true }, nullptr },
285     { lldb::eArgTypeSymbol, "symbol", lldb::eSymbolCompletion, {}, { nullptr, false }, "Any symbol name (function name, variable, argument, etc.)" },
286     { lldb::eArgTypeThreadID, "thread-id", lldb::CompletionType::eThreadIndexCompletion, {}, { nullptr, false }, "Thread ID number." },
287     { lldb::eArgTypeThreadIndex, "thread-index", lldb::CompletionType::eThreadIndexCompletion, {}, { nullptr, false }, "Index into the process' list of threads." },
288     { lldb::eArgTypeThreadName, "thread-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The thread's name." },
289     { lldb::eArgTypeTypeName, "type-name", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A type name." },
290     { lldb::eArgTypeUnsignedInteger, "unsigned-integer", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An unsigned integer." },
291     { lldb::eArgTypeUnixSignal, "unix-signal", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A valid Unix signal name or number (e.g. SIGKILL, KILL or 9)." },
292     { lldb::eArgTypeVarName, "variable-name", lldb::CompletionType::eVariablePathCompletion, {} ,{ nullptr, false }, "The name of a variable in your program." },
293     { lldb::eArgTypeValue, "value", lldb::CompletionType::eNoCompletion, g_dependents_enumeration, { nullptr, false }, "A value could be anything, depending on where and how it is used." },
294     { lldb::eArgTypeWidth, "width", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Help text goes here." },
295     { lldb::eArgTypeNone, "none", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "No help available for this." },
296     { lldb::eArgTypePlatform, "platform-name", lldb::ePlatformPluginCompletion, {}, { nullptr, false }, "The name of an installed platform plug-in . Type 'platform list' to see a complete list of installed platforms." },
297     { lldb::eArgTypeWatchpointID, "watchpt-id", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Watchpoint IDs are positive integers." },
298     { lldb::eArgTypeWatchpointIDRange, "watchpt-id-list", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "For example, '1-3' or '1 to 3'." },
299     { lldb::eArgTypeWatchType, "watch-type", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Specify the type for a watchpoint." },
300     { lldb::eArgRawInput, "raw-input", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Free-form text passed to a command without prior interpretation, allowing spaces without requiring quotes.  To pass arguments and free form text put two dashes ' -- ' between the last argument and any raw input." },
301     { lldb::eArgTypeCommand, "command", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "An LLDB Command line command element." },
302     { lldb::eArgTypeColumnNum, "column", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "Column number in a source file." },
303     { lldb::eArgTypeModuleUUID, "module-uuid", lldb::eModuleUUIDCompletion, {}, { nullptr, false }, "A module UUID value." },
304     { lldb::eArgTypeSaveCoreStyle, "corefile-style", lldb::CompletionType::eNoCompletion, g_corefile_save_style, { nullptr, false }, "The type of corefile that lldb will try to create, dependant on this target's capabilities." },
305     { lldb::eArgTypeLogHandler, "log-handler", lldb::CompletionType::eNoCompletion, g_log_handler_type ,{ nullptr, false }, "The log handle that will be used to write out log messages." },
306     { lldb::eArgTypeSEDStylePair, "substitution-pair", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A sed-style pattern and target pair." },
307     { lldb::eArgTypeRecognizerID, "frame-recognizer-id", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The ID for a stack frame recognizer." },
308     { lldb::eArgTypeConnectURL, "process-connect-url", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "A URL-style specification for a remote connection." },
309     { lldb::eArgTypeTargetID, "target-id", lldb::CompletionType::eNoCompletion, {}, { nullptr, false }, "The index ID for an lldb Target." },
310     { lldb::eArgTypeStopHookID, "stop-hook-id", lldb::CompletionType::eStopHookIDCompletion, {}, { nullptr, false }, "The ID you receive when you create a stop-hook." },
311     { lldb::eArgTypeCompletionType, "completion-type", lldb::CompletionType::eNoCompletion, g_completion_type, { nullptr, false }, "The completion type to use when adding custom commands. If none is specified, the command won't use auto-completion." },
312     { lldb::eArgTypeRemotePath, "remote-path", lldb::CompletionType::eRemoteDiskFileCompletion, {}, { nullptr, false }, "A path on the system managed by the current platform." },
313     { lldb::eArgTypeRemoteFilename, "remote-filename", lldb::CompletionType::eRemoteDiskFileCompletion, {}, { nullptr, false }, "A file on the system managed by the current platform." },
314     { lldb::eArgTypeModule, "module", lldb::CompletionType::eModuleCompletion, {}, { nullptr, false }, "The name of a module loaded into the current target." },
315     // clang-format on
316 };
317 
318 static_assert((sizeof(g_argument_table) /
319                sizeof(CommandObject::ArgumentTableEntry)) ==
320                   lldb::eArgTypeLastArg,
321               "number of elements in g_argument_table doesn't match "
322               "CommandArgumentType enumeration");
323 
324 } // namespace lldb_private
325 
326 #endif // LLDB_INTERPRETER_COMMANDOPTIONARGUMENTTABLE_H
327