llvm-project/lldb/source/Symbol
Sean Callanan 92adcac9ec Implemented a major overhaul of the way variables are handled
by LLDB.  Instead of being materialized into the input structure
passed to the expression, variables are left in place and pointers
to them are materialzied into the structure.  Variables not resident
in memory (notably, registers) get temporary memory regions allocated
for them.

Persistent variables are the most complex part of this, because they
are made in various ways and there are different expectations about
their lifetime.  Persistent variables now have flags indicating their
status and what the expectations for longevity are.  They can be
marked as residing in target memory permanently -- this is the
default for result variables from expressions entered on the command
line and for explicitly declared persistent variables (but more on
that below).  Other result variables have their memory freed.

Some major improvements resulting from this include being able to
properly take the address of variables, better and cleaner support
for functions that return references, and cleaner C++ support in
general.  One problem that remains is the problem of explicitly
declared persistent variables; I have not yet implemented the code
that makes references to them into indirect references, so currently
materialization and dematerialization of these variables is broken.

llvm-svn: 123371
2011-01-13 08:53:35 +00:00
..
Block.cpp Fixed a crasher (an assert was firing in the DWARF parser) when setting 2010-11-14 00:22:48 +00:00
ClangASTContext.cpp Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
ClangASTType.cpp Added the ability to get an set the desired format for SBValue objects. 2011-01-05 18:43:15 +00:00
ClangNamespaceDecl.cpp Modified the lldb_private::Type clang type resolving code to handle three 2010-11-13 03:52:47 +00:00
CompileUnit.cpp Fixed an issue where we were resolving paths when we should have been. 2010-10-20 20:54:39 +00:00
DWARFCallFrameInfo.cpp Modified all logging calls to hand out shared pointers to make sure we 2010-11-06 01:53:30 +00:00
Declaration.cpp Fixed a missing newline when dumping mixed disassembly. 2010-09-15 05:51:24 +00:00
FuncUnwinders.cpp Made FuncUnwinders threadsafe. 2011-01-08 21:19:00 +00:00
Function.cpp Modified the lldb_private::Type clang type resolving code to handle three 2010-11-13 03:52:47 +00:00
LineEntry.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
LineTable.cpp Line tables were trying to be too clever and only use 24 bits for a line 2010-12-19 22:07:39 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
ObjectFile.cpp Fix the infinite recursion crash reported by Antoine Missout: 2010-11-05 21:43:19 +00:00
Symbol.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
SymbolContext.cpp Modified the lldb_private::Type clang type resolving code to handle three 2010-11-13 03:52:47 +00:00
SymbolFile.cpp Modified lldb_private::SymboleFile to be able to override where its TypeList 2010-11-10 04:57:04 +00:00
SymbolVendor.cpp Modified the lldb_private::Type clang type resolving code to handle three 2010-11-13 03:52:47 +00:00
Symtab.cpp Added mutex protection to the Symtab class. 2010-10-08 04:20:14 +00:00
Type.cpp First attempt and getting "const" C++ method function signatures correct. 2010-11-16 02:10:54 +00:00
TypeList.cpp Modified the lldb_private::TypeList to use a std::multimap for quicker lookup 2010-10-29 04:59:35 +00:00
UnwindPlan.cpp Made FuncUnwinders threadsafe. 2011-01-08 21:19:00 +00:00
UnwindTable.cpp Fixed issues with the unwinding code where the collection of FuncUnwinders 2011-01-08 00:05:12 +00:00
Variable.cpp Just like functions can have a basename and a mangled/demangled name, variable 2010-11-14 22:13:40 +00:00
VariableList.cpp Just like functions can have a basename and a mangled/demangled name, variable 2010-11-14 22:13:40 +00:00