llvm-project/lldb/source/Expression
Greg Clayton e1cd1be6d6 Switching back to using std::tr1::shared_ptr. We originally switched away
due to RTTI worries since llvm and clang don't use RTTI, but I was able to 
switch back with no issues as far as I can tell. Once the RTTI issue wasn't
an issue, we were looking for a way to properly track weak pointers to objects
to solve some of the threading issues we have been running into which naturally
led us back to std::tr1::weak_ptr. We also wanted the ability to make a shared 
pointer from just a pointer, which is also easily solved using the 
std::tr1::enable_shared_from_this class. 

The main reason for this move back is so we can start properly having weak
references to objects. Currently a lldb_private::Thread class has a refrence
to its parent lldb_private::Process. This doesn't work well when we now hand
out a SBThread object that contains a shared pointer to a lldb_private::Thread
as this SBThread can be held onto by external clients and if they end up
using one of these objects we can easily crash.

So the next task is to start adopting std::tr1::weak_ptr where ever it makes
sense which we can do with lldb_private::Debugger, lldb_private::Target,
lldb_private::Process, lldb_private::Thread, lldb_private::StackFrame, and
many more objects now that they are no longer using intrusive ref counted
pointer objects (you can't do std::tr1::weak_ptr functionality with intrusive
pointers).

llvm-svn: 149207
2012-01-29 20:56:30 +00:00
..
ASTDumper.cpp Pulled in a new version of LLVM/Clang to solve a variety 2011-11-15 02:11:17 +00:00
ASTResultSynthesizer.cpp The "desired result type" code in the expression 2011-12-21 22:22:58 +00:00
ASTStructExtractor.cpp Pulled in a new revision of LLVM/Clang and added 2011-11-19 02:54:21 +00:00
ClangASTSource.cpp Switching back to using std::tr1::shared_ptr. We originally switched away 2012-01-29 20:56:30 +00:00
ClangExpressionDeclMap.cpp http://llvm.org/bugs/show_bug.cgi?id=11618 2012-01-06 00:35:38 +00:00
ClangExpressionParser.cpp Added a mechanism for the IR interpreter to return 2012-01-24 22:06:48 +00:00
ClangExpressionVariable.cpp http://llvm.org/bugs/show_bug.cgi?id=11618 2012-01-06 00:35:38 +00:00
ClangFunction.cpp Switching back to using std::tr1::shared_ptr. We originally switched away 2012-01-29 20:56:30 +00:00
ClangPersistentVariables.cpp Added support for persistent types to the 2011-08-23 21:20:51 +00:00
ClangUserExpression.cpp Switching back to using std::tr1::shared_ptr. We originally switched away 2012-01-29 20:56:30 +00:00
ClangUtilityFunction.cpp Switching back to using std::tr1::shared_ptr. We originally switched away 2012-01-29 20:56:30 +00:00
DWARFExpression.cpp Fixed a bug where the DWARF location expression 2012-01-06 18:24:47 +00:00
ExpressionSourceCode.cpp Pulled in a new version of LLVM/Clang to solve a variety 2011-11-15 02:11:17 +00:00
IRDynamicChecks.cpp Two fixes for Objetive-C methods that return struct 2011-11-16 00:20:50 +00:00
IRForTarget.cpp Added a mechanism for the IR interpreter to return 2012-01-24 22:06:48 +00:00
IRInterpreter.cpp Switching back to using std::tr1::shared_ptr. We originally switched away 2012-01-29 20:56:30 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
ProcessDataAllocator.cpp While tracking down memory consumption issue a few things were needed: the 2011-08-10 02:10:13 +00:00
RecordingMemoryManager.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00