summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-09-07 20:27:09 +0000
committerJim Ingham <jingham@apple.com>2010-09-07 20:27:09 +0000
commit95852755a84a744f549dcbc15ca9e76a6d6cf3a5 (patch)
treeb71cded162d7e359b69b7779ba1a828d69fdfc61 /lldb/source/Core/Debugger.cpp
parent7c483028fbe09b56e4ee62201f3f5dc9e18e5687 (diff)
downloadbcm5719-llvm-95852755a84a744f549dcbc15ca9e76a6d6cf3a5.tar.gz
bcm5719-llvm-95852755a84a744f549dcbc15ca9e76a6d6cf3a5.zip
Move common code from GetSettingsController in Process & Debugger into static functions
in UserSettingsController.cpp. llvm-svn: 113268
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index aa7d08a8827..08033d04ec6 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -542,18 +542,9 @@ Debugger::GetSettingsController (bool finish)
if (!initialized)
{
- UserSettingsControllerSP parent = g_settings_controller->GetParent();
- if (parent)
- parent->RegisterChild (g_settings_controller);
-
- g_settings_controller->CreateSettingsVector (Debugger::DebuggerSettingsController::global_settings_table,
- true);
- g_settings_controller->CreateSettingsVector (Debugger::DebuggerSettingsController::instance_settings_table,
- false);
-
- g_settings_controller->InitializeGlobalVariables ();
- g_settings_controller->CreateDefaultInstanceSettings ();
- initialized = true;
+ initialized = UserSettingsController::InitializeSettingsController (g_settings_controller,
+ Debugger::DebuggerSettingsController::global_settings_table,
+ Debugger::DebuggerSettingsController::instance_settings_table);
}
if (finish)
OpenPOWER on IntegriCloud