diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-09 06:25:08 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-09 06:25:08 +0000 |
commit | 101c7c2060354f6e91efc65f9c4ea9f13a591152 (patch) | |
tree | d8423df9d08dfc78cd1615f317468f5ff70c9e76 /lldb/source/Commands/CommandObjectSettings.cpp | |
parent | 4adbaf184340a71925eea83a2811c4763e281f38 (diff) | |
download | llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.zip llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.tar.gz llvm-101c7c2060354f6e91efc65f9c4ea9f13a591152.tar.bz2 |
Make all debugger-level user settable variables into instance variables.
Make get/set variable at the debugger level always set the particular debugger's instance variables rather than
the default variables.
llvm-svn: 113474
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSettings.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp index 33af62f..b0db637 100644 --- a/lldb/source/Commands/CommandObjectSettings.cpp +++ b/lldb/source/Commands/CommandObjectSettings.cpp @@ -117,7 +117,8 @@ CommandObjectSettingsSet::Execute (CommandInterpreter &interpreter, else { Error err = root_settings->SetVariable (var_name_string.c_str(), var_value, lldb::eVarSetOperationAssign, - m_options.m_override); + m_options.m_override, + interpreter.GetDebugger().GetInstanceName().AsCString()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -284,7 +285,8 @@ CommandObjectSettingsShow::Execute (CommandInterpreter &interpreter, // The user requested to see the value of a particular variable. lldb::SettableVariableType var_type; const char *variable_name = command.GetArgumentAtIndex (0); - StringList value = root_settings->GetVariable (variable_name, var_type); + StringList value = root_settings->GetVariable (variable_name, var_type, + interpreter.GetDebugger().GetInstanceName().AsCString()); if (value.GetSize() == 0) { @@ -456,7 +458,8 @@ CommandObjectSettingsRemove::Execute (CommandInterpreter &interpreter, index_value_string = index_value; Error err = root_settings->SetVariable (var_name_string.c_str(), NULL, lldb::eVarSetOperationRemove, - false, index_value_string.c_str()); + false, interpreter.GetDebugger().GetInstanceName().AsCString(), + index_value_string.c_str()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -565,7 +568,8 @@ CommandObjectSettingsReplace::Execute (CommandInterpreter &interpreter, else { Error err = root_settings->SetVariable (var_name_string.c_str(), var_value, lldb::eVarSetOperationReplace, - false, index_value_string.c_str()); + false, interpreter.GetDebugger().GetInstanceName().AsCString(), + index_value_string.c_str()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -676,7 +680,8 @@ CommandObjectSettingsInsertBefore::Execute (CommandInterpreter &interpreter, else { Error err = root_settings->SetVariable (var_name_string.c_str(), var_value, lldb::eVarSetOperationInsertBefore, - false, index_value_string.c_str()); + false, interpreter.GetDebugger().GetInstanceName().AsCString(), + index_value_string.c_str()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -788,7 +793,8 @@ CommandObjectSettingsInsertAfter::Execute (CommandInterpreter &interpreter, else { Error err = root_settings->SetVariable (var_name_string.c_str(), var_value, lldb::eVarSetOperationInsertAfter, - false, index_value_string.c_str()); + false, interpreter.GetDebugger().GetInstanceName().AsCString(), + index_value_string.c_str()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -888,7 +894,7 @@ CommandObjectSettingsAppend::Execute (CommandInterpreter &interpreter, else { Error err = root_settings->SetVariable (var_name_string.c_str(), var_value, lldb::eVarSetOperationAppend, - false); + false, interpreter.GetDebugger().GetInstanceName().AsCString()); if (err.Fail ()) { result.AppendError (err.AsCString()); @@ -969,7 +975,8 @@ CommandObjectSettingsClear::Execute (CommandInterpreter &interpreter, return false; } - Error err = root_settings->SetVariable (var_name, NULL, lldb::eVarSetOperationClear, false); + Error err = root_settings->SetVariable (var_name, NULL, lldb::eVarSetOperationClear, false, + interpreter.GetDebugger().GetInstanceName().AsCString()); if (err.Fail ()) { |