diff options
| author | Caroline Tice <ctice@apple.com> | 2010-09-20 21:37:42 +0000 |
|---|---|---|
| committer | Caroline Tice <ctice@apple.com> | 2010-09-20 21:37:42 +0000 |
| commit | 12cecd741d8a8069b81fbc9021610b92d1fceb7b (patch) | |
| tree | 405cc6ed8a9bfe7f5a110cd6ace9df14280a188e /lldb/source/Core/Debugger.cpp | |
| parent | db5c09a8cde4cd654335d96f6ce992cae7ee846e (diff) | |
| download | bcm5719-llvm-12cecd741d8a8069b81fbc9021610b92d1fceb7b.tar.gz bcm5719-llvm-12cecd741d8a8069b81fbc9021610b92d1fceb7b.zip | |
Make GetInstanceSettingsValue methods take an Error * rather than an Error &,
and have them return a bool to indicate success or not.
llvm-svn: 114361
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
| -rw-r--r-- | lldb/source/Core/Debugger.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 6bce57ae103..5ad5227be7a 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1375,11 +1375,11 @@ DebuggerInstanceSettings::UpdateInstanceSettingsVariable (const ConstString &var } } -void +bool DebuggerInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, const ConstString &var_name, StringList &value, - Error &err) + Error *err) { if (var_name == PromptVarName()) { @@ -1404,7 +1404,12 @@ DebuggerInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, value.AppendString ("false"); } else - err.SetErrorStringWithFormat ("unrecognized variable name '%s'", var_name.AsCString()); + { + if (err) + err->SetErrorStringWithFormat ("unrecognized variable name '%s'", var_name.AsCString()); + return false; + } + return true; } void |

