llvm-project/lldb/source/Interpreter
Sean Callanan 1a8d40935d This is a major refactoring of the expression parser.
The goal is to separate the parser's data from the data
belonging to the parser's clients.  This allows clients
to use the parser to obtain (for example) a JIT compiled
function or some DWARF code, and then discard the parser
state.

Previously, parser state was held in ClangExpression and
used liberally by ClangFunction, which inherited from
ClangExpression.  The main effects of this refactoring 
are:

- reducing ClangExpression to an abstract class that
  declares methods that any client must expose to the
  expression parser,

- moving the code specific to implementing the "expr"
  command from ClangExpression and
  CommandObjectExpression into ClangUserExpression,
  a new class,

- moving the common parser interaction code from
  ClangExpression into ClangExpressionParser, a new
  class, and

- making ClangFunction rely only on
  ClangExpressionParser and not depend on the
  internal implementation of ClangExpression.

Side effects include:

- the compiler interaction code has been factored
  out of ClangFunction and is now in an AST pass
  (ASTStructExtractor),

- the header file for ClangFunction is now fully
  documented,

- several bugs that only popped up when Clang was
  deallocated (which never happened, since the
  lifetime of the compiler was essentially infinite)
  are now fixed, and

- the developer-only "call" command has been
  disabled.

I have tested the expr command and the Objective-C
step-into code, which use ClangUserExpression and
ClangFunction, respectively, and verified that they
work.  Please let me know if you encounter bugs or
poor documentation.

llvm-svn: 112249
2010-08-27 01:01:44 +00:00
..
Args.cpp Remove use of STL collection class use of the "data()" method since it isn't 2010-07-20 22:52:08 +00:00
CommandInterpreter.cpp This is a major refactoring of the expression parser. 2010-08-27 01:01:44 +00:00
CommandObject.cpp Hide the logic for command resolution for commands, aliases & user commands behind a single 2010-07-06 22:46:59 +00:00
CommandObjectRegexCommand.cpp More constructor warning fixes from William Lynch. 2010-07-20 14:37:45 +00:00
CommandObjectScript.cpp We can do better when reporting the status of one-liner script execution. 2010-07-30 22:33:14 +00:00
CommandObjectScript.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandReturnObject.cpp Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
Makefile Patch from Jean-Daniel Dupas: 2010-07-12 23:14:00 +00:00
Options.cpp Change "Current" as in GetCurrentThread, GetCurrentStackFrame, etc, to "Selected" i.e. GetSelectedThread. Selected makes more sense, since these are set by some user action (a selection). I didn't change "CurrentProcess" since this is always controlled by the target, and a given target can only have one process, so it really can't be selected. 2010-08-26 21:32:51 +00:00
ScriptInterpreter.cpp I enabled some extra warnings for hidden local variables and for hidden 2010-07-14 00:18:15 +00:00
ScriptInterpreterNone.cpp We can do better when reporting the status of one-liner script execution. 2010-07-30 22:33:14 +00:00
ScriptInterpreterPython.cpp There is no need to restore (sys.stdin, sys.stdout) of the python script 2010-08-10 21:26:55 +00:00
StateVariable.cpp A few more misc warning fixes. 2010-07-09 23:04:08 +00:00
embedded_interpreter.py Committing patch from Joseph Ranieri to handle 'exit()' the same 2010-06-09 21:56:00 +00:00