summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
* Update decorator for test that still fails with FreeBSD Watchpoint supportEd Maste2014-02-191-1/+1
| | | | | | llvm.org/pr18832 llvm-svn: 201705
* <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
* Eliminate kernel warning when running tests on FreeBSDEd Maste2014-02-181-10/+4
| | | | | | | | | | | | | | | pexpect had a hack to work around some old buggy platforms, and as a result of the hack running the tests on FreeBSD produced a stream of kernel warnings in the system log: Feb 5 17:19:11 feynman kernel: WARNING pid 11323 (python2.7): ioctl sign-extension ioctl ffffffff80087467 The hack has now been removed upstream, so remove it here too. llvm.org/pr18749 llvm-svn: 201603
* <rdar://problem/16006373>Enrico Granata2014-02-151-7/+7
| | | | | | | Revert the spirit of r199857 - a convincing case can be made that overriding a summary's format markers behind its back is not the right thing to do This commit reverts the behavior of the code to the previous model, and changes the test case to validate the opposite of what it was validating before llvm-svn: 201455
* Adjust logging test case after r201372Ed Maste2014-02-141-1/+0
| | | | | | | The final "HandleCommand, command succeeded" for "log disable lldb" doesn't make it to the log file before the command takes effect. llvm-svn: 201422
* Update decorators for tests that still fail with FreeBSD Watchpoint supportEd Maste2014-02-142-2/+2
| | | | | | | | llvm.org/pr18832 Reported by John Wolfe llvm-svn: 201418
* Re-enable TestAbbreviations.py on Linux after test fix.Todd Fiala2014-02-131-1/+0
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=18816. llvm-svn: 201357
* Fixed a test suite failure on Darwin due to logging issues.Greg Clayton2014-02-131-1/+1
| | | | llvm-svn: 201356
* Remove decorator for fixed testEd Maste2014-02-131-1/+0
| | | | | | llvm.org/pr18805 fixed by r201270 llvm-svn: 201284
* Fixed the TestLogging test.Greg Clayton2014-02-121-1/+8
| | | | llvm-svn: 201273
* Fixed the functionalities/abbreviation/TestAbbreviations.py test case.Greg Clayton2014-02-121-2/+1
| | | | llvm-svn: 201270
* Change TestAbbreviations test to expected failure on Linux.Todd Fiala2014-02-121-0/+1
| | | | | | | See http://llvm.org/bugs/show_bug.cgi?id=18816. Likely the same issue as http://llvm.org/bugs/show_bug.cgi?id=18805. llvm-svn: 201244
* Remove decorator for llvm.org/pr17233Ed Maste2014-02-111-1/+0
| | | | | | | This test was skipped as it used to segfault on FreeBSD. It seems the original issue has since been fixed, so have the test run again. llvm-svn: 201169
* Remove FreeBSD decorator for llvm.org/pr17499 (no longer fails)Ed Maste2014-02-112-2/+0
| | | | llvm-svn: 201168
* Remove decorators for llvm.org/pr17920 fixed by r200646Ed Maste2014-02-112-8/+0
| | | | llvm-svn: 201167
* Update decorator for FreeBSD failure pr18066Ed Maste2014-02-111-1/+1
| | | | | | | | The test expects the inferior to have exited, but it is still stopped. llvm.org/pr18066 llvm-svn: 201166
* Add decorator for llvm.org/pr18805 until root cause is identifiedEd Maste2014-02-111-0/+1
| | | | llvm-svn: 201153
* Added a test case for variables in registers, withSean Callanan2014-02-073-0/+120
| | | | | | | | clang -O1. <rdar://problem/15767528> llvm-svn: 201005
* Removed spurious lookup of the $__lldb_exprSean Callanan2014-02-061-2/+0
| | | | | | | | | selector when compiling an expression in an Objective-C context. <rdar://problem/15797390> llvm-svn: 200950
* Remove failure decorators for FreeBSD bugEd Maste2014-02-021-5/+0
| | | | | | | | | | | | | The issue described in llvm.org/pr18065 is actually due to FreeBSD bug theads/186309 [1], which is now fixed in FreeBSD SVN r261354 [2] and will be merged to release branches shortly. Diagnosed and fixed by John Wolfe. [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=186309 [2] http://svnweb.freebsd.org/base?view=revision&revision=261354 llvm-svn: 200648
* Use libc++ on FreeBSD as on DarwinEd Maste2014-02-021-1/+1
| | | | | | | | | This could use some refinement still, but the previous behaviour of adding -stdlib=libstc++ on FreeBSD w/ Clang is the least likely case to work. llvm.org/pr17910 llvm-svn: 200646
* Fix for failure to unwind Linux stack frames with call in final position.Todd Fiala2014-02-011-0/+1
| | | | | | | | | | | | | | | Fixes http://llvm.org/bugs/show_bug.cgi?id=18656. Note this exposes a failure on Linux of TestInferiorAssert.test_inferior_asserting_disassemble, similar to how it fails on FreeBSD. I'll file a bug for this next. We're now getting another frame beyond where we used to prior to this fix, so the fix is exposing failures in previosly not-reachable frames. Much thanks to Jason Molenda, who had much to do with helping figure out where unwinding was breaking. llvm-svn: 200600
* Fixed b18655: cleaned up script interpreter file reference handling.Todd Fiala2014-01-301-2/+5
| | | | | | | | | | | | | | This change addresses shutdown crashes in the python lldb module when the script interpreter was hanging on to saved file references after leaving a session. It also gets rid of extra references to the stdin/stdout/stderr python file objects that are created when entering the session. This change also moves the bundled pyexpect 2.4 library to the front of the python library path so that a python distribution default pyexpect (2.3 in Ubuntu 12.04) is not picked up first. llvm-svn: 200486
* Merging the iohandler branch back into main. Greg Clayton2014-01-2711-107/+9
| | | | | | | | | | | | 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
* <rdar://problem/15776874>Enrico Granata2014-01-273-0/+82
| | | | | | | | ValueObjectPrinter could enter an infinite loop while trying to display an aptly formed ValueObject: a reference, with a child of some pointer type, such that the pointees chain ended up pointing back to some part of itself - a pointer to itself being the simplest such case Fixed here by only setting a pointer depth when needed, and ensuring that we won't overflow and wrap the pointer depth when it's zero. llvm-svn: 200247
* Fixed a test suite exception that was cause by bad python (sys.unlink ↵Greg Clayton2014-01-231-1/+1
| | | | | | instead of os.unlink). llvm-svn: 199952
* If a user specifies a format option to frame variable or expression, that ↵Enrico Granata2014-01-233-0/+99
| | | | | | | | format should prevail over whatever format(s) a summary specifies (see test case for an example) llvm-svn: 199857
* Relax alias test for failing commandEd Maste2014-01-201-2/+1
| | | | | | | | | | | | | | | | | | | | The alias test "exprf x 1234" expands to "expr -f x 1234" and is expected to fail: it ends up trying to evaluate the invalid expression void $__lldb_expr(void *$__lldb_arg) { -f x 1234; } On FreeBSD LLDB ends up finding a static function f() in a math library, and thus the error produced does not include "use of undeclared identifier 'f'". We will report failure to parse the expression in any case, so require only that error message. llvm-svn: 199623
* Remove decorators for now-fixed pr18191Ed Maste2014-01-181-4/+0
| | | | llvm-svn: 199557
* Add decorator for failing FreeBSD testEd Maste2014-01-181-0/+1
| | | | llvm-svn: 199551
* Add decorator for FreeBSD test failure pr18522Ed Maste2014-01-181-0/+1
| | | | llvm-svn: 199550
* Handle LLDB_LIB_DIR on FreeBSD as on LinuxEd Maste2014-01-181-1/+1
| | | | | | | Diagnosed and tested by Mike Ma. http://llvm.org/pr18191 llvm-svn: 199549
* Undo r199448, already implemented in r199426Ed Maste2014-01-171-1/+0
| | | | llvm-svn: 199449
* Link thread-specific breakpoint test against libpthreadEd Maste2014-01-171-0/+1
| | | | llvm-svn: 199448
* Fix bug in Linux remote dynamic loader setup and fix test.Todd Fiala2014-01-162-2/+4
| | | | | | | | | | | | | | | | | | | | | Part 1 changes PlatformLinux::CreateInstance to always create with is_host=false; that method is only used as the plug-in creator method associated with the remote-linux platform plugin, and should therefore always be remote. Part 1 patch by Steve Pucci. Part 2: fix a test break on linux. In test/functionalities/thread/thread_specific_break, when using gcc, either C99 mode would need to be enabled, or the code would need to change. I changed a couple loop variable definitions to conform to pre-C99 to simplify testing the fix. The second issue was the necessity to include -lpthread as a linker option in the Makefile. Any issues with that part are due to me (Todd Fiala). llvm-svn: 199426
* Fix a bug where if we stop but nobody says there was a reason for the stop, ↵Jim Ingham2014-01-153-0/+120
| | | | | | | | | | | | | we would return control to the user anyway. This was put in to handle monitors that would say there was no stop reason when you first attached to them. But it broke the case where you hit a thread specific breakpoint on many threads, but NOT the one specified in the breakpoint. I work around this by only doing the junky override when the StopID is 0 - i.e. on first attach. This commit also adds a test for thread specific breakpoints. llvm-svn: 199290
* Change the name of the test class for this test (was copy/paste value...)Jim Ingham2014-01-141-1/+1
| | | | llvm-svn: 199251
* Remove a compilation warning in the test case main.c file.Jim Ingham2014-01-141-1/+1
| | | | llvm-svn: 199243
* This is a macosx specific test case for stepping & setting breakpoints on ↵Jim Ingham2014-01-136-0/+190
| | | | | | | | | | indirect and re-exported symbols. I don't know if Linux has the latter, if it does, we could probably make this a generic test. Somebody who knows how to make these gadgets on Linux can maybe take a look... llvm-svn: 199134
* Make sure to cleanup the "dwarf-lookups.txt" log file.Greg Clayton2014-01-111-1/+7
| | | | llvm-svn: 198984
* We are doing spurious name lookups when running expressions in objective C ↵Greg Clayton2014-01-111-0/+42
| | | | | | | | | | methods. <rdar://problem/15797390> This new test case will detect this and make sure we don't regress on global name lookups that search all DWARF for everything when we don't need to. llvm-svn: 198982
* Fixed the assertion test case.Greg Clayton2014-01-101-2/+6
| | | | llvm-svn: 198962
* Fixed the connect remote test.Greg Clayton2014-01-102-7/+8
| | | | llvm-svn: 198961
* Alignment fixEnrico Granata2014-01-081-1/+1
| | | | llvm-svn: 198731
* Add a new way to bind a format to a type: by enum typeEnrico Granata2013-12-283-0/+98
| | | | | | | | | | | The "type format add" command gets a new flag --type (-t). If you pass -t <sometype>, upon fetching the value for an object of your type, LLDB will display it as-if it was of enumeration type <sometype> This is useful in cases of non-contiguous enums where there are empty gaps of unspecified values, and as such one cannot type their variables as the enum type, but users would still like to see them as-if they were of the enum type (e.g. DWARF field types with their user-reserved ranges) The SB API has also been improved to handle both types of formats, and a test case is added llvm-svn: 198105
* Add decorator for GDB connect test failing on FreeBSDEd Maste2013-12-231-0/+1
| | | | | | llvm.org/pr18313 llvm-svn: 197910
* Correctly set the working directory when launching processes for both local ↵Greg Clayton2013-12-1381-99/+108
| | | | | | and remote targets. llvm-svn: 197266
* Fixed the size of the malloc buffer to match the size of the string that is ↵Greg Clayton2013-12-131-2/+3
| | | | | | memcpy'ed so we don't crash in a fiery ball of death when running the test suite on darwin. llvm-svn: 197200
* test: Skip failure on FreeBSD from test infrastructure issueEd Maste2013-12-121-0/+1
| | | | | | | | | | test_convenience_registers_16bit_with_process_attach fails due to pr18200. The test has a @expectedFailureFreeBSD decorator, but it appears this does not catch a RuntimError exception raised in the test infrastructure, so the test still reports failure. For now just skip it. llvm-svn: 197174
* Actually initialize the magic pointer to NULL safelyEnrico Granata2013-12-121-1/+1
| | | | llvm-svn: 197107
OpenPOWER on IntegriCloud