Johnny Chen
aadcef54de
Make calling the super class's setUp() method less fragile.
...
llvm-svn: 116490
2010-10-14 17:31:24 +00:00
Johnny Chen
456c9c343e
Apply (query-replace "frame variable" "frame variable -t") and fix a comment about 'expr var',
...
not 'frame variable var'.
llvm-svn: 116419
2010-10-13 19:22:50 +00:00
Johnny Chen
cd9b7779f3
Avoid using hardcoded line number to break on. Use the line_number() utility
...
function to get the line number to break on during setUp().
llvm-svn: 116275
2010-10-12 00:09:25 +00:00
Johnny Chen
c5b06ebe82
Clean up the StateType and StopReason enums now that they reside in the lldb module.
...
llvm-svn: 115922
2010-10-07 16:51:56 +00:00
Johnny Chen
264d65924b
Added comments about the usage of int(string, 0) and long(string, 0) which pass
...
a base of 0 so that the radix of the string is determined based on the contents
of string.
llvm-svn: 114764
2010-09-24 21:52:37 +00:00
Johnny Chen
61464fa6e7
Made 'frame variable' printing of unsigned types more readable, like gdb.
...
llvm-svn: 114739
2010-09-24 17:33:29 +00:00
Johnny Chen
eb1b8dabc0
Removed the two expectedFailure decorators from the test cases. They have been fixed.
...
llvm-svn: 113750
2010-09-13 16:14:55 +00:00
Johnny Chen
7d1d7537cf
Moved the process cleanup of Script-Bridge-based APIs into TestBase.tearDown()
...
method where they belong. Also fixed a logic error in maintaining the command
interface flag (runStarted) indicating whether the lldb "run"/"process launch"
command has been issued. It was erroneously cleared.
Modified the test cases to take advantage of the refactoring.
llvm-svn: 112863
2010-09-02 21:23:12 +00:00
Johnny Chen
979e796692
(query-replace "variable list" "frame variable")
...
llvm-svn: 112824
2010-09-02 15:59:20 +00:00
Johnny Chen
cbb4be0c93
Changed the test case class names to be noun-like instead of verb-like.
...
llvm-svn: 112732
2010-09-01 19:59:58 +00:00
Johnny Chen
63dfb27647
Avoid killing the inferior process twice by passing a setCookie=False keyword
...
argument when issuing a "run" lldb command within the test case meant to
exercise the Python APIs, but is using the command interface due to certain
reason (such as target.LaunchProcess() does not reliably bring up the inferior).
llvm-svn: 112682
2010-09-01 00:15:19 +00:00
Johnny Chen
65a6524d00
Converted TestBitfields.py to Dsym/Dwarf combination.
...
llvm-svn: 112646
2010-08-31 21:49:24 +00:00
Johnny Chen
5ee881948a
Added a test case test_breakpoint_creation_by_filespec_python() which creates a
...
breakpoint by FileSpec and line number and exercises some FileSpec APIs.
Also, RUN_STOPPED is a bad assert name, RUN_SUCCEEDED is better.
llvm-svn: 112327
2010-08-27 23:47:36 +00:00
Johnny Chen
82d404c886
Added TestHelloWorld.py which exercises the Python APIs for target, breakpoint,
...
and process. Added comment within the file about issues of using LaunchProcess
of SBTarget to launch a process (rdar://problem/8364687).
llvm-svn: 112276
2010-08-27 18:08:58 +00:00
Johnny Chen
827edffafd
Added a test case to bitfields which uses the Python APIs from lldb.py.
...
Added a utility method to TestBase class to debug print an SBValue object.
llvm-svn: 112247
2010-08-27 00:15:48 +00:00
Johnny Chen
9d2bd8301d
More descriptive method doc string.
...
llvm-svn: 111960
2010-08-24 20:48:28 +00:00
Johnny Chen
f2b1419acc
Need a better method name.
...
llvm-svn: 111939
2010-08-24 18:46:00 +00:00
Johnny Chen
ea920fe8b4
Added test case TestBitfields.py for rdar://problem/8348251, where
...
"variable list bits" display bits variable correctly, but not "variable list".
llvm-svn: 111937
2010-08-24 18:21:23 +00:00