Debugger: add settings manager for source location mappings.
- If it was necessary to help the debugger locate a particular source file due to it not being found on disk at the location specified in the debug information, the associated user-supplied path mappings are now saved and restored in the team settings. The file manager still needs a bit of extra work to apply these as files are added though.
This commit is contained in:
@@ -1991,6 +1991,8 @@ TeamDebugger::_LoadSettings()
|
||||
breakpointSetting->IsEnabled());
|
||||
}
|
||||
|
||||
fFileManager->LoadLocationMappings(fTeamSettings.FileManagerSettings());
|
||||
|
||||
const TeamUiSettings* uiSettings = fTeamSettings.UiSettingFor(
|
||||
fUserInterface->ID());
|
||||
if (uiSettings != NULL)
|
||||
@@ -2022,6 +2024,8 @@ TeamDebugger::_SaveSettings()
|
||||
settings.AddUiSettings(clonedSettings);
|
||||
}
|
||||
}
|
||||
|
||||
fFileManager->SaveLocationMappings(settings.FileManagerSettings());
|
||||
locker.Unlock();
|
||||
|
||||
// save the settings
|
||||
|
||||
Reference in New Issue
Block a user