diff options
author | Jim Ingham <jingham@apple.com> | 2011-04-22 23:53:53 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-04-22 23:53:53 +0000 |
commit | 58b59f9522a0aafd4c2efe0781a9c88f005b7e00 (patch) | |
tree | 5e036735ce45e937a4d7f19579f0034ea2b6be00 /lldb/source/Core/ValueObjectMemory.cpp | |
parent | 0ff2b2eda3509727fdb93e2b7f45ace85c4b3767 (diff) | |
download | bcm5719-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/Core/ValueObjectMemory.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectMemory.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectMemory.cpp b/lldb/source/Core/ValueObjectMemory.cpp index d3998488eba..aa9ff0ae263 100644 --- a/lldb/source/Core/ValueObjectMemory.cpp +++ b/lldb/source/Core/ValueObjectMemory.cpp @@ -30,9 +30,18 @@ #include "lldb/Target/Target.h" #include "lldb/Target/Thread.h" - +using namespace lldb; using namespace lldb_private; +ValueObjectSP +ValueObjectMemory::Create (ExecutionContextScope *exe_scope, + const char *name, + const Address &address, + lldb::TypeSP &type_sp) +{ + return (new ValueObjectMemory (exe_scope, name, address, type_sp))->GetSP(); +} + ValueObjectMemory::ValueObjectMemory (ExecutionContextScope *exe_scope, const char *name, const Address &address, |