summaryrefslogtreecommitdiffstats
path: root/lldb/test/global_variables
Commit message (Collapse)AuthorAgeFilesLines
* Move global_variables dir to lang/c and foundation dir to lang/objc.Johnny Chen2011-06-255-109/+0
| | | | llvm-svn: 133883
* Add Linux rules to test makefilePeter Collingbourne2011-06-201-1/+1
| | | | llvm-svn: 133456
* Change "frame var" over to using OptionGroups (and thus the ↵Jim Ingham2011-05-041-1/+1
| | | | | | | | | OptionGroupVariableObjectDisplay). Change the boolean "use_dynamic" over to a tri-state, no-dynamic, dynamic-w/o running target, and dynamic with running target. llvm-svn: 130832
* Centralized a lot of the status information for processes,Greg Clayton2011-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | threads, and stack frame down in the lldb_private::Process, lldb_private::Thread, lldb_private::StackFrameList and the lldb_private::StackFrame classes. We had some command line commands that had duplicate versions of the process status output ("thread list" and "process status" for example). Removed the "file" command and placed it where it should have been: "target create". Made an alias for "file" to "target create" so we stay compatible with GDB commands. We can now have multple usable targets in lldb at the same time. This is nice for comparing two runs of a program or debugging more than one binary at the same time. The new command is "target select <target-idx>" and also to see a list of the current targets you can use the new "target list" command. The flow in a debug session can be: (lldb) target create /path/to/exe/a.out (lldb) breakpoint set --name main (lldb) run ... hit breakpoint (lldb) target create /bin/ls (lldb) run /tmp Process 36001 exited with status = 0 (0x00000000) (lldb) target list Current targets: target #0: /tmp/args/a.out ( arch=x86_64-apple-darwin, platform=localhost, pid=35999, state=stopped ) * target #1: /bin/ls ( arch=x86_64-apple-darwin, platform=localhost, pid=36001, state=exited ) (lldb) target select 0 Current targets: * target #0: /tmp/args/a.out ( arch=x86_64-apple-darwin, platform=localhost, pid=35999, state=stopped ) target #1: /bin/ls ( arch=x86_64-apple-darwin, platform=localhost, pid=36001, state=exited ) (lldb) bt * thread #1: tid = 0x2d03, 0x0000000100000b9a a.out`main + 42 at main.c:16, stop reason = breakpoint 1.1 frame #0: 0x0000000100000b9a a.out`main + 42 at main.c:16 frame #1: 0x0000000100000b64 a.out`start + 52 Above we created a target for "a.out" and ran and hit a breakpoint at "main". Then we created a new target for /bin/ls and ran it. Then we listed the targest and selected our original "a.out" program, so we showed two concurent debug sessions going on at the same time. llvm-svn: 129695
* Change "breakpoint list" command to default to brief output rather than full ↵Caroline Tice2011-02-041-1/+1
| | | | | | | | | output. Modify test cases in test suite to either expect brief output or to pass -f for full output as appropriate. llvm-svn: 124905
* Add test sequences for 'frame variable' address-of operator and 'frame ↵Johnny Chen2010-11-151-0/+3
| | | | | | | | variable' fully-qualified name variable. Also add some comments. llvm-svn: 119165
* The StateType representation has been changed. Modify the test cases to ↵Johnny Chen2010-10-181-1/+1
| | | | | | accommodate. llvm-svn: 116705
* Make calling the super class's setUp() method less fragile.Johnny Chen2010-10-141-1/+2
| | | | llvm-svn: 116490
* Apply (query-replace "frame variable" "frame variable -t") and fix a comment ↵Johnny Chen2010-10-131-1/+1
| | | | | | | | about 'expr var', not 'frame variable var'. llvm-svn: 116419
* Avoid using hardcoded line number to break on. Use the line_number() utilityJohnny Chen2010-10-122-4/+11
| | | | | | | | | function to get the line number to break on during setUp(). Also modify main.c to use g_file_static_cstr within main() so clang does not optimize this variable out. llvm-svn: 116355
* Changed 'frame variable' output to match '(const char *)' instead of '(char ↵Johnny Chen2010-09-231-5/+5
| | | | | | const *)'. llvm-svn: 114649
* Updated the expected matching strings.Johnny Chen2010-09-131-5/+4
| | | | llvm-svn: 113755
* Converted TestGlobalVariables.py to Dsym/Dwarf combination.Johnny Chen2010-09-031-1/+12
| | | | llvm-svn: 113030
* (query-replace "variable list" "frame variable")Johnny Chen2010-09-021-2/+2
| | | | llvm-svn: 112824
* Changed the test case class names to be noun-like instead of verb-like.Johnny Chen2010-09-011-1/+1
| | | | llvm-svn: 112732
* Added a test case test_breakpoint_creation_by_filespec_python() which creates aJohnny Chen2010-08-271-1/+1
| | | | | | | | 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
* Makefile refactoring for the test suite. Added a make directory under test,Johnny Chen2010-08-231-139/+5
| | | | | | | | | which hosts the Makefile.rules and modified most of the Makefiles under each test case directories to utilize Mekefile.rules. Added a description of 'make' directory into README-TestSuite file. llvm-svn: 111868
* Added more verbose output when string match fails. Converted ↵Johnny Chen2010-08-201-31/+16
| | | | | | TestGlobalVariables.py. llvm-svn: 111666
* Added more informational assert message strings.Johnny Chen2010-08-191-3/+3
| | | | llvm-svn: 111536
* Factored the "continue" command execution of the inferior process as part of theJohnny Chen2010-08-161-4/+1
| | | | | | | | | cleanup before finish into the test fixture in lldbtest.TestBase.tearDown(). Derivatives of TestBase is responsible for setting self.runStarted to True if an inferior process has been started. llvm-svn: 111188
* Modified the remaining test cases to display more meaningful assert messages.Johnny Chen2010-08-091-11/+15
| | | | | | Added a generic message generator to the lldbtest.py base module. llvm-svn: 110625
* o Added unittest2 which has added the new features in unittest for Python 2.7Johnny Chen2010-08-051-2/+2
| | | | | | | | | | | | | | backported to Python 2.3+. Some of the features desired include better verbose reporting in unittest2.TextTestRunner and decorator support for skipping tests and expected failures. http://pypi.python.org/pypi/unittest2 o Modified the existing .py tests to use unittest2 and decorated TestSTL.test_step_into_stl(), which is known to always fail currently, with @unittest2.expectedFailure. llvm-svn: 110397
* When running a single test case, lldb.SBDebugger.Terminate() is not being calledJohnny Chen2010-08-051-1/+2
| | | | | | | because unittest.main() calls sys.exit() before returning. Fixed by registering an exit handler for this situation. llvm-svn: 110379
* Fixed typos from cut-and-paste errors.Johnny Chen2010-07-271-1/+1
| | | | llvm-svn: 109539
* if -1 => evaluates to TrueJohnny Chen2010-07-061-9/+9
| | | | | | oops! llvm-svn: 107724
* Abstracted the lldb-specific unittest.TestCase.setUp()/tearDown() in a separateJohnny Chen2010-07-031-26/+5
| | | | | | | | | | | module lldbtest.py and refactored the existing test cases to derive from the abstract base class lldbtest.TestBase. MOdified the test driver (dotest.py and dotest.pl) to set up additional PYTHONPATH component for locating the lldbtest module, which sits in the same directory. llvm-svn: 107563
* Also verified the values of global variables.Johnny Chen2010-07-021-3/+7
| | | | llvm-svn: 107525
* Add a test to show global variables and to verify that they do display as havingJohnny Chen2010-07-021-0/+76
| | | | | | global scopes. llvm-svn: 107522
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-084-0/+176
llvm-svn: 105619
OpenPOWER on IntegriCloud