diff options
author | Enrico Granata <egranata@apple.com> | 2013-02-07 18:23:56 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-02-07 18:23:56 +0000 |
commit | 85425d77b8ed75fb5996b2df795530ca163d79d5 (patch) | |
tree | d26a2d6c0cf775829e9fc64904038dc64138e924 /lldb/source/API/SBModule.cpp | |
parent | 63f700e4d1876abcce74276dbf9838f9902e7664 (diff) | |
download | bcm5719-llvm-85425d77b8ed75fb5996b2df795530ca163d79d5.tar.gz bcm5719-llvm-85425d77b8ed75fb5996b2df795530ca163d79d5.zip |
<rdar://problem/13107151>
SBValueList was backed by a ValueObjectList. This caused us to lose track of the additional metadata in the ValueImpl that backs SBValue.
This checkin fixes that by backing SBValueList with ValueListImpl (that essentially wraps a vector<SBValue>).
llvm-svn: 174638
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r-- | lldb/source/API/SBModule.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index 681d416c2ae..461950f29e9 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -467,14 +467,13 @@ SBModule::FindGlobalVariables (SBTarget &target, const char *name, uint32_t max_ if (match_count > 0) { - ValueObjectList &value_object_list = sb_value_list.ref(); for (uint32_t i=0; i<match_count; ++i) { lldb::ValueObjectSP valobj_sp; TargetSP target_sp (target.GetSP()); valobj_sp = ValueObjectVariable::Create (target_sp.get(), variable_list.GetVariableAtIndex(i)); if (valobj_sp) - value_object_list.Append(valobj_sp); + sb_value_list.Append(SBValue(valobj_sp)); } } } |