llvm-project/lldb/test
Johnny Chen 30ee4ef308 Added a lldbutil.py module, which contains utility functions which can be used
from scripting applications.  An example usage from TestConditionalBreak.py is:

            import lldbutil
            lldbutil.PrintStackTrace(thread)

./dotest.py -v conditional_break
----------------------------------------------------------------------
Collected 2 tests

test_with_dsym (TestConditionalBreak.ConditionalBreakTestCase)
Exercise some thread and frame APIs to break if c() is called by a(). ... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`b at main.c:34
  frame #2: a.out`a at main.c:25
  frame #3: a.out`main at main.c:44
  frame #4: a.out`start
Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`b at main.c:34
  frame #2: a.out`main at main.c:47
  frame #3: a.out`start
Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`a at main.c:27
  frame #2: a.out`main at main.c:50
  frame #3: a.out`start
ok
test_with_dwarf (TestConditionalBreak.ConditionalBreakTestCase)
Exercise some thread and frame APIs to break if c() is called by a(). ... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`b at main.c:34
  frame #2: a.out`a at main.c:25
  frame #3: a.out`main at main.c:44
  frame #4: a.out`start
Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`b at main.c:34
  frame #2: a.out`main at main.c:47
  frame #3: a.out`start
Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread:
  frame #0: a.out`c at main.c:39
  frame #1: a.out`a at main.c:27
  frame #2: a.out`main at main.c:50
  frame #3: a.out`start
ok

----------------------------------------------------------------------
Ran 2 tests in 7.803s

OK

llvm-svn: 113432
2010-09-08 22:54:46 +00:00
..
array_types Moved the process cleanup of Script-Bridge-based APIs into TestBase.tearDown() 2010-09-02 21:23:12 +00:00
bitfields Moved the process cleanup of Script-Bridge-based APIs into TestBase.tearDown() 2010-09-02 21:23:12 +00:00
class_types (query-replace "variable list" "frame variable") 2010-09-02 15:59:20 +00:00
command_source Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
conditional_break Added a lldbutil.py module, which contains utility functions which can be used 2010-09-08 22:54:46 +00:00
dead-strip Added comments regarding the two mechanisms of process cleanup to lldbtest.py. 2010-09-02 22:25:47 +00:00
enum_types Converted TestEnumTypes.py to Dsym/Dwarf combination. 2010-09-03 23:10:24 +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
foundation Added support for objective C built-in types: id, Class, and SEL. This 2010-08-03 00:35:52 +00:00
function_types Converted TestFunctionTypes.py to Dsym/Dwarf combination. 2010-09-03 23:14:26 +00:00
global_variables Converted TestGlobalVariables.py to Dsym/Dwarf combination. 2010-09-03 23:16:49 +00:00
hello_world Moved the process cleanup of Script-Bridge-based APIs into TestBase.tearDown() 2010-09-02 21:23:12 +00:00
help LLDB command "set term-width 0" needs to be changed to "settings set term-width 0" 2010-09-07 16:19:35 +00:00
inlines Converted to Makefile.rules. 2010-08-24 20:54:26 +00:00
load_unload Added a default build phase at the beginning of test_load_unload() test case. 2010-09-03 23:52:15 +00:00
macosx/universal Marked test_process_launch_for_universal() test case as requiring 'darwin' and 'i386' 2010-09-03 23:49:16 +00:00
make Generates the .d prerequisite file for dylib as well. 2010-08-24 16:35:00 +00:00
namespace Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
objc Added an objective C test that creates some NSString, NSArray and NSDictionary 2010-09-07 23:55:31 +00:00
order Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
persistent_variables Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
plugins Marked test_process_launch_for_universal() test case as requiring 'darwin' and 'i386' 2010-09-03 23:49:16 +00:00
print-obj Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
set_values Converted TestSetValues.py to Dsym/Dwarf combination. 2010-09-07 18:19:13 +00:00
settings The output for term-width setting has single quotes around the (int) value. 2010-09-07 18:55:50 +00:00
signed_types Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
stl Converted TestSTL.py to Dsym/Dwarf combination. 2010-09-07 18:27:35 +00:00
struct_types Converted TestUnsignedTypespy and TestStructTypes.py to Dsym/Dwarf combination. 2010-09-07 18:32:57 +00:00
threads Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +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
unsigned_types Converted TestUnsignedTypespy and TestStructTypes.py to Dsym/Dwarf combination. 2010-09-07 18:32:57 +00:00
Makefile Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
README-TestSuite Updated to reflect the "plugins" directory. 2010-08-31 17:51:08 +00:00
dotest.pl Updated to add plugins directory to PYTHONPATH. 2010-09-01 00:55:36 +00:00
dotest.py Added '-d' option to the test driver to spit out the process id and do a delay 2010-09-08 20:56:16 +00:00
lldbtest.py The output for term-width setting has single quotes around the (int) value. 2010-09-07 18:55:50 +00:00
lldbutil.py Added a lldbutil.py module, which contains utility functions which can be used 2010-09-08 22:54:46 +00:00
tester.py Use lldb.SBDebugger.Create() factory method to create an instance first. 2010-06-25 23:22:48 +00:00