aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionValueArray.cpp
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-02-13 14:31:06 +0000
committerIlia K <ki.stfu@gmail.com>2015-02-13 14:31:06 +0000
commit8f37ca56d6d06b73e5c9efa96bce734230c3ec1f (patch)
tree72578ebdb8c2c54dd3bfd1118c795b3c00d29dd6 /lldb/source/Interpreter/OptionValueArray.cpp
parent5716bb9faac75b645744cae287a9bf46aeee7700 (diff)
downloadllvm-8f37ca56d6d06b73e5c9efa96bce734230c3ec1f.zip
llvm-8f37ca56d6d06b73e5c9efa96bce734230c3ec1f.tar.gz
llvm-8f37ca56d6d06b73e5c9efa96bce734230c3ec1f.tar.bz2
Add -exec-arguments command
Summary: This patch adds -exec-arguments command for lldb-mi. -exec-arguments command allows to specify arguments for executable file in MI mode. Also it contains tests for that command. Btw, new added files was formatted by clang-format. Reviewers: abidh, zturner, clayborg Reviewed By: clayborg Subscribers: zturner, emaste, clayborg, jingham, lldb-commits Differential Revision: http://reviews.llvm.org/D6965 llvm-svn: 229110
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArray.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueArray.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionValueArray.cpp b/lldb/source/Interpreter/OptionValueArray.cpp
index 86d49c9..1365156 100644
--- a/lldb/source/Interpreter/OptionValueArray.cpp
+++ b/lldb/source/Interpreter/OptionValueArray.cpp
@@ -77,8 +77,10 @@ Error
OptionValueArray::SetValueFromCString (const char *value, VarSetOperationType op)
{
Args args(value);
- NotifyValueChanged();
- return SetArgs (args, op);
+ Error error = SetArgs (args, op);
+ if (error.Success())
+ NotifyValueChanged();
+ return error;
}
@@ -342,6 +344,8 @@ OptionValueArray::DeepCopy () const
{
OptionValueArray *copied_array = new OptionValueArray (m_type_mask, m_raw_value_dump);
lldb::OptionValueSP copied_value_sp(copied_array);
+ *static_cast<OptionValue *>(copied_array) = *this;
+ copied_array->m_callback = m_callback;
const uint32_t size = m_values.size();
for (uint32_t i = 0; i<size; ++i)
{