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/Target/Thread.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/Target/Thread.cpp')
-rw-r--r-- | lldb/source/Target/Thread.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp index 21eb2d4b77b..cd4f8247c3d 100644 --- a/lldb/source/Target/Thread.cpp +++ b/lldb/source/Target/Thread.cpp @@ -1062,11 +1062,11 @@ ThreadInstanceSettings::CopyInstanceSettings (const lldb::InstanceSettingsSP &ne m_avoid_regexp_ap.reset (); } -void +bool ThreadInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, const ConstString &var_name, StringList &value, - Error &err) + Error *err) { if (var_name == StepAvoidRegexpVarName()) { @@ -1080,7 +1080,12 @@ ThreadInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, } 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; } const ConstString |