diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFProperties.td b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFProperties.td index 2f1ce88808b763f7ac2f6623fe0c92927d35de6d..ef6ae349858820c69cb15f16b709f623f104212b 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFProperties.td +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFProperties.td @@ -1,6 +1,10 @@ include "../../../../include/lldb/Core/PropertiesBase.td" let Definition = "symbolfiledwarf" in { + def SymLinkPaths: Property<"comp-dir-symlink-paths", "FileSpecList">, + Global, + DefaultStringValue<"">, + Desc<"If the DW_AT_comp_dir matches any of these paths the symbolic links will be resolved at DWARF parse time.">; def IgnoreIndexes: Property<"ignore-file-indexes", "Boolean">, Global, DefaultFalse, diff --git a/lldb/test/API/commands/settings/TestSettings.py b/lldb/test/API/commands/settings/TestSettings.py index 180d45e4e9342994f58379efe55c66afe798461b..038240047321d3b14b47b39c9218f43c3a0745ae 100644 --- a/lldb/test/API/commands/settings/TestSettings.py +++ b/lldb/test/API/commands/settings/TestSettings.py @@ -742,3 +742,12 @@ class SettingsCommandTestCase(TestBase): # finally, confirm that trying to set a setting that does not exist still fails. # (SHOWING a setting that does not exist does not currently yield an error.) self.expect('settings set target.setting-which-does-not-exist true', error=True) + + def test_settings_plugin_path(self): + path = self.getBuildArtifact("/proc/self/cwd"); + self.runCmd("settings set plugin.symbol-file.dwarf.comp-dir-symlink-paths %s" % + path) #Set to konw value + self.expect("settings show plugin.symbol-file.dwarf.comp-dir-symlink-paths", + substrs=['plugin.symbol-file.dwarf.comp-dir-symlink-paths (file-list) =', + '[0]: \proc\self\cwd']) + self.runCmd("settings clear plugin.symbol-file.dwarf.comp-dir-symlink-paths")