summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up RegisterContextPOSIX i386 code.Michael Sartain2013-10-091-6/+6
| | | | | | | | | | | Use 32-bit register enums without gaps on 64-bit hosts. Don't show 64-bit registers when debugging 32-bit targets. Add psuedo gpr registers (ax, ah, al, etc.) Add mmx registers. Fix TestRegisters.py to not read ymm15 register on 32-bit targets. Fill out and move gcc/dwarf/gdb register enums to RegisterContext_x86.h llvm-svn: 192263
* Mark tests failing on FreeBSD after r191996Ed Maste2013-10-072-0/+2
| | | | llvm-svn: 192134
* xfail for gcc tests due to pr17499 (regressions due to r191966).Ashok Thirumurthi2013-10-072-0/+2
| | | | llvm-svn: 192132
* <rdar://problem/12042982>Enrico Granata2013-10-049-35/+33
| | | | | | | | | | | | | | | | | | | This radar extends the notion of one-liner summaries to automagically apply in a few interesting cases More specifically, this checkin changes the printout of ValueObjects to print on one-line (as if type summary add -c had been applied) iff: this ValueObject does not have a summary its children have no synthetic children its children are not a non-empty base class without a summary its children do not have a summary that asks for children to show up the aggregate length of all the names of all the children is <= 50 characters you did not ask to see the types during a printout your pointer depth is 0 This is meant to simplify the way LLDB shows data on screen for small structs and similarly compact data types (e.g. std::pair<int,int> anyone?) Feedback is especially welcome on how the feature feels and corner cases where we should apply this printout and don't (or viceversa, we are applying it when we shouldn't be) llvm-svn: 191996
* Mark watchpoint test as still failing on i386 Linux.Matt Kopec2013-10-011-3/+1
| | | | llvm-svn: 191717
* Fix race condition in TestConvenienceVariables.pyDaniel Malea2013-09-301-0/+1
| | | | | | | - test wasn't checking for a stop reason before issuing the 'script' command - should resolve intermittent failure on the Linux GCC buildbot llvm-svn: 191708
* Disable TestStopHookMultipleThreads.py (on Linux) due to llvm.org/pr15037Daniel Malea2013-09-301-0/+1
| | | | | | - stop hooks sometimes fail to fire on Linux llvm-svn: 191704
* <rdar://problem/14393032>Enrico Granata2013-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DumpValueObject() 2.0 This checkin restores pre-Xcode5 functionality to the "po" (expr -O) command: - expr now has a new --description-verbosity (-v) argument, which takes either compact or full as a value (-v is the same as -vfull) When the full mode is on, "po" will show the extended output with type name, persistent variable name and value, as in (lldb) expr -O -v -- foo (id) $0 = 0x000000010010baf0 { 1 = 2; 2 = 3; } When -v is omitted, or -vcompact is passed, the Xcode5-style output will be shown, as in (lldb) expr -O -- foo { 1 = 2; 2 = 3; } - for a non-ObjectiveC object, LLDB will still try to retrieve a summary and/or value to display (lldb) po 5 5 -v also works in this mode (lldb) expr -O -vfull -- 5 (int) $4 = 5 On top of that, this is a major refactoring of the ValueObject printing code. The functionality is now factored into a ValueObjectPrinter class for easier maintenance in the future DumpValueObject() was turned into an instance method ValueObject::Dump() which simply calls through to the printer code, Dump_Impl has been removed Test case to follow llvm-svn: 191694
* Mark 32/64-bit tests as expected fail after root causing and referencing ↵Matt Kopec2013-09-262-2/+8
| | | | | | | | bugzilla. Fix TestFrames.py error to check against a None pc value. llvm-svn: 191470
* Fix the thread jump test case for 32-bit inferiors. A jump was going back to ↵Matt Kopec2013-09-261-3/+4
| | | | | | a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had been setup for the function to be called. llvm-svn: 191457
* Fix the partial backtrace in a recursive inferior compiled with ↵Ashok Thirumurthi2013-09-261-2/+1
| | | | | | | | | | | | -fomit-frame-pointer. - Removes the block in UnwindLLDB::AddOneMoreFrame that tests for a bad stack setup, since it is neither correct (tests the FP GPR), complete (doesn't consider multi-frame cycles), nor reachable (the construction of RegisterContextLLDB will fail in the case where either of the two (why just two?) previous frames have the same canonical frame address as the frame that we propose adding to the stack). llvm-svn: 191430
* Enable tests affected by llvm.org/pr14637Daniel Malea2013-09-254-4/+0
| | | | | | - to verify that r191392 has the desired effect llvm-svn: 191396
* Add support for TestPluginComands on Linux. Also, rework makefile dsym target.Matt Kopec2013-09-253-16/+26
| | | | llvm-svn: 191383
* Fix an xpass on the buildbots by relaxing a test for PC location in the ↵Ashok Thirumurthi2013-09-241-2/+2
| | | | | | disassembly. llvm-svn: 191321
* Adds an option to resolve a symbol from an address that can be usedAshok Thirumurthi2013-09-241-3/+1
| | | | | | | | | | | | | | | | | to build out the symbol table as addresses are used, and implements the mechanism for ELF to add stripped symbols from eh_frame. Uses this mechanism to allow disassembly for addresses corresponding to stripped symbols for ELF, and provide hooks to implement this for PE COFF. Also removes eSymbolContextTailCall in favor of an option for ResolveSymbolContextForAddress for consistency with the documentation for eSymbolContextEverything. Essentially, this is just an option for interpreting the so_addr. llvm-svn: 191307
* Fix lldb regressions due to r190812 in the case where debug info is present.Ashok Thirumurthi2013-09-201-7/+2
| | | | | | | | | | | | Specifically, allows the unwinder to handle the case where sc.function gets resolved with a pc that is one past the address range of the function (consistent with a tail call). However, there is no matching symbol. Adds eSymbolContextTailCall to provide callers with control over the scope of symbol resolution and to allow ResolveSymbolContextForAddress to handle tail calls since this routine is common to unwind and disassembly. llvm-svn: 191102
* Disable TestInferiorAssert (due to llvm.org/pr17276)Daniel Malea2013-09-191-2/+7
| | | | | | - last remaining failure on the clang buildbot llvm-svn: 191047
* Make threading tests not depend on the currently selected threadDaniel Malea2013-09-193-15/+32
| | | | | | | | | - tests are now anostic to the currently selected thread, as that is a frontend (i.e. driver) decision - this is in preparation to a fix to POSIXThread::BreakNotify that will be committed shortly Reviewed by: Matt Kopec llvm-svn: 191041
* Disabling test broken (on GCC buildbot) due to http://llvm.org/pr14637Daniel Malea2013-09-171-0/+1
| | | | | | | - prompt disappears with older libedit versions - will re-enable once we have a recent libedit on the buildbot in question llvm-svn: 190889
* Rename shared libraries for TestLoadUnload.py due to potential shared ↵Matt Kopec2013-09-173-21/+23
| | | | | | library name clashes. llvm-svn: 190884
* Re-enabling TestStopHookMultipleThreadsDaniel Malea2013-09-171-1/+0
| | | | | | - original bug llvm.org/pr14323 is long closed llvm-svn: 190865
* Add test suite support for TestLoadUnload.py for Linux.Matt Kopec2013-09-163-36/+77
| | | | llvm-svn: 190815
* Skip tests that segfault or are inconsistent on FreeBSDEd Maste2013-09-133-0/+5
| | | | | | | | | | | | | I now see no unexpected failures on FreeBSD on a local run of the test suite. llvm.org/pr17214 llvm.org/pr17225 llvm.org/pr17231 llvm.org/pr17232 llvm.org/pr17233 llvm-svn: 190709
* test: Update FreeBSD failure decoratorsEd Maste2013-09-134-1/+5
| | | | | | | | | | | | | | | llvm.org/pr15261 missing size for static arrays llvm.org/pr15278 expressions generating signals llvm.org/pr15824 thread states aren't properly maintained llvm.org/pr16696 threaded inferior debugging not yet on FreeBSD llvm.org/pr17214 inline stepping fails on FreeBSD llvm.org/pr17225 Clang assertion failure llvm.org/pr17226 frame info lost after failed expression evaluation llvm.org/pr17228 test timeout The first three are existing Linux issues that also affect FreeBSD. llvm-svn: 190698
* test: Add @expectedFailureFreeBSD decoratorEd Maste2013-09-121-0/+2
| | | | | | llvm.org/pr17213 Expression evaluation fails on FreeBSD in some cases llvm-svn: 190622
* Added a 'jump' command, similar to GDBs.Richard Mitton2013-09-124-0/+126
| | | | | | | | | This allows the PC to be directly changed to a different line. It's similar to the example python script in examples/python/jump.py, except implemented as a builtin. Also this version will track the current function correctly even if the target line resolves to multiple addresses. (e.g. debugging a templated function) llvm-svn: 190572
* <rdar://problem/14071463>Enrico Granata2013-09-123-0/+167
| | | | | | | | SVN r189964 provided a sample Python script to inspect unordered(multi){set|map} with synthetic children, contribued by Jared Grubb This checkin converts that sample script to a C++ provider built into LLDB A test case is also provided llvm-svn: 190564
* test: Add @expectedFailureFreeBSD decoratorsEd Maste2013-09-104-0/+9
| | | | | | llvm.org/pr17184 expression interpreter fails for crash/assert tests llvm-svn: 190416
* Disabling tests affected by llvm.org/pr16170 on LinuxDaniel Malea2013-09-092-0/+2
| | | | | | - occasional lldb hangs are causing noisy buildbots and trouble in the (Debian/Ubuntu) package builder llvm-svn: 190355
* test: Handle libc++ shared lib name on FreeBSDEd Maste2013-09-095-5/+5
| | | | | | | (I didn't take a guess at the Linux names, as these tests are currently skipped with the comment "No standard locations for libc++ on Linux.") llvm-svn: 190307
* Enable register log for FreeBSD testsEd Maste2013-09-091-0/+4
| | | | llvm-svn: 190287
* Re-enable some locally passing tests on Linux and see how they behave on the ↵Matt Kopec2013-09-064-4/+0
| | | | | | buildbots. llvm-svn: 190214
* 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
* Restore -- "end of args" marker for shellEd Maste2013-09-051-2/+2
| | | | | | | I accidentally dropped this in r189879 in the change from /bin/bash to /bin/sh. llvm-svn: 190103
* Fix minor bugs in TestExprs and TestAliases to fix buildbot breakageDaniel Malea2013-09-051-2/+2
| | | | | | | - 'run' alias no longer includes the '--' for positional arguments... does not seem like a real bug. - 2.234f is not a great number for the float tests (due to precision/printing issues) so use 0.5f instead llvm-svn: 190100
* Fixing a problem with inferior exit caused by signalAndrew Kaylor2013-09-042-2/+1
| | | | llvm-svn: 189953
* Switch '/bin/bash' to '/bin/sh'Ed Maste2013-09-031-4/+4
| | | | | | | | /bin/sh is more portable, and all systems with /bin/bash are expected to have /bin/sh as well, even if only a link to bash. Review: http://llvm-reviews.chandlerc.com/D1576 llvm-svn: 189879
* 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
* Skip two tests that hang the FreeBSD buildbotEd Maste2013-08-302-0/+2
| | | | | | llvm.org/pr16684 llvm-svn: 189679
* Skipping two tests that hang consistently on Linux while investigating the ↵Ashok Thirumurthi2013-08-302-1/+2
| | | | | | issue in more depth. llvm-svn: 189678
* Expression evaluation works on FreeBSD after switch to MCJITEd Maste2013-08-301-1/+0
| | | | | | http://www.llvm.org/pr16697 llvm-svn: 189668
* Remove annotation for a test that now passes on FreeBSDEd Maste2013-08-301-1/+0
| | | | | | | | | | A FreeBSD implementation of Host::FindProcesses was added in r189295. Note that some tests still fail as the implementation returns a truncated name for processes with long names. http://www.llvm.org/pr16699 llvm-svn: 189667
* Fix 'platform shell' command for Linux host and remote lldb-platform connectionsDaniel Malea2013-08-271-0/+17
| | | | | | | - add default timeout of 10s (unil qPlatform_RunCommand supports timeout packets and CommandObjectPlatform is updated to read a timeout flag/setting) - add a few tests for platform shell llvm-svn: 189405
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-269-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixed DataExtractor to correctly display Intel extended doubles.Richard Mitton2013-08-191-0/+4
| | | | | | | | This means that "register read stmm0 --format f" actually works now. This is a little messy but LLDB assumes 'long double' is portable, when it is not. llvm-svn: 188698
* Re-enable check previously disabled due to llvm.org/pr16603Daniel Malea2013-08-071-4/+3
| | | | llvm-svn: 187890
* Centralizing Intel compiler detection logic in lldbtest.py to avoid ↵Daniel Malea2013-08-061-1/+1
| | | | | | | | duplication in the future. - Addresses review comments from Stefanus! llvm-svn: 187816
* Support one more flavour of Intel compiler in TestThreadStepOutDaniel Malea2013-08-061-1/+1
| | | | | | - Thanks to Matt Kopec for noticing the failure! llvm-svn: 187815
* Test compatibility improvements for ICCDaniel Malea2013-08-063-5/+5
| | | | | | | - update TestThreadStepOut.py to work with Intel compilers - fix typo in TestConcurrentEvents llvm-svn: 187801
* Additional fixes/xfails for icc testsAndrew Kaylor2013-08-052-2/+5
| | | | llvm-svn: 187730
OpenPOWER on IntegriCloud