summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicated new file contentEd Maste2014-10-243-93/+0
| | | | llvm-svn: 220591
* Fix a problem where an SBType was advertising its static type class even ↵Enrico Granata2014-10-232-0/+37
| | | | | | though a dynamic type was available. Solves rdar://18744420 llvm-svn: 220511
* Added functions to the C++ API, for the benefit of non-8-bit byte architectures.Matthew Gardiner2014-10-225-0/+335
| | | | | | | | | | | | New functions to give client applications to tools to discover target byte sizes for addresses prior to ReadMemory. Also added GetPlatform and ReadMemory to the SBTarget class, since they seemed to be useful utilities to have. Each new API has had a test case added. http://reviews.llvm.org/D5867 llvm-svn: 220372
* Fixed python API event test cases.Greg Clayton2014-10-171-39/+46
| | | | | | | | Issues were: 1 - It isn't good to have more than one listener for the process events, just supply a listener at launch instead of making a one then have the process broadcaster add a new listener 2 - run in async mode llvm-svn: 220113
* Fixed stdio redirection within LLDB to "do the right thing" in all cases.Greg Clayton2014-10-142-30/+226
| | | | | | | | | | The main issue was if you didn't specify all three (stdin/out/err), you would get file actions added to the launch that would always use the pseudo terminal. This is now fixed. Also fixed the test suite test that handles IO to test redirecting things individually and all together and in other combinations to make sure we don't regress. <rdar://problem/18638226> llvm-svn: 219711
* Limit test to DarwinEd Maste2014-10-021-0/+1
| | | | | | Test requres <Foundation/Foundation.h> llvm-svn: 218904
* Extend the member function discovery APIs to also support Objective-C as ↵Enrico Granata2014-09-193-2/+30
| | | | | | | | | well as C++ For the Objective-C case, we do not have a "function type" notion, so we actually end up wrapping the clang ObjCMethodDecl in the Impl object, and ask function-y questions of it In general, you can always ask for return type, number of arguments, and type of each argument using the TypeMemberFunction layer - but in the C++ case, you can also acquire a Type object for the function itself, which instead you can't do in the Objective-C case llvm-svn: 218132
* Change SBType.GetMemberFunctionAtIndex() to return an object describing the ↵Enrico Granata2014-09-151-9/+12
| | | | | | member function in more detail. A type was really quite vague. This now has function name, kind, as well as function type llvm-svn: 217828
* Add logic to LLDB to figure out the types of member functions of C++ ↵Enrico Granata2014-09-123-0/+114
| | | | | | classes. Add plumbing for that all the way up to the SB layer llvm-svn: 217701
* Get test executables compiling on Windows.Zachary Turner2014-08-138-61/+91
| | | | | | | | | | | | | | Many of the test executables use pthreads directly. This isn't portable on Windows, so this patch converts these test to use C++11 threads and mutexes. Since Windows' implementation of std::thread classes throw and catch from header files, this patch also disables exceptions when compiling with clang on Windows. Reviewed by: Todd Fiala, Ed Maste Differential Revision: http://reviews.llvm.org/D4816 llvm-svn: 215562
* Don't hand compute mydir, do it using "TestBase.compute_mydir(__file__)".Greg Clayton2014-08-011-1/+1
| | | | llvm-svn: 214575
* Add decorator for FreeBSD test failure - malloc() breakpoint issueEd Maste2014-08-011-0/+1
| | | | | | llvm.org/pr20476 llvm-svn: 214527
* Fixes a number of issue related to test portability on Windows.Zachary Turner2014-07-182-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 99% of this CL is simply moving calls to "import pexpect" to a more narrow scope - i.e. the function that actually runs a particular test. This way the test suite can run on Windows, which doesn't have pexpect, and the individual tests that use pexpect can be disabled on a platform-specific basis. Additionally, this CL fixes a few other cases of non-portability. Notably, using "ps" to get the command line, and os.uname() to determine the architecture don't work on Windows. Finally, this also adds a stubbed out builder_win32 module. The full test suite runs correctly on Windows after this CL, although there is still some work remaining on the C++ side to fix one-shot script commands from LLDB (e.g. script print "foo"), which currently deadlock. Reviewed by: Todd Fiala Differential Revision: http://reviews.llvm.org/D4573 llvm-svn: 213343
* Marked TestTargetAPI.test_launch_new_process_and_redirect_stdout_with_* as ↵Todd Fiala2014-07-091-0/+2
| | | | | | | | XFAIL on Darwin. See http://llvm.org/bugs/show_bug.cgi?id=20273 llvm-svn: 212659
* If a breakpoint gets deleted, any SBBreakpoints representing thatJim Ingham2014-07-023-0/+84
| | | | | | breakpoint should return false from IsValid. llvm-svn: 212206
* Part 2 of SBUnitSignals check-in.Todd Fiala2014-06-233-0/+74
| | | | | | | | | I missed adding a few new files to the change list. The build is broken from r211526 without this fix. (And Ed Maste caught it before I did, so this is the remainder - the test methods). llvm-svn: 211535
* Add support for inspecting enum members.Todd Fiala2014-06-022-1/+11
| | | | | | | | | Change by Russell Harmon. Xcode project updates (and all errors therein) by Todd Fiala. llvm-svn: 210046
* I removed SetCallback from the Python API's since it wasn't actually useful, ↵Jim Ingham2014-04-031-1/+2
| | | | | | | | and added SetScriptCallbackFunction, and SetScriptCallbackBody. So add these to the default constructor test case. llvm-svn: 205494
* Fix malloc thread step-out test on FreeBSDEd Maste2014-03-071-1/+9
| | | | | | | | | | | | | | | | After hitting the malloc() breakpoint on FreeBSD our top frame is actually an inlined function malloc_init. * frame #0: 0x0000000800dcba19 libc.so.7`malloc [inlined] malloc_init at malloc.c:5397 frame #1: 0x0000000800dcba19 libc.so.7`malloc(size=1024) + 9 at malloc.c:5949 frame #2: 0x00000000004006e5 test_step_out_of_malloc_into_function_b_with_dwarf`b(val=1) + 37 at main2.cpp:29 Add a heuristic to keep stepping out until we come to a non-malloc caller, before checking if it is our desired caller from the test code. llvm.org/pr17944 llvm-svn: 203268
* Enabled TestSetWatchlocation.py on Linux.Todd Fiala2014-02-281-1/+0
| | | | | | | This worked 25 out of 25 times for me on Ubuntu 12.04 LTS x86_64 built with gcc 4.8.2 and the July 2013 libedit. llvm-svn: 202516
* FreeBSD hardware watchpoint implementationEd Maste2014-02-196-6/+0
| | | | | | | | | | | | | | | Implement x86_64 debug register read/write in support of hardware watchpoints. Hoist LinuxThread::TraceNotify code back into POSIXThread::TraceNotify() Patch by John Wolfe. We still need to rework this later to avoid the #ifdef FreeBSD. llvm-reviews.chandlerc.com/D2572 llvm.org/pr16706 llvm-svn: 201706
* <rdar://problem/15960553>Enrico Granata2014-02-183-0/+85
| | | | | | Fix a bug where calling SBFrame::FindValue() would cause a copy of all variables in the block to be inserted in the frame's variable list, regardless of whether those same variables were there or not - which means one could end up with a frame with lots of duplicate copies of the same variables llvm-svn: 201614
* Merging the iohandler branch back into main. Greg Clayton2014-01-276-86/+0
| | | | | | | | | | | | The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263
* Correctly set the working directory when launching processes for both local ↵Greg Clayton2013-12-1326-40/+40
| | | | | | and remote targets. llvm-svn: 197266
* Massive test suite cleanup to stop everyone from manually having to compute ↵Greg Clayton2013-12-1036-36/+36
| | | | | | | | | | "mydir" inside each test case. This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated. Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you. llvm-svn: 196985
* test: Update decorators for FreeBSD failures with threaded inferior supportEd Maste2013-12-091-1/+0
| | | | | | | llvm.org/pr18190 llvm.org/pr18191 llvm-svn: 196792
* test: Add annotation for FreeBSD failures w/ threaded inferiorsEd Maste2013-12-091-0/+1
| | | | | | | llvm.org/pr17944 llvm.org/pr17946 llvm-svn: 196786
* Removing expected failure decorator for a test that's passing.Andrew Kaylor2013-10-301-1/+0
| | | | llvm-svn: 193715
* Mark 32/64-bit tests as expected fail after root causing and referencing ↵Matt Kopec2013-09-262-1/+6
| | | | | | | | bugzilla. Fix TestFrames.py error to check against a None pc value. llvm-svn: 191470
* Changed fuzz tests to not print their values (we only need to test if access ↵Richard Mitton2013-09-2513-18/+18
| | | | | | | | to them does not crash). This fixes the 'No value' string appearing in the dotest results. llvm-svn: 191399
* Update Linux bug tracker link in TestPrintStackTracesDaniel Malea2013-09-171-1/+1
| | | | | | - now fails due to llvm.org/pr15415 (partial stack trace while stopped inside read() call) llvm-svn: 190867
* Re-enable TestRegisters and TestTargetWatchAddress on LinuxDaniel Malea2013-09-051-1/+0
| | | | | | | - TestRegisters passes locally (llvm.org/pr16301 no longer reproduces) -- verifying this on buildbots - TestTargetWatchAddress also passes locally, and referenced llvm.org/pr14323 which is now closed llvm-svn: 190104
* Attach by name tests now pass on FreeBSDEd Maste2013-08-301-1/+0
| | | | | | | | | | A FreeBSD implementation of Host::FindProcesses was added in r189295. Contrary to my earlier report of failing tests it seems all attach by name tests now pass. http://www.llvm.org/pr16699 llvm-svn: 189680
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-263-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This merge brings in the improved 'platform' command that knows how to interface with remote machines; that is, query OS/kernel information, push and pull files, run shell commands, etc... and implementation for the new communication packets that back that interface, at least on Darwin based operating systems via the POSIXPlatform class. Linux support is coming soon. Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS X Mountain Lion. Additional improvements (not in the source SVN branch 'lldb-platform-work'): - cmake build scripts for lldb-platform - cleanup test suite - documentation stub for qPlatform_RunCommand - use log class instead of printf() directly - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely. - add new logging category 'platform' Reviewers: Matt Kopec, Greg Clayton Review: http://llvm-reviews.chandlerc.com/D1493 llvm-svn: 189295
* Set an extra debug flag when testing with ICC so that it generates the ↵Matt Kopec2013-07-311-0/+4
| | | | | | correct debug info for inlined tests. llvm-svn: 187500
* Assorted test suite fixes as a result of GCC 4.8 validation effortsDaniel Malea2013-07-301-0/+7
| | | | | | | | | | | | - disable some TestConcurrentEvents cases (which are affected by llvm.org/pr16714 -- watchpoints in multithreaded programs) - relax number-of-bp-locations check in TestUniqueTypes/TestUnsignedTypes - skip TestDataFormatterStdVector cases with GCC 4.8 (known failure due to llvm.org/pr15301) - workaround for race condition in TestHelloWorld.py - update TestSettings.py to work on distros (like Fedora) that have /bin/cat hardlinked to /usr/bin/cat After these changes, the test suite should run cleanly against GCC 4.8 (with DWARF v4)! llvm-svn: 187451
* tests: Mark expected FreeBSD failures due to pr16699Ed Maste2013-07-251-0/+1
| | | | | | | | FreeBSD's Host class doesn't yet return a list of running processes, so 'platform process list' fails and attach by process name does not work. llvm-svn: 187142
* tests: Mark expected FreeBSD failures due to pr16706Ed Maste2013-07-256-0/+6
| | | | | | Watchpoints are not yet working on FreeBSD llvm-svn: 187134
* tests: Mark expected FreeBSD failures due to pr16696Ed Maste2013-07-241-0/+1
| | | | | | | Live debugging of threaded inferiors is currently unimplemented for FreeBSD. llvm-svn: 187077
* test_iter_registers is expected to fail on FreeBSDEd Maste2013-07-241-0/+1
| | | | | | | Added comment to llvm.org/pr14600 that it fails on FreeBSD in the same way as Linux. llvm-svn: 187070
* <rdar://problem/14194128>Enrico Granata2013-06-183-0/+140
| | | | | | | ClangASTContext was failing to retrieve fields and base class info for ObjC variables This checkin fixes that and adds a test case llvm-svn: 184248
* Disabling another watchpoint test with intermittent failure.Matt Kopec2013-05-301-0/+1
| | | | llvm-svn: 182952
* Disabling watchpoint test with intermittent failure.Andrew Kaylor2013-05-291-0/+1
| | | | llvm-svn: 182887
* Removing expected fail from another test that is now passing.Andrew Kaylor2013-05-291-1/+0
| | | | llvm-svn: 182815
* Removing expected failures for watchpoint tests which are now passing.Andrew Kaylor2013-05-291-1/+0
| | | | llvm-svn: 182813
* Clean up linux test decorators and add links to known bugsDaniel Malea2013-05-157-7/+7
| | | | | | | | | - s/skipOnLinux/skipIfLinux/ to match style of every other decorator - linkify bugizilla/PR numbers in comments No intended change in functionality. llvm-svn: 181913
* Re-enable tests disabled due to llvm.org/pr14541Daniel Malea2013-05-151-1/+0
| | | | | | | - "platform process list" command works on Linux now - "process attach -n" (attach to process by name also works on Linux now) llvm-svn: 181905
* Add watchpoint support for Linux on 64-bit host.Matt Kopec2013-05-074-4/+0
| | | | llvm-svn: 181341
* skip randomly failing test to avoid buildbot noiseDaniel Malea2013-04-261-1/+1
| | | | llvm-svn: 180636
* Avoid hang in attach-by-name test caseDaniel Malea2013-04-011-1/+1
| | | | | | | - Check that process attach succeeded before attempting to WaitForProcessToStop (observed to cause hangs on Linux) - Update comment in TestHelloWorld case -- attaching by name still broken llvm-svn: 178491
OpenPOWER on IntegriCloud