blob: 78988ce5b732f2fb8b2d5b7ef72dcb34b208d63d [file] [log] [blame]
Jonas Devlieghere01f277e2019-07-26 18:14:12 +00001include "../../include/lldb/Core/PropertiesBase.td"
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +00002
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +00003let Definition = "modulelist" in {
4 def EnableExternalLookup: Property<"enable-external-lookup", "Boolean">,
5 Global,
6 DefaultTrue,
Kevin Freic43c86c2023-12-04 11:45:40 -08007 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. If all other methods fail there may be symbol-locator plugins that, if configured properly, will also attempt to acquire symbols. The debuginfod plugin defaults to the DEGUFINFOD_URLS environment variable which is configurable through the 'plugin.symbol-locator.debuginfod.server_urls' setting.">;
Jonas Devlieghere11f45f32022-08-15 17:37:34 -07008 def EnableBackgroundLookup: Property<"enable-background-lookup", "Boolean">,
9 Global,
10 DefaultFalse,
Jason Molenda4cf458c2024-02-15 23:23:50 -080011 Desc<"Alias for backward compatibility: when enabled this is the equivalent to 'symbols.auto-download background'.">;
Jonas Devlieghere5f4b40c2024-02-08 12:39:04 -080012 def AutoDownload: Property<"auto-download", "Enum">,
13 Global,
14 DefaultEnumValue<"eSymbolDownloadOff">,
15 EnumValues<"OptionEnumValues(g_auto_download_enum_values)">,
16 Desc<"On macOS, automatically download symbols with dsymForUUID (or an equivalent script/binary) for relevant images in the debug session.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000017 def ClangModulesCachePath: Property<"clang-modules-cache-path", "FileSpec">,
18 Global,
19 DefaultStringValue<"">,
20 Desc<"The path to the clang modules cache directory (-fmodules-cache-path).">;
Pavel Labath27df2d92019-12-20 16:34:55 +010021 def SymLinkPaths: Property<"debug-info-symlink-paths", "FileSpecList">,
22 Global,
23 DefaultStringValue<"">,
24 Desc<"Debug info path which should be resolved while parsing, relative to the host filesystem.">;
Greg Claytonda816ca2021-12-16 09:59:25 -080025 def EnableLLDBIndexCache: Property<"enable-lldb-index-cache", "Boolean">,
26 Global,
27 DefaultFalse,
28 Desc<"Enable caching for debug sessions in LLDB. LLDB can cache data for each module for improved performance in subsequent debug sessions.">;
29 def LLDBIndexCachePath: Property<"lldb-index-cache-path", "FileSpec">,
30 Global,
31 DefaultStringValue<"">,
32 Desc<"The path to the LLDB index cache directory.">;
33 def LLDBIndexCacheMaxByteSize: Property<"lldb-index-cache-max-byte-size", "UInt64">,
34 Global,
35 DefaultUnsignedValue<0>,
36 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.">;
37 def LLDBIndexCacheMaxPercent: Property<"lldb-index-cache-max-percent", "UInt64">,
38 Global,
39 DefaultUnsignedValue<0>,
40 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.">;
41 def LLDBIndexCacheExpirationDays: Property<"lldb-index-cache-expiration-days", "UInt64">,
42 Global,
43 DefaultUnsignedValue<7>,
44 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.">;
Jeffrey Tan7b811922022-04-20 07:30:53 -070045 def LoadSymbolOnDemand: Property<"load-on-demand", "Boolean">,
46 Global,
47 DefaultFalse,
48 Desc<"Enable on demand symbol loading in LLDB. LLDB will load debug info on demand for each module based on various conditions (e.g. matched breakpoint, resolved stack frame addresses and matched global variables/function symbols in symbol table) to improve performance. Please refer to docs/use/ondemand.rst for details.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000049}
50
51let Definition = "debugger" in {
52 def AutoConfirm: Property<"auto-confirm", "Boolean">,
53 Global,
54 DefaultFalse,
55 Desc<"If true all confirmation prompts will receive their default reply.">;
56 def DisassemblyFormat: Property<"disassembly-format", "FormatEntity">,
57 Global,
Jonas Devliegherec4093db2020-02-24 12:51:01 -080058 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}>}: ">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000059 Desc<"The default disassembly format string to use when disassembling instruction sequences.">;
60 def FrameFormat: Property<"frame-format", "FormatEntity">,
61 Global,
Michael Buche665d952025-04-28 08:29:31 +010062 DefaultStringValue<"frame #${frame.index}: ${ansi.fg.cyan}${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">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000063 Desc<"The default frame format string to use when displaying stack frame information for threads.">;
64 def NotiftVoid: Property<"notify-void", "Boolean">,
65 Global,
66 DefaultFalse,
67 Desc<"Notify the user explicitly if an expression returns void (default: false).">;
68 def Prompt: Property<"prompt", "String">,
69 Global,
70 DefaultEnumValue<"OptionValueString::eOptionEncodeCharacterEscapeSequences">,
71 DefaultStringValue<"(lldb) ">,
72 Desc<"The debugger command line prompt displayed for the user.">;
Jonas Devlieghere645a3852023-09-13 20:58:12 -070073 def PromptAnsiPrefix: Property<"prompt-ansi-prefix", "String">,
74 Global,
75 DefaultStringValue<"${ansi.faint}">,
76 Desc<"When in a color-enabled terminal, use the ANSI terminal code specified in this format immediately before the prompt.">;
77 def PromptAnsiSuffix: Property<"prompt-ansi-suffix", "String">,
78 Global,
79 DefaultStringValue<"${ansi.normal}">,
80 Desc<"When in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the prompt.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000081 def ScriptLanguage: Property<"script-lang", "Enum">,
82 Global,
83 DefaultEnumValue<"eScriptLanguagePython">,
84 EnumValues<"OptionEnumValues(g_language_enumerators)">,
85 Desc<"The script language to be used for evaluating user-written scripts.">;
Jonas Devlieghere46a28a92022-01-05 14:42:21 -080086 def REPLLanguage: Property<"repl-lang", "Language">,
87 Global,
88 DefaultEnumValue<"eLanguageTypeUnknown">,
89 Desc<"The language to use for the REPL.">;
Jonas Devlieghere6f8b33f2023-05-04 09:26:58 -070090 def StopDisassemblyCount: Property<"stop-disassembly-count", "UInt64">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +000091 Global,
92 DefaultUnsignedValue<4>,
93 Desc<"The number of disassembly lines to show when displaying a stopped context.">;
Ely Ronnen290ba282025-04-25 23:35:20 +020094 def StopDisassemblyDisplay
95 : Property<"stop-disassembly-display", "Enum">,
96 Global,
97 DefaultEnumValue<"eStopDisassemblyTypeNoDebugInfo">,
98 EnumValues<"OptionEnumValues(g_show_disassembly_enum_values)">,
99 Desc<"Control when to display disassembly when displaying a stopped "
100 "context.">;
Med Ismail Bennanib889ef42021-02-25 21:28:51 +0000101 def StopDisassemblyMaxSize: Property<"stop-disassembly-max-size", "UInt64">,
102 Global,
103 DefaultUnsignedValue<32000>,
104 Desc<"The size limit to use when disassembling large functions (default: 32KB).">;
Jonas Devlieghere6f8b33f2023-05-04 09:26:58 -0700105 def StopLineCountAfter: Property<"stop-line-count-after", "UInt64">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000106 Global,
107 DefaultUnsignedValue<3>,
108 Desc<"The number of sources lines to display that come after the current source line when displaying a stopped context.">;
Jonas Devlieghere6f8b33f2023-05-04 09:26:58 -0700109 def StopLineCountBefore: Property<"stop-line-count-before", "UInt64">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000110 Global,
111 DefaultUnsignedValue<3>,
112 Desc<"The number of sources lines to display that come before the current source line when displaying a stopped context.">;
113 def HighlightSource: Property<"highlight-source", "Boolean">,
114 Global,
115 DefaultTrue,
116 Desc<"If true, LLDB will highlight the displayed source code.">;
117 def StopShowColumn: Property<"stop-show-column", "Enum">,
118 DefaultEnumValue<"eStopShowColumnAnsiOrCaret">,
119 EnumValues<"OptionEnumValues(s_stop_show_column_values)">,
120 Desc<"If true, LLDB will use the column information from the debug info to mark the current position when displaying a stopped context.">;
121 def StopShowColumnAnsiPrefix: Property<"stop-show-column-ansi-prefix", "String">,
122 Global,
123 DefaultStringValue<"${ansi.underline}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800124 Desc<"When displaying the column marker in a color-enabled terminal, use the ANSI terminal code specified in this format at the immediately before the column to be marked.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000125 def StopShowColumnAnsiSuffix: Property<"stop-show-column-ansi-suffix", "String">,
126 Global,
127 DefaultStringValue<"${ansi.normal}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800128 Desc<"When displaying the column marker in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the column to be marked.">;
Jonas Devlieghere841be982020-02-24 15:34:58 -0800129 def StopShowLineMarkerAnsiPrefix: Property<"stop-show-line-ansi-prefix", "String">,
130 Global,
131 DefaultStringValue<"${ansi.fg.yellow}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800132 Desc<"When displaying the line marker in a color-enabled terminal, use the ANSI terminal code specified in this format at the immediately before the line to be marked.">;
Jonas Devlieghere841be982020-02-24 15:34:58 -0800133 def StopShowLineMarkerAnsiSuffix: Property<"stop-show-line-ansi-suffix", "String">,
134 Global,
135 DefaultStringValue<"${ansi.normal}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800136 Desc<"When displaying the line marker in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the line to be marked.">;
Jonas Devlieghereafd46902024-02-22 21:48:49 -0800137 def TerminalWidth: Property<"term-width", "UInt64">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000138 Global,
139 DefaultUnsignedValue<80>,
140 Desc<"The maximum number of columns to use for displaying text.">;
Jonas Devlieghere3dfc1d92024-12-16 11:11:17 -0800141 def TerminalHeight: Property<"term-height", "UInt64">,
142 Global,
143 DefaultUnsignedValue<24>,
144 Desc<"The number of rows used for displaying text.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000145 def ThreadFormat: Property<"thread-format", "FormatEntity">,
146 Global,
Jonas Devlieghere7296fac2019-07-25 22:17:08 +0000147 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">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000148 Desc<"The default thread format string to use when displaying thread information.">;
149 def ThreadStopFormat: Property<"thread-stop-format", "FormatEntity">,
150 Global,
Jonas Devlieghere7296fac2019-07-25 22:17:08 +0000151 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">,
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000152 Desc<"The default thread format string to use when displaying thread information as part of the stop display.">;
153 def UseExternalEditor: Property<"use-external-editor", "Boolean">,
154 Global,
155 DefaultFalse,
156 Desc<"Whether to use an external editor or not.">;
Jonas Devlieghereb12b35a2023-05-01 14:08:43 -0700157 def ExternalEditor: Property<"external-editor", "String">,
158 Global,
159 DefaultStringValue<"">,
160 Desc<"External editor to use when use-external-editor is enabled.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000161 def UseColor: Property<"use-color", "Boolean">,
162 Global,
163 DefaultTrue,
164 Desc<"Whether to use Ansi color codes or not.">;
Jonas Devlieghere5a27b992022-03-05 15:45:52 -0800165 def ShowProgress: Property<"show-progress", "Boolean">,
166 Global,
167 DefaultTrue,
168 Desc<"Whether to show progress or not if the debugger's output is an interactive color-enabled terminal.">;
Jonas Devlieghere097d46f2022-03-05 17:52:01 -0800169 def ShowProgressAnsiPrefix: Property<"show-progress-ansi-prefix", "String">,
170 Global,
171 DefaultStringValue<"${ansi.faint}">,
172 Desc<"When displaying progress in a color-enabled terminal, use the ANSI terminal code specified in this format immediately before the progress message.">;
173 def ShowProgressAnsiSuffix: Property<"show-progress-ansi-suffix", "String">,
174 Global,
175 DefaultStringValue<"${ansi.normal}">,
176 Desc<"When displaying progress in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the progress message.">;
Jonas Devlieghere9c18edc2025-03-26 14:41:05 -0700177 def ShowStatusline: Property<"show-statusline", "Boolean">,
178 Global,
179 DefaultTrue,
David Spickett09488bc2025-05-01 16:40:47 +0100180 Desc<"Whether to show a statusline at the bottom of the terminal (not supported on Windows).">;
Adrian Prantl6f1adbd2025-04-22 12:59:46 -0700181 def Separator : Property<"separator", "String">,
182 Global,
183 DefaultStringValue<"│ ">,
184 Desc<"A separator used, e.g., in the status line.">;
185 def StatuslineFormat
186 : Property<"statusline-format", "FormatEntity">,
187 Global,
188 DefaultStringValue<
Jonas Devlieghere45cd7082025-05-08 09:09:46 -0700189 "${ansi.negative}{${target.file.basename}|no target}{ "
Adrian Prantl6f1adbd2025-04-22 12:59:46 -0700190 "${separator}${line.file.basename}:${line.number}:${line.column}}{ "
191 "${separator}${thread.stop-reason}}{ "
192 "${separator}{${progress.count} }${progress.message}}">,
193 Desc<"The default statusline format string.">;
Emre Kultursayacae69d2020-04-20 16:17:17 +0200194 def UseSourceCache: Property<"use-source-cache", "Boolean">,
195 Global,
196 DefaultTrue,
197 Desc<"Whether to cache source files in memory or not.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000198 def AutoOneLineSummaries: Property<"auto-one-line-summaries", "Boolean">,
199 Global,
200 DefaultTrue,
201 Desc<"If true, LLDB will automatically display small structs in one-liner format (default: true).">;
202 def AutoIndent: Property<"auto-indent", "Boolean">,
203 Global,
204 DefaultTrue,
205 Desc<"If true, LLDB will auto indent/outdent code. Currently only supported in the REPL (default: true).">;
206 def PrintDecls: Property<"print-decls", "Boolean">,
207 Global,
208 DefaultTrue,
209 Desc<"If true, LLDB will print the values of variables declared in an expression. Currently only supported in the REPL (default: true).">;
210 def TabSize: Property<"tab-size", "UInt64">,
211 Global,
walter erquinigo47aca752023-08-27 14:35:01 -0400212 DefaultUnsignedValue<2>,
213 Desc<"The tab size to use when indenting code in multi-line input mode (default: 2).">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000214 def EscapeNonPrintables: Property<"escape-non-printables", "Boolean">,
215 Global,
216 DefaultTrue,
217 Desc<"If true, LLDB will automatically escape non-printable and escape characters when formatting strings.">;
218 def FrameFormatUnique: Property<"frame-format-unique", "FormatEntity">,
219 Global,
Michael Buche665d952025-04-28 08:29:31 +0100220 DefaultStringValue<"frame #${frame.index}: ${ansi.fg.cyan}${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">,
David Spickett3c2275a2022-10-07 08:42:01 +0000221 Desc<"The default frame format string to use when displaying stack frame information for threads from thread backtrace unique.">;
Shu Anzaide9e8502020-08-12 12:54:28 +0200222 def ShowAutosuggestion: Property<"show-autosuggestion", "Boolean">,
223 Global,
224 DefaultFalse,
Dave Lee02286d92021-05-14 18:11:29 -0700225 Desc<"If true, LLDB will show suggestions to complete the command the user typed. Suggestions may be accepted using Ctrl-F.">;
Jonas Devlieghere080635e2022-03-07 08:37:42 -0800226 def ShowAutosuggestionAnsiPrefix: Property<"show-autosuggestion-ansi-prefix", "String">,
227 Global,
228 DefaultStringValue<"${ansi.faint}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800229 Desc<"When displaying suggestion in a color-enabled terminal, use the ANSI terminal code specified in this format immediately before the suggestion.">;
Jonas Devlieghere080635e2022-03-07 08:37:42 -0800230 def ShowAutosuggestionAnsiSuffix: Property<"show-autosuggestion-ansi-suffix", "String">,
231 Global,
232 DefaultStringValue<"${ansi.normal}">,
Jonas Devliegherebfab18d2022-03-08 18:22:56 -0800233 Desc<"When displaying suggestion in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the suggestion.">;
taalhaataahir0102c90cb6e2023-12-08 16:09:04 +0500234 def ShowRegexMatchAnsiPrefix: Property<"show-regex-match-ansi-prefix", "String">,
235 Global,
236 DefaultStringValue<"${ansi.fg.red}">,
237 Desc<"When displaying a regex match in a color-enabled terminal, use the ANSI terminal code specified in this format immediately before the match.">;
238 def ShowRegexMatchAnsiSuffix: Property<"show-regex-match-ansi-suffix", "String">,
239 Global,
240 DefaultStringValue<"${ansi.normal}">,
241 Desc<"When displaying a regex match in a color-enabled terminal, use the ANSI terminal code specified in this format immediately after the match.">;
Augusto Noronha5f45a872023-06-28 16:34:26 -0700242 def ShowDontUsePoHint: Property<"show-dont-use-po-hint", "Boolean">,
243 Global,
244 DefaultTrue,
245 Desc<"If true, and object description was requested for a type that does not implement it, LLDB will print a hint telling the user to consider using p instead.">;
Dave Lee185d4962022-11-17 17:11:30 -0800246 def DWIMPrintVerbosity: Property<"dwim-print-verbosity", "Enum">,
247 Global,
Dave Lee632c3962023-03-07 15:58:19 -0800248 DefaultEnumValue<"eDWIMPrintVerbosityNone">,
Dave Lee185d4962022-11-17 17:11:30 -0800249 EnumValues<"OptionEnumValues(g_dwim_print_verbosities)">,
250 Desc<"The verbosity level used by dwim-print.">;
Adrian Prantld33fa702024-09-27 16:32:35 -0700251 def ShowInlineDiagnostics: Property<"show-inline-diagnostics", "Boolean">,
252 Global,
253 DefaultFalse,
254 Desc<"Controls whether diagnostics can refer directly to the command input, drawing arrows to it. If false, diagnostics will echo the input.">;
Jonas Devlieghere971f9ca2019-07-25 21:36:37 +0000255}