llvm-project/lldb/source
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
..
API Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Breakpoint Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Commands Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Core Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Expression Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Host Plug Free BSD memory leak. 2011-01-13 01:27:55 +00:00
Interpreter Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
Plugins Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Symbol Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Target Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
Utility Modified the stop reply packet to be able to send the thread name using the 2011-01-08 03:17:57 +00:00
Makefile Patch from Jean-Daniel Dupas: 2010-07-12 23:14:00 +00:00
lldb-log.cpp Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
lldb.cpp Initialize SymbolFileDWARFDebugMap on Apple platforms only. 2011-01-12 04:22:09 +00:00