summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-04-22 23:53:53 +0000
committerJim Ingham <jingham@apple.com>2011-04-22 23:53:53 +0000
commit58b59f9522a0aafd4c2efe0781a9c88f005b7e00 (patch)
tree5e036735ce45e937a4d7f19579f0034ea2b6be00 /lldb/source/API/SBValue.cpp
parent0ff2b2eda3509727fdb93e2b7f45ace85c4b3767 (diff)
downloadbcm5719-llvm-58b59f9522a0aafd4c2efe0781a9c88f005b7e00.tar.gz
bcm5719-llvm-58b59f9522a0aafd4c2efe0781a9c88f005b7e00.zip
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. llvm-svn: 130035
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r--lldb/source/API/SBValue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index 64011789878..6ad6bb99b9d 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -357,7 +357,7 @@ SBValue::GetChildAtIndex (uint32_t idx, bool use_dynamic_value)
{
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 @@ SBValue::GetChildMemberWithName (const char *name, bool use_dynamic_value)
{
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;
}
OpenPOWER on IntegriCloud