summaryrefslogtreecommitdiffstats
path: root/lldb/test/breakpoint_command/TestBreakpointCommand.py
Commit message (Collapse)AuthorAgeFilesLines
* Move some top level directories to reside under functionalities dir.Johnny Chen2011-06-261-179/+0
| | | | llvm-svn: 133892
* Change the command 'breakpoint command remove' to 'breakpoint command delete',Caroline Tice2011-05-221-5/+5
| | | | | | to be more consistent with other commands. llvm-svn: 131848
* Change "frame var" over to using OptionGroups (and thus the ↵Jim Ingham2011-05-041-2/+2
| | | | | | | | | 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
* - Changed all the places where CommandObjectReturn was exporting a ↵Jim Ingham2011-02-191-3/+3
| | | | | | | | | | | | | | | | StreamString to just exporting a Stream, and then added GetOutputData & GetErrorData to get the accumulated data. - Added a StreamTee that will tee output to two provided lldb::StreamSP's. - Made the CommandObjectReturn use this so you can Tee the results immediately to the debuggers output file, as well as saving up the results to return when the command is done executing. - HandleCommands now uses this so that if you have a set of commands that continue the target you will see the commands come out as they are processed. - The Driver now uses this to output the command results as you go, which makes the interface more reactive seeming. llvm-svn: 126015
* Change "breakpoint list" command to default to brief output rather than full ↵Caroline Tice2011-02-041-3/+7
| | | | | | | | | output. Modify test cases in test suite to either expect brief output or to pass -f for full output as appropriate. llvm-svn: 124905
* Fix test function breakpoint_command_script_parameters()'s expect-pattern so ↵Johnny Chen2011-02-021-1/+1
| | | | | | | | that it passes when using clang as the compiler to build the inferior. llvm-svn: 124707
* Add a test case to verify that the frame and breakpoint locationCaroline Tice2011-01-291-0/+40
| | | | | | are being properly passed down to script breakpoint commands. llvm-svn: 124511
* Modify one assertion message.Johnny Chen2010-12-221-1/+1
| | | | llvm-svn: 122428
* Add text about test class cleanup.Johnny Chen2010-10-221-0/+1
| | | | llvm-svn: 117148
* The test should remove 'output.txt' if it exists before launching the inferiorJohnny Chen2010-10-221-1/+3
| | | | | | process which is supposed to create the file. llvm-svn: 117136
* Add an assert that 'output.txt' exists before opening it.Johnny Chen2010-10-191-0/+4
| | | | llvm-svn: 116775
* 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-2/+2
| | | | | | | | 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-121-10/+21
| | | | | | function to get the line number to break on during setUp(). llvm-svn: 116344
* Wrap the rest of file reading operations inside a with block and convert a ↵Johnny Chen2010-10-081-3/+4
| | | | | | | | assertTrue() usage to self.expect() which is more descriptive. llvm-svn: 116115
* Pass '-f' option to rm command so that it won't report an error if the file toJohnny Chen2010-10-081-1/+1
| | | | | | be removed does not exist for any reason. llvm-svn: 116025
* These prints should go to stderr as well. Plus add a global assert string.Johnny Chen2010-09-301-1/+1
| | | | llvm-svn: 115167
* Added a more complex test case of breakpoint commands, which executes a sequenceJohnny Chen2010-09-211-0/+115
of 'breakpoint command add/list/remove' commands to set breakpoint callbacks, list them, and then remove one. Modified the lldbtest.TestBase.expect() method to add two additional keyword arguments: o matching (default to True), which, if set to False, reverses the semantics of 'expect' to 'expect not' o patterns (default to None), which specifies a list of regexp patterns to match against the output from running the command TestBreakpointCommand.py uses the matching=False and the patterns=[...] expect() API. llvm-svn: 114480
OpenPOWER on IntegriCloud