Fix up how the ValueObjects manage their life cycle so that you can hand out a shared
pointer to a ValueObject or any of its dependent ValueObjects, and the whole cluster will
stay around as long as that shared pointer stays around.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130035 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBValue.cpp b/source/API/SBValue.cpp
index 6401178..6ad6bb9 100644
--- a/source/API/SBValue.cpp
+++ b/source/API/SBValue.cpp
@@ -357,7 +357,7 @@
{
if (child_sp)
{
- lldb::ValueObjectSP dynamic_sp = child_sp->GetDynamicValue(true, child_sp);
+ lldb::ValueObjectSP dynamic_sp = child_sp->GetDynamicValue(true);
if (dynamic_sp)
child_sp = dynamic_sp;
}
@@ -410,7 +410,7 @@
{
if (child_sp)
{
- lldb::ValueObjectSP dynamic_sp = child_sp->GetDynamicValue(true, child_sp);
+ lldb::ValueObjectSP dynamic_sp = child_sp->GetDynamicValue(true);
if (dynamic_sp)
child_sp = dynamic_sp;
}