llvm-project/lldb/source/Breakpoint
Jim Ingham 151c032c86 This patch makes Clang-independent base classes for all the expression types that lldb currently vends.
Before we had:

ClangFunction
ClangUtilityFunction
ClangUserExpression

and code all over in lldb that explicitly made Clang-based expressions. This patch adds an Expression 
base class, and three pure virtual implementations for the Expression kinds:

FunctionCaller
UtilityFunction
UserExpression

You can request one of these expression types from the Target using the Get<ExpressionType>ForLanguage. 
The Target will then consult all the registered TypeSystem plugins, and if the type system that matches 
the language can make an expression of that kind, it will do so and return it.

Because all of the real expression types need to communicate with their ExpressionParser in a uniform way, 
I also added a ExpressionTypeSystemHelper class that expressions generically can vend, and a ClangExpressionHelper 
that encapsulates the operations that the ClangExpressionParser needs to perform on the ClangExpression types. 
Then each of the Clang* expression kinds constructs the appropriate helper to do what it needs.

The patch also fixes a wart in the UtilityFunction that to use it you had to create a parallel FunctionCaller 
to actually call the function made by the UtilityFunction. Now the UtilityFunction can be asked to vend a 
FunctionCaller that will run its function. This cleaned up a lot of boiler plate code using UtilityFunctions.

Note, in this patch all the expression types explicitly depend on the LLVM JIT and IR, and all the common 
JIT running code is in the FunctionCaller etc base classes. At some point we could also abstract that dependency 
but I don't see us adding another back end in the near term, so I'll leave that exercise till it is actually necessary.

llvm-svn: 247720
2015-09-15 21:13:50 +00:00
..
Breakpoint.cpp This is some groundwork for filtering the language Exception 2015-04-22 19:42:18 +00:00
BreakpointID.cpp Add the ability to tag one or more breakpoints with a name. These 2014-12-16 23:40:14 +00:00
BreakpointIDList.cpp Add the ability to tag one or more breakpoints with a name. These 2014-12-16 23:40:14 +00:00
BreakpointList.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
BreakpointLocation.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
BreakpointLocationCollection.cpp Fix BreakpointLocationCollection::ShouldStop to handle breakpoint removal 2015-05-27 09:46:47 +00:00
BreakpointLocationList.cpp Rework how resetting breakpoints in changed modules works. Try to match up old 2014-09-10 21:40:47 +00:00
BreakpointOptions.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
BreakpointResolver.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
BreakpointResolverAddress.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
BreakpointResolverFileLine.cpp Add --move-to-nearest-code / target.move-to-nearest-code options (attempt 2) 2015-05-18 13:41:01 +00:00
BreakpointResolverFileRegex.cpp Add --move-to-nearest-code / target.move-to-nearest-code options (attempt 2) 2015-05-18 13:41:01 +00:00
BreakpointResolverName.cpp Move more functionality from the LanguageRuntimes to the Languages. 2015-09-02 01:59:14 +00:00
BreakpointSite.cpp Add a function to make a mutex-protected copy of a breakpoint site's 2015-07-29 17:51:36 +00:00
BreakpointSiteList.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
CMakeLists.txt [cmake] Remove LLVM_NO_RTTI. 2015-09-03 08:46:55 +00:00
Makefile
Stoppoint.cpp
StoppointCallbackContext.cpp Thread hardening part 3. Now lldb_private::Thread objects have std::weak_ptr 2012-02-21 00:09:25 +00:00
StoppointLocation.cpp Make sure that when a breakpoint is hit but its condition is not met, 2015-01-15 01:41:04 +00:00
Watchpoint.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
WatchpointList.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
WatchpointOptions.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