"A summary string is a way to extract information from variables in order to present them using a summary.\n"
"Summary strings contain static text, variables, scopes and control sequences:\n"
" - Static text can be any sequence of non-special characters, i.e. anything but '{', '}', '$', or '\\'.\n"
" - Variables are sequences of characters beginning with ${, ending with } and that contain symbols in the format described below.\n"
" - Scopes are any sequence of text between { and }. Anything included in a scope will only appear in the output summary if there were no errors.\n"
" - Control sequences are the usual C/C++ '\\a', '\\n', ..., plus '\\$', '\\{' and '\\}'.\n"
"A summary string works by copying static text verbatim, turning control sequences into their character counterpart, expanding variables and trying to expand scopes.\n"
"A variable is expanded by giving it a value other than its textual representation, and the way this is done depends on what comes after the ${ marker.\n"
"The most common sequence if ${var followed by an expression path, which is the text one would type to access a member of an aggregate types, given a variable of that type"
" (e.g. if type T has a member named x, which has a member named y, and if t is of type T, the expression path would be .x.y and the way to fit that into a summary string would be"
" ${var.x.y}). You can also use ${*var followed by an expression path and in that case the object referred by the path will be dereferenced before being displayed."
" If the object is not a pointer, doing so will cause an error. For additional details on expression paths, you can type 'help expr-path'. \n"
"By default, summary strings attempt to display the summary for any variable they reference, and if that fails the value. If neither can be shown, nothing is displayed."
"In a summary string, you can also use an array index [n], or a slice-like range [n-m]. This can have two different meanings depending on what kind of object the expression"
" path refers to:\n"
" - if it is a scalar type (any basic type like int, float, ...) the expression is a bitfield, i.e. the bits indicated by the indexing operator are extracted out of the number"
" and displayed as an individual variable\n"
" - if it is an array or pointer the array items indicated by the indexing operator are shown as the result of the variable. if the expression is an array, real array items are"
" printed; if it is a pointer, the pointer-as-array syntax is used to obtain the values (this means, the latter case can have no range checking)\n"
"If you are trying to display an array for which the size is known, you can also use [] instead of giving an exact range. This has the effect of showing items 0 thru size - 1.\n"
"Additionally, a variable can contain an (optional) format code, as in ${var.x.y%code}, where code can be any of the valid formats described in 'help format', or one of the"
" special symbols only allowed as part of a variable:\n"
" %V: show the value of the object by default\n"
" %S: show the summary of the object by default\n"
" %@: show the runtime-provided object description (for Objective-C, it calls NSPrintForDebugger; for C/C++ it does nothing)\n"
" %L: show the location of the object (memory address or a register name)\n"
" %#: show the number of children of the object\n"
" %T: show the type of the object\n"
"Another variable that you can use in summary strings is ${svar . This sequence works exactly like ${var, including the fact that ${*svar is an allowed sequence, but uses"
" the object's synthetic children provider instead of the actual objects. For instance, if you are using STL synthetic children providers, the following summary string would"
" count the number of actual elements stored in an std::list:\n"
"An expression path is the sequence of symbols that is used in C/C++ to access a member variable of an aggregate object (class).\n"
"For instance, given a class:\n"
" class foo {\n"
" int a;\n"
" int b; .\n"
" foo* next;\n"
" };\n"
"the expression to read item b in the item pointed to by next for foo aFoo would be aFoo.next->b.\n"
"Given that aFoo could just be any object of type foo, the string '.next->b' is the expression path, because it can be attached to any foo instance to achieve the effect.\n"
"Expression paths in LLDB include dot (.) and arrow (->) operators, and most commands using expression paths have ways to also accept the star (*) operator.\n"
"The meaning of these operators is the same as the usual one given to them by the C/C++ standards.\n"
"LLDB also has support for indexing ([ ]) in expression paths, and extends the traditional meaning of the square brackets operator to allow bitfield extraction:\n"
"for objects of native types (int, float, char, ...) saying '[n-m]' as an expression path (where n and m are any positive integers, e.g. [3-5]) causes LLDB to extract"
" bits n thru m from the value of the variable. If n == m, [n] is also allowed as a shortcut syntax. For arrays and pointers, expression paths can only contain one index"
" and the meaning of the operation is the same as the one defined by C/C++ (item extraction). Some commands extend bitfield-like syntax for arrays and pointers with the"
" meaning of array slicing (taking elements n thru m inside the array or pointed-to memory).";
g_archs_help.Printf("These are the supported architecture names:\n");
archs.Join("\n",g_archs_help);
}
returng_archs_help.GetData();
}
CommandObject::ArgumentTableEntry
CommandObject::g_arguments_data[]=
{
{eArgTypeAddress,"address",CommandCompletions::eNoCompletion,{NULL,false},"A valid address in the target program's execution space."},
{eArgTypeAddressOrExpression,"address-expression",CommandCompletions::eNoCompletion,{NULL,false},"An expression that resolves to an address."},
{eArgTypeAliasName,"alias-name",CommandCompletions::eNoCompletion,{NULL,false},"The name of an abbreviation (alias) for a debugger command."},
{eArgTypeAliasOptions,"options-for-aliased-command",CommandCompletions::eNoCompletion,{NULL,false},"Command options to be used as part of an alias (abbreviation) definition. (See 'help commands alias' for more information.)"},
{eArgTypeArchitecture,"arch",CommandCompletions::eArchitectureCompletion,{arch_helper,true},"The architecture name, e.g. i386 or x86_64."},
{eArgTypeBoolean,"boolean",CommandCompletions::eNoCompletion,{NULL,false},"A Boolean value: 'true' or 'false'"},
{eArgTypeByteSize,"byte-size",CommandCompletions::eNoCompletion,{NULL,false},"Number of bytes to use."},
{eArgTypeClassName,"class-name",CommandCompletions::eNoCompletion,{NULL,false},"Then name of a class from the debug information in the program."},
{eArgTypeCommandName,"cmd-name",CommandCompletions::eNoCompletion,{NULL,false},"A debugger command (may be multiple words), without any options or arguments."},
{eArgTypeDisassemblyFlavor,"disassembly-flavor",CommandCompletions::eNoCompletion,{NULL,false},"A disassembly flavor recognized by your disassembly plugin. Currently the only valid options are \"att\" and \"intel\" for Intel targets"},
{eArgTypeLineNum,"linenum",CommandCompletions::eNoCompletion,{NULL,false},"Line number in a source file."},
{eArgTypeLogCategory,"log-category",CommandCompletions::eNoCompletion,{NULL,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."},
{eArgTypeLogChannel,"log-channel",CommandCompletions::eNoCompletion,{NULL,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)."},
{eArgTypeMethod,"method",CommandCompletions::eNoCompletion,{NULL,false},"A C++ method name."},
{eArgTypeName,"name",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeNewPathPrefix,"new-path-prefix",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeNumLines,"num-lines",CommandCompletions::eNoCompletion,{NULL,false},"The number of lines to use."},
{eArgTypeNumberPerLine,"number-per-line",CommandCompletions::eNoCompletion,{NULL,false},"The number of items per line to display."},
{eArgTypeOffset,"offset",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeOldPathPrefix,"old-path-prefix",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeOneLiner,"one-line-command",CommandCompletions::eNoCompletion,{NULL,false},"A command that is entered as a single line of text."},
{eArgTypeRunArgs,"run-args",CommandCompletions::eNoCompletion,{NULL,false},"Arguments to be passed to the target program when it starts executing."},
{eArgTypeRunMode,"run-mode",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeScriptedCommandSynchronicity,"script-cmd-synchronicity",CommandCompletions::eNoCompletion,{NULL,false},"The synchronicity to use to run scripted commands with regard to LLDB event system."},
{eArgTypeScriptLang,"script-language",CommandCompletions::eNoCompletion,{NULL,false},"The scripting language to be used for script-based commands. Currently only Python is valid."},
{eArgTypeSearchWord,"search-word",CommandCompletions::eNoCompletion,{NULL,false},"The word for which you wish to search for information about."},
{eArgTypeSettingIndex,"setting-index",CommandCompletions::eNoCompletion,{NULL,false},"An index into a settings variable that is an array (try 'settings list' to see all the possible settings variables and their types)."},
{eArgTypeSettingKey,"setting-key",CommandCompletions::eNoCompletion,{NULL,false},"A key into a settings variables that is a dictionary (try 'settings list' to see all the possible settings variables and their types)."},
{eArgTypeSettingPrefix,"setting-prefix",CommandCompletions::eNoCompletion,{NULL,false},"The name of a settable internal debugger variable up to a dot ('.'), e.g. 'target.process.'"},
{eArgTypeSettingVariableName,"setting-variable-name",CommandCompletions::eNoCompletion,{NULL,false},"The name of a settable internal debugger variable. Type 'settings list' to see a complete list of such variables."},
{eArgTypeShlibName,"shlib-name",CommandCompletions::eNoCompletion,{NULL,false},"The name of a shared library."},
{eArgTypeSourceFile,"source-file",CommandCompletions::eSourceFileCompletion,{NULL,false},"The name of a source file.."},
{eArgTypeSortOrder,"sort-order",CommandCompletions::eNoCompletion,{NULL,false},"Specify a sort order when dumping lists."},
{eArgTypeStartAddress,"start-address",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeUnixSignal,"unix-signal",CommandCompletions::eNoCompletion,{NULL,false},"A valid Unix signal name or number (e.g. SIGKILL, KILL or 9)."},
{eArgTypeVarName,"variable-name",CommandCompletions::eNoCompletion,{NULL,false},"The name of a variable in your program."},
{eArgTypeValue,"value",CommandCompletions::eNoCompletion,{NULL,false},"A value could be anything, depending on where and how it is used."},
{eArgTypeWidth,"width",CommandCompletions::eNoCompletion,{NULL,false},"Help text goes here."},
{eArgTypeNone,"none",CommandCompletions::eNoCompletion,{NULL,false},"No help available for this."},
{eArgTypePlatform,"platform-name",CommandCompletions::ePlatformPluginCompletion,{NULL,false},"The name of an installed platform plug-in . Type 'platform list' to see a complete list of installed platforms."},
{eArgTypeWatchpointID,"watchpt-id",CommandCompletions::eNoCompletion,{NULL,false},"Watchpoint IDs are positive integers."},
{eArgTypeWatchpointIDRange,"watchpt-id-list",CommandCompletions::eNoCompletion,{NULL,false},"For example, '1-3' or '1 to 3'."},
{eArgTypeWatchType,"watch-type",CommandCompletions::eNoCompletion,{NULL,false},"Specify the type for a watchpoint."}
};
constCommandObject::ArgumentTableEntry*
CommandObject::GetArgumentTable()
{
// If this assertion fires, then the table above is out of date with the CommandArgumentType enumeration