llvm-project/lldb/test
Sean Callanan bccce81340 Added support for persistent types to the
expression parser.  You can use a persistent
type like this:

(lldb) expr struct $foo { int a; int b; };
(lldb) struct $foo i; i.a = 2; i.b = 3; i
($foo) $0 = {
  (int) a = 2
  (int) b = 3
}

typedefs work similarly.

This patch affects the following files:

test/expression_command/persistent_types/*
  A test case for persistent types,
  in particular structs and typedefs.

ClangForward.h
  Added TypeDecl, needed to declare some
  functions in ASTResultSynthesizer.h

ClangPersistentVariables.[h,cpp]
  Added a list of persistent types to the
  persistent variable store.

ASTResultSynthesizer.[h,cpp]
  Made the AST result synthesizer iterate
  across TypeDecls in the expression, and
  record any persistent types found.  Also
  made a minor documentation fix.

ClangUserExpression.[h,cpp]
  Extended the user expression class to
  keep the state needed to report the
  persistent variable store for the target
  to the AST result synthesizers. 

  Also introduced a new error code for
  expressions that executed normally but
  did not return a result.

CommandObjectExpression.cpp
  Improved output for expressions (like 
  declarations of new persistent types) that
  don't return a result.  This is no longer
  treated as an error.

llvm-svn: 138383
2011-08-23 21:20:51 +00:00
..
api/check_public_api_headers Remove an extra 'for' in the comment. 2011-08-04 20:48:50 +00:00
arm_emulation Remove old emulation test data files. 2011-04-22 16:29:23 +00:00
attic Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
benchmarks Check in a customized benchmark which compares the Xcode 4.1 vs. Xcode 4.2's gdb disassembly speed 2011-08-09 00:56:07 +00:00
example Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
expression_command Added support for persistent types to the 2011-08-23 21:20:51 +00:00
functionalities Short option for --summary-string in 'type summary add' is now -s. This might be a breaking change for those who have summaries defined. 2011-08-23 16:13:35 +00:00
help Fix the 'target variable' help syntax to output one or more <variable-name>'s. 2011-08-22 22:22:00 +00:00
lang Add some expected failure decorators with radar numbers. 2011-08-23 01:00:14 +00:00
logging Hopefully fix the last fallout of 'commands' to 'command' change. 2011-04-21 20:55:57 +00:00
macosx Add a simple test case to exercise the SBDebugger.CreateTargetWithFileAndTargetTriple() API. 2011-08-13 00:55:56 +00:00
make Simplify lang/objc/self/Makefile, plus it's wrong. :-) 2011-08-09 20:07:16 +00:00
pexpect-2.4 Add pexpect-2.4 (a pure Python module for controlling and automating other programs) to the test directory. 2011-03-11 20:13:06 +00:00
plugins Add a builder module for Linux (plus some refactoring) 2011-06-20 19:06:20 +00:00
python_api Add a decorator for marking clang only expectedFailure. Use it for the test_step_over_3_times_with_dsym/dwarf() 2011-08-19 00:54:27 +00:00
settings General cleanup on the UserSettingsController stuff. There were 5 different 2011-04-19 22:32:36 +00:00
source-manager Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, stdout_path, and stderr_path 2011-07-11 23:38:23 +00:00
types o lldbtest.py: 2011-06-23 22:11:20 +00:00
unittest2 o Added unittest2 which has added the new features in unittest for Python 2.7 2010-08-05 23:42:46 +00:00
Makefile Add a default rule to test/Makefile which runs the test suite 2011-06-20 19:06:51 +00:00
README-TestSuite Add some descriptions about the default executable name being 'a.out' and can be overwritten 2011-07-28 21:15:39 +00:00
blacklist.py Don't set DYLD_LIBRARY_PATH in the Python environment (which will get passed down to 2011-08-03 17:41:28 +00:00
dotest.py Test driver should also report skipped tests because there were cases when tests were skipped 2011-08-15 23:09:08 +00:00
lldbbench.py Add the real benchmarks comparing lldb against gdb for repeated expression evaluations. 2011-08-02 22:54:37 +00:00
lldbtest.py Minor change for the @expectedFailureClang logic. For the non-clang test failure, re-raise 2011-08-19 01:17:09 +00:00
lldbutil.py Cleaned up the SBType.h file to not include internal headers and reorganized 2011-08-03 22:57:10 +00:00
redo.py Comment change. 2011-08-16 20:57:05 +00:00