1include "../../include/lldb/Core/PropertiesBase.td" 2 3let Definition = "modulelist" in { 4 def EnableExternalLookup: Property<"enable-external-lookup", "Boolean">, 5 Global, 6 DefaultTrue, 7 Desc<"Control the use of external tools and repositories to locate symbol files. Directories listed in target.debug-file-search-paths and directory of the executable are always checked first for separate debug info files. Then depending on this setting: On macOS, Spotlight would be also used to locate a matching .dSYM bundle based on the UUID of the executable. On NetBSD, directory /usr/libdata/debug would be also searched. On platforms other than NetBSD directory /usr/lib/debug would be also searched.">; 8 def ClangModulesCachePath: Property<"clang-modules-cache-path", "FileSpec">, 9 Global, 10 DefaultStringValue<"">, 11 Desc<"The path to the clang modules cache directory (-fmodules-cache-path).">; 12 def SymLinkPaths: Property<"debug-info-symlink-paths", "FileSpecList">, 13 Global, 14 DefaultStringValue<"">, 15 Desc<"Debug info path which should be resolved while parsing, relative to the host filesystem.">; 16 def EnableLLDBIndexCache: Property<"enable-lldb-index-cache", "Boolean">, 17 Global, 18 DefaultFalse, 19 Desc<"Enable caching for debug sessions in LLDB. LLDB can cache data for each module for improved performance in subsequent debug sessions.">; 20 def LLDBIndexCachePath: Property<"lldb-index-cache-path", "FileSpec">, 21 Global, 22 DefaultStringValue<"">, 23 Desc<"The path to the LLDB index cache directory.">; 24 def LLDBIndexCacheMaxByteSize: Property<"lldb-index-cache-max-byte-size", "UInt64">, 25 Global, 26 DefaultUnsignedValue<0>, 27 Desc<"The maximum size for the LLDB index cache directory in bytes. A value over the amount of available space on the disk will be reduced to the amount of available space. A value of 0 disables the absolute size-based pruning.">; 28 def LLDBIndexCacheMaxPercent: Property<"lldb-index-cache-max-percent", "UInt64">, 29 Global, 30 DefaultUnsignedValue<0>, 31 Desc<"The maximum size for the cache directory in terms of percentage of the available space on the disk. Set to 100 to indicate no limit, 50 to indicate that the cache size will not be left over half the available disk space. A value over 100 will be reduced to 100. A value of 0 disables the percentage size-based pruning.">; 32 def LLDBIndexCacheExpirationDays: Property<"lldb-index-cache-expiration-days", "UInt64">, 33 Global, 34 DefaultUnsignedValue<7>, 35 Desc<"The expiration time in days for a file. When a file hasn't been accessed for the specified amount of days, it is removed from the cache. A value of 0 disables the expiration-based pruning.">; 36} 37 38let Definition = "debugger" in { 39 def AutoConfirm: Property<"auto-confirm", "Boolean">, 40 Global, 41 DefaultFalse, 42 Desc<"If true all confirmation prompts will receive their default reply.">; 43 def DisassemblyFormat: Property<"disassembly-format", "FormatEntity">, 44 Global, 45 DefaultStringValue<"{${function.initial-function}{${module.file.basename}`}{${function.name-without-args}}:\\\\n}{${function.changed}\\\\n{${module.file.basename}`}{${function.name-without-args}}:\\\\n}{${ansi.fg.yellow}${current-pc-arrow}${ansi.normal} }${addr-file-or-load}{ <${function.concrete-only-addr-offset-no-padding}>}: ">, 46 Desc<"The default disassembly format string to use when disassembling instruction sequences.">; 47 def FrameFormat: Property<"frame-format", "FormatEntity">, 48 Global, 49 DefaultStringValue<"frame #${frame.index}: ${ansi.fg.yellow}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-with-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">, 50 Desc<"The default frame format string to use when displaying stack frame information for threads.">; 51 def NotiftVoid: Property<"notify-void", "Boolean">, 52 Global, 53 DefaultFalse, 54 Desc<"Notify the user explicitly if an expression returns void (default: false).">; 55 def Prompt: Property<"prompt", "String">, 56 Global, 57 DefaultEnumValue<"OptionValueString::eOptionEncodeCharacterEscapeSequences">, 58 DefaultStringValue<"(lldb) ">, 59 Desc<"The debugger command line prompt displayed for the user.">; 60 def ScriptLanguage: Property<"script-lang", "Enum">, 61 Global, 62 DefaultEnumValue<"eScriptLanguageLua">, 63 EnumValues<"OptionEnumValues(g_language_enumerators)">, 64 Desc<"The script language to be used for evaluating user-written scripts.">; 65 def REPLLanguage: Property<"repl-lang", "Language">, 66 Global, 67 DefaultEnumValue<"eLanguageTypeUnknown">, 68 Desc<"The language to use for the REPL.">; 69 def StopDisassemblyCount: Property<"stop-disassembly-count", "SInt64">, 70 Global, 71 DefaultUnsignedValue<4>, 72 Desc<"The number of disassembly lines to show when displaying a stopped context.">; 73 def StopDisassemblyDisplay: Property<"stop-disassembly-display", "Enum">, 74 Global, 75 DefaultEnumValue<"Debugger::eStopDisassemblyTypeNoDebugInfo">, 76 EnumValues<"OptionEnumValues(g_show_disassembly_enum_values)">, 77 Desc<"Control when to display disassembly when displaying a stopped context.">; 78 def StopDisassemblyMaxSize: Property<"stop-disassembly-max-size", "UInt64">, 79 Global, 80 DefaultUnsignedValue<32000>, 81 Desc<"The size limit to use when disassembling large functions (default: 32KB).">; 82 def StopLineCountAfter: Property<"stop-line-count-after", "SInt64">, 83 Global, 84 DefaultUnsignedValue<3>, 85 Desc<"The number of sources lines to display that come after the current source line when displaying a stopped context.">; 86 def StopLineCountBefore: Property<"stop-line-count-before", "SInt64">, 87 Global, 88 DefaultUnsignedValue<3>, 89 Desc<"The number of sources lines to display that come before the current source line when displaying a stopped context.">; 90 def HighlightSource: Property<"highlight-source", "Boolean">, 91 Global, 92 DefaultTrue, 93 Desc<"If true, LLDB will highlight the displayed source code.">; 94 def StopShowColumn: Property<"stop-show-column", "Enum">, 95 DefaultEnumValue<"eStopShowColumnAnsiOrCaret">, 96 EnumValues<"OptionEnumValues(s_stop_show_column_values)">, 97 Desc<"If true, LLDB will use the column information from the debug info to mark the current position when displaying a stopped context.">; 98 def StopShowColumnAnsiPrefix: Property<"stop-show-column-ansi-prefix", "String">, 99 Global, 100 DefaultStringValue<"${ansi.underline}">, 101 Desc<"When displaying the column marker in a color-enabled (i.e. ANSI) terminal, use the ANSI terminal code specified in this format at the immediately before the column to be marked.">; 102 def StopShowColumnAnsiSuffix: Property<"stop-show-column-ansi-suffix", "String">, 103 Global, 104 DefaultStringValue<"${ansi.normal}">, 105 Desc<"When displaying the column marker in a color-enabled (i.e. ANSI) terminal, use the ANSI terminal code specified in this format immediately after the column to be marked.">; 106 def StopShowLineMarkerAnsiPrefix: Property<"stop-show-line-ansi-prefix", "String">, 107 Global, 108 DefaultStringValue<"${ansi.fg.yellow}">, 109 Desc<"When displaying the line marker in a color-enabled (i.e. ANSI) terminal, use the ANSI terminal code specified in this format at the immediately before the line to be marked.">; 110 def StopShowLineMarkerAnsiSuffix: Property<"stop-show-line-ansi-suffix", "String">, 111 Global, 112 DefaultStringValue<"${ansi.normal}">, 113 Desc<"When displaying the line marker in a color-enabled (i.e. ANSI) terminal, use the ANSI terminal code specified in this format immediately after the line to be marked.">; 114 def TerminalWidth: Property<"term-width", "SInt64">, 115 Global, 116 DefaultUnsignedValue<80>, 117 Desc<"The maximum number of columns to use for displaying text.">; 118 def ThreadFormat: Property<"thread-format", "FormatEntity">, 119 Global, 120 DefaultStringValue<"thread #${thread.index}: tid = ${thread.id%tid}{, ${frame.pc}}{ ${module.file.basename}{`${function.name-with-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{, name = ${ansi.fg.green}'${thread.name}'${ansi.normal}}{, queue = ${ansi.fg.green}'${thread.queue}'${ansi.normal}}{, activity = ${ansi.fg.green}'${thread.info.activity.name}'${ansi.normal}}{, ${thread.info.trace_messages} messages}{, stop reason = ${ansi.fg.red}${thread.stop-reason}${ansi.normal}}{\\\\nReturn value: ${thread.return-value}}{\\\\nCompleted expression: ${thread.completed-expression}}\\\\n">, 121 Desc<"The default thread format string to use when displaying thread information.">; 122 def ThreadStopFormat: Property<"thread-stop-format", "FormatEntity">, 123 Global, 124 DefaultStringValue<"thread #${thread.index}{, name = '${thread.name}'}{, queue = ${ansi.fg.green}'${thread.queue}'${ansi.normal}}{, activity = ${ansi.fg.green}'${thread.info.activity.name}'${ansi.normal}}{, ${thread.info.trace_messages} messages}{, stop reason = ${ansi.fg.red}${thread.stop-reason}${ansi.normal}}{\\\\nReturn value: ${thread.return-value}}{\\\\nCompleted expression: ${thread.completed-expression}}\\\\n">, 125 Desc<"The default thread format string to use when displaying thread information as part of the stop display.">; 126 def UseExternalEditor: Property<"use-external-editor", "Boolean">, 127 Global, 128 DefaultFalse, 129 Desc<"Whether to use an external editor or not.">; 130 def UseColor: Property<"use-color", "Boolean">, 131 Global, 132 DefaultTrue, 133 Desc<"Whether to use Ansi color codes or not.">; 134 def UseSourceCache: Property<"use-source-cache", "Boolean">, 135 Global, 136 DefaultTrue, 137 Desc<"Whether to cache source files in memory or not.">; 138 def AutoOneLineSummaries: Property<"auto-one-line-summaries", "Boolean">, 139 Global, 140 DefaultTrue, 141 Desc<"If true, LLDB will automatically display small structs in one-liner format (default: true).">; 142 def AutoIndent: Property<"auto-indent", "Boolean">, 143 Global, 144 DefaultTrue, 145 Desc<"If true, LLDB will auto indent/outdent code. Currently only supported in the REPL (default: true).">; 146 def PrintDecls: Property<"print-decls", "Boolean">, 147 Global, 148 DefaultTrue, 149 Desc<"If true, LLDB will print the values of variables declared in an expression. Currently only supported in the REPL (default: true).">; 150 def TabSize: Property<"tab-size", "UInt64">, 151 Global, 152 DefaultUnsignedValue<4>, 153 Desc<"The tab size to use when indenting code in multi-line input mode (default: 4).">; 154 def EscapeNonPrintables: Property<"escape-non-printables", "Boolean">, 155 Global, 156 DefaultTrue, 157 Desc<"If true, LLDB will automatically escape non-printable and escape characters when formatting strings.">; 158 def FrameFormatUnique: Property<"frame-format-unique", "FormatEntity">, 159 Global, 160 DefaultStringValue<"frame #${frame.index}: ${ansi.fg.yellow}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-without-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">, 161 Desc<"The default frame format string to use when displaying stack frameinformation for threads from thread backtrace unique.">; 162 def ShowAutosuggestion: Property<"show-autosuggestion", "Boolean">, 163 Global, 164 DefaultFalse, 165 Desc<"If true, LLDB will show suggestions to complete the command the user typed. Suggestions may be accepted using Ctrl-F.">; 166} 167