hanchenye-llvm-project/lldb/source/Expression
Sean Callanan 9fda9d2177 Add PersistentVariableDelegate to handle language-specific dematerialization.
The concept here is that languages may have different ways of communicating
results.  In particular, languages may have different names for their result
variables and in fact may have multiple types of result variables (e.g.,
error results).  Materializer was tied to one specific model of result handling.

Instead, now UserExpressions can register their own handlers for the result
variables they inject.  This allows language-specific code in Materializer to
be moved into the expression parser plug-in, and it simplifies Materializer.
These delegates are subclasses of PersistentVariableDelegate.

PersistentVariableDelegate can provide the name of the result variable, and is
notified when the result variable is populated.  It can also be used to touch
persistent variables if need be, updating language-specific state.  The
UserExpression owns the delegate and can decide on its result based on
consulting all of its (potentially multiple) delegates.

The user expression itself now makes the determination of what the final result
of the expression is, rather than relying on the Materializer, and I've added a
virtual function to UserExpression to allow this.

llvm-svn: 249233
2015-10-03 09:09:01 +00:00
..
CMakeLists.txt Moved more Clang-specific parts of the expression parser into the Clang plugin. 2015-09-25 20:35:58 +00:00
DWARFExpression.cpp Moved more Clang-specific parts of the expression parser into the Clang plugin. 2015-09-25 20:35:58 +00:00
Expression.cpp This patch makes Clang-independent base classes for all the expression types that lldb currently vends. 2015-09-15 21:13:50 +00:00
ExpressionSourceCode.cpp Made GetScratchTypeSystemForLanguage return an error if desired. 2015-10-02 18:40:30 +00:00
ExpressionVariable.cpp Now persistent expression data no longer lives with the Target, but rather with 2015-09-30 19:57:57 +00:00
FunctionCaller.cpp Moved more Clang-specific parts of the expression parser into the Clang plugin. 2015-09-25 20:35:58 +00:00
IRDynamicChecks.cpp This patch makes Clang-independent base classes for all the expression types that lldb currently vends. 2015-09-15 21:13:50 +00:00
IRExecutionUnit.cpp Add support for DW_FORM_GNU_[addr,str]_index 2015-08-25 11:45:58 +00:00
IRInterpreter.cpp Fix off-by-one size check. 2015-09-16 01:20:34 +00:00
IRMemoryMap.cpp Expression evaluation, a new ThreadPlanCallFunctionUsingABI for executing a function call on target via register manipulation 2015-07-14 10:56:58 +00:00
Makefile remove trailing whitespace + remove some useless comments 2014-07-06 17:54:58 +00:00
Materializer.cpp Add PersistentVariableDelegate to handle language-specific dematerialization. 2015-10-03 09:09:01 +00:00
UserExpression.cpp Add PersistentVariableDelegate to handle language-specific dematerialization. 2015-10-03 09:09:01 +00:00
UtilityFunction.cpp This patch makes Clang-independent base classes for all the expression types that lldb currently vends. 2015-09-15 21:13:50 +00:00