I've been working on more/better configuration for improving DEBUGINFOD support. This is the first (and easiest) slice of the work. I've added `timeout` and `cache-path` settings that can override the DEBUGINFOD library defaults (and environment variables.) I also renamed the `plugin.symbol-locator.debuginfod.server_urls` setting to `server-urls` to be more consistent with the rest of LLDB's settings (the underscore switch is switched to a hyphen) I've got a few tests that validate the cache-path setting (as a side-effect), but they've exposed a few bugs that I'll be putting up a separate PR for (which will include the tests). --------- Co-authored-by: Kevin Frei <freik@meta.com>
14 lines
825 B
TableGen
14 lines
825 B
TableGen
include "../../../../include/lldb/Core/PropertiesBase.td"
|
|
|
|
let Definition = "symbollocatordebuginfod" in {
|
|
def ServerURLs : Property<"server-urls", "Array">,
|
|
ElementType<"String">,
|
|
Desc<"An ordered list of Debuginfod server URLs to query for symbols. This defaults to the contents of the DEBUGINFOD_URLS environment variable.">;
|
|
def SymbolCachePath: Property<"cache-path", "String">,
|
|
DefaultStringValue<"">,
|
|
Desc<"The path where symbol files should be cached. This defaults to LLDB's system cache location.">;
|
|
def Timeout : Property<"timeout", "UInt64">,
|
|
DefaultUnsignedValue<0>,
|
|
Desc<"Timeout (in seconds) for requests made to a DEBUGINFOD server. A value of zero means we use the debuginfod default timeout: DEBUGINFOD_TIMEOUT if the environment variable is set and 90 seconds otherwise.">;
|
|
}
|