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
This commit is contained in:
Jim Ingham
2011-04-22 23:53:53 +00:00
parent 0ff2b2eda3
commit 58b59f9522
25 changed files with 525 additions and 207 deletions

View File

@@ -32,6 +32,12 @@
using namespace lldb_private;
lldb::ValueObjectSP
ValueObjectVariable::Create (ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp)
{
return (new ValueObjectVariable (exe_scope, var_sp))->GetSP();
}
ValueObjectVariable::ValueObjectVariable (ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp) :
ValueObject(exe_scope),
m_variable_sp(var_sp)