summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* XFAIL test_thread_state_after_continue on Windows.Zachary Turner2015-09-021-1/+3
| | | | | | https://llvm.org/pr24660 llvm-svn: 246668
* Enable a couple of tests in TestExitDuringStep on linuxPavel Labath2015-09-021-2/+0
| | | | | | tests have been reliably passing at least the last 100 runs of the build bot. llvm-svn: 246647
* XFAIL new tests in TestCompletion on windows due to missing pexpectPavel Labath2015-09-021-0/+2
| | | | llvm-svn: 246644
* Fix tab completion for command arguments containing spacesTamas Berghammer2015-09-023-0/+36
| | | | | | | | | | | If a command argument contains a space then it have to be escaped with backslash signs so the argument parsing logic can parse it properly. This CL fixes the tab completion code for the arguments to create complitions with correctly escaped strings. Differential revision: http://reviews.llvm.org/D12531 llvm-svn: 246639
* Address flakyness in TestAttachResumePavel Labath2015-09-022-45/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The test (among other things) attempts to verify that detaching works while the inferior is running. However, this was racy since the inferior could end up stopping again before we got a chance to detach from it (the test could be made to fail reliably by inserting a sleep just after the last "continue" command). The reason for the stop was that we had a breakpoint set in a place that can be hit by multiple threads, and we stop because another thread hit a breakpoint. I fix this by moving the breakpoint to a place that is reachable from only one thread. I also make sure that the same thread cannot hit the breakpoint if we are exceptionaly slow by flipping a flag which makes the breakpoint unreachable (I cannot just disable or delete the breakpoint as the test makes it a point to try detaching while breakpoints are still set). Another source or racyness was that the test verified that the process resumes and stops after a "continue". However, if these two events happened too fast, the initial start event would be lost, and the test would end up confused. I have implemented this in a safer manner and made a utility function out of it, as I know of a couple of other tests which need the same functionality. Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12527 llvm-svn: 246623
* Remove expectedFailureFreeBSD for passing pexpect testsEd Maste2015-08-314-4/+0
| | | | | | | | | | These tests work when run locally. They had been occasionally failing on the FreeBSD buildbot due to pexpect issues. That buildbot is currently down, and I expect the replacement will not have this issue. llvm.org/pr22784 llvm-svn: 246490
* Rename all functionalities/data-formatter test case with radar bug numbers ↵Enrico Granata2015-08-2543-128/+11
| | | | | | in them to more meaningful names llvm-svn: 245993
* Fix a bunch of portability issues in test executables.Zachary Turner2015-08-2511-31/+40
| | | | llvm-svn: 245983
* Make TestCreateDuringInstructionStep linux-specificPavel Labath2015-08-243-132/+0
| | | | | | | | | | | | | | | | | | Summary: There were a number of issues about the way I have designed this test originally: - it relied on single-stepping through large parts of code, which was slow and unreliable - the threading libraries interfered with the exact thing we wanted to test For this reason, I have rewritted the test using low-level linux api, which allows the test to be much more focused. The functionality for other platforms will need to be tested separately. Reviewers: tberghammer Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D12280 llvm-svn: 245838
* XFAIL pthreads test on Windows.Zachary Turner2015-08-211-0/+1
| | | | | | This test needs to be ported to c++ threads. llvm-svn: 245751
* Fix TestPaths on Windows.Zachary Turner2015-08-211-2/+2
| | | | llvm-svn: 245750
* Skip TestCreateAfterAttach on Windows.Zachary Turner2015-08-211-1/+1
| | | | | | | As with every other platform, this test occasionally hangs on Windows. llvm-svn: 245748
* XFAIL Tests that require C++ exceptions on Windows.Zachary Turner2015-08-211-0/+1
| | | | | | | | | clang-cl does not yet support C++ exceptions, so these tests will not even compile. Re-enabling these tests is tracked by llvm.org/pr24538 llvm-svn: 245747
* Add repro test case for bug #24530Pavel Labath2015-08-211-3/+84
| | | | llvm-svn: 245687
* Change TestBSDArchives to expectedFailureWindows.Zachary Turner2015-08-201-1/+1
| | | | llvm-svn: 245631
* XFAIL breakpoint tests on WindowsZachary Turner2015-08-202-0/+2
| | | | | | llvm.org/pr24528 tracks fixing this test. llvm-svn: 245629
* XFAIL TestBSDArchives.py on WindowsZachary Turner2015-08-201-0/+1
| | | | | | | llvm.org/pr24527 tracks this bug. Makefile.rules does not know how to build static libraries on Windows. llvm-svn: 245628
* Skip TestCreateDuringInstructionStep on android aarch64Pavel Labath2015-08-201-1/+4
| | | | | | we are unable to step through _M_start_thread due to atomic instruction sequences. llvm-svn: 245552
* [NativeProcessLinux] Fix a bug in instruction-stepping over thread creationPavel Labath2015-08-203-0/+129
| | | | | | | | | | | | | | | | | | | | | | | Summary: There was a bug in NativeProcessLinux, where doing an instruction-level single-step over the thread-creation syscall resulted in loss of control over the inferior. This happened because after the inferior entered the thread-creation maintenance stop, we unconditionally performed a PTRACE_CONT, even though the original intention was to do a PTRACE_SINGLESTEP. This is fixed by storing the original state of the thread before the stop (stepping or running) and then performing the appropriate action when resuming. I also get rid of the callback in the ThreadContext structure, which stored the lambda used to resume the thread, but which was not used consistently. A test verifying the correctness of the new behavior is included. Reviewers: ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12104 llvm-svn: 245545
* Add TestCrashDuringStepPavel Labath2015-08-193-0/+86
| | | | | | this tests that a crash that happens during instruction step is reported correctly. llvm-svn: 245440
* Revert part of "Convert all use of pthreads in tests to c++11 threads."Chaoren Lin2015-08-184-82/+82
| | | | | | | | | TestExprDoesntBlock started failing because deadlocks behave differently with pthread_mutex and std::mutex. This reverts part of commit r245234. llvm-svn: 245262
* Convert all use of pthreads in tests to c++11 threads.Zachary Turner2015-08-1714-192/+172
| | | | | | | | | | This eliminates portability issues among platforms that don't have a pthreads implementation. Differential Revision: http://reviews.llvm.org/D12043 Reviewed By: Greg Clayton llvm-svn: 245234
* XFAIL some data formatter tests on Windows.Zachary Turner2015-08-145-0/+5
| | | | | | Fixing these bugs is tracked by http://llvm.org/pr24462. llvm-svn: 245126
* Disable libstdc++ and libcxx data formatter tests on Windows.Zachary Turner2015-08-148-4/+9
| | | | | | | | | | Neither of these libraries has been ported to Windows. Eventually if they are ever ported we can re-enable these tests. But more immediately what we need to do is add new data formatters for MSVC's STL implementation. This is tracked in http://llvm.org/pr24460. llvm-svn: 245125
* Remove Unicode byte-order mark from python files.Zachary Turner2015-08-135-5/+5
| | | | | | | | | This was caused by a bug in the PTVS source file editor, which has since been fixed and awaiting a new release. For now people using this editor need to remember to manually remove this before committing a file. llvm-svn: 244963
* XFAIL Watchpoint tests on Windows.Zachary Turner2015-08-138-8/+22
| | | | | | https://llvm.org/pr24446 tracks getting these tests re-enabled. llvm-svn: 244950
* XFAIL TestInferiorAssert for Android API <= 16.Chaoren Lin2015-08-031-0/+1
| | | | llvm-svn: 243922
* Make DWARF at_comp_dir symbolic links configurable via ↵Oleksiy Vyalov2015-07-293-0/+88
| | | | | | | | plugin.symbol-file.dwarf.comp-dir-symlink-paths setting. http://reviews.llvm.org/D11586 llvm-svn: 243580
* Fix a bug where the std::list synthetic child provider would not clean its ↵Enrico Granata2015-07-282-2/+26
| | | | | | | | cache correctly on update, causing stale children to be returned in some circumstances Fixes rdar://20560680 llvm-svn: 243472
* Add option eTypeOptionHideEmptyAggregates.Siva Chandra2015-07-242-0/+9
| | | | | | | | | | | | | | | | | | Summary: For certain data structures, when the synthetic child provider returns zero children, a summary like "Empty instance of <typename>" could be more appropriate than something like "size=0 {}". This new option helps hide the trailing "{}". This is also exposed with a -h option for the command "type summary add". Reviewers: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11473 llvm-svn: 243166
* Improve C++ function name handling and step-in avoid regerxp handlingTamas Berghammer2015-07-243-3/+66
| | | | | | | | | | | | | | | | | | | If the function is a template then the return type is part of the function name. This CL fixes the parsing of these function names in the case when the return type contains ':'. The name of free functions in C++ don't have context part. Fix the logic geting the function name without arguments out from a full function name to handle this case. Change the handling of step-in-avoid-regexp to match the value against the function name without it's arguments and return value. This is required because the default regex ("^std::") would match any template function returning an std object. Fifferential revision: http://reviews.llvm.org/D11461 llvm-svn: 243099
* Remove XFAIL from ReturnValueTestCase after rL242972Tamas Berghammer2015-07-231-1/+0
| | | | llvm-svn: 243000
* Fix comment in test.Dawn Perchik2015-07-231-1/+1
| | | | llvm-svn: 242979
* XFAIL TestReturnValue on Linux-x86_64 with clangTamas Berghammer2015-07-221-0/+1
| | | | | | The coverage of the test got increased and it fails because of it. llvm-svn: 242910
* Improve SysV ABI for ARM to handle return values with vector return typeTamas Berghammer2015-07-222-15/+51
| | | | | | | | | | | This is required to print out the rerun value of funcions returning types with the following attributes: __attribute__((__vector_size__(8))); __attribute__((ext_vector_type(2))); Differential revision: http://reviews.llvm.org/D11416 llvm-svn: 242903
* [asan] Display ASan history threads in reverse chronological orderKuba Brecka2015-07-221-3/+3
| | | | | | | | For use-after-free bugs caught by ASan, we show an allocation and a deallocation stack trace. Let's display them in a "most recent event first" order, this patch does that. Differential Revision: http://reviews.llvm.org/D11295 llvm-svn: 242902
* XFAIL watchpoint tests on Android arm/aarch64Tamas Berghammer2015-07-2210-1/+17
| | | | | | Differential revision: http://reviews.llvm.org/D11409 llvm-svn: 242887
* Xfail test_dyld_library_path for Android.Chaoren Lin2015-07-221-0/+1
| | | | | | | | Originally, the source for the hidden lib_d and the regular lib_d were the same file, so we always got the "correct" source for each. Splitting them up in D11367 exposed a bug of showing the incorrect source file for the hidden lib_d. llvm-svn: 242862
* Fix typos.Bruce Mitchener2015-07-222-2/+2
| | | | | | | | | | | | Summary: Fix a bunch of typos. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11386 llvm-svn: 242856
* Add support for specifying a language to use when parsing breakpoints.Dawn Perchik2015-07-214-9/+49
| | | | | | | | | | | | | | | | | | | | Target and breakpoints options were added: breakpoint set --language lang --name func settings set target.language pascal These specify the Language to use when interpreting the breakpoint's expression (note: currently only implemented for breakpoints on identifiers). If the breakpoint language is not set, the target.language setting is used. This support is required by Pascal, for example, to set breakpoint at 'ns.foo' for function 'foo' in namespace 'ns'. Tests on the language were also added to Module::PrepareForFunctionNameLookup for efficiency. Reviewed by: clayborg Subscribers: jingham, lldb-commits Differential Revision: http://reviews.llvm.org/D11119 llvm-svn: 242844
* Update TestLoadUnload to use base Makefile.Chaoren Lin2015-07-219-81/+89
| | | | | | | | | | | | | | | | Summary: The current Makefile scheme only allows one dylib to be specified in each make invocation, so TestLoadUnload had a custom Makefile that's unrelated to the base Makefile.rules. This change uses recursive make invocations to bypass the single dylib restriction. See D11202 for more context. Reviewers: clayborg Subscribers: chaoren, lldb-commits Differential Revision: http://reviews.llvm.org/D11367 llvm-svn: 242813
* Teach the NSString data formatter to handle embedded NULs in short ASCII stringsEnrico Granata2015-07-172-0/+26
| | | | llvm-svn: 242559
* Improve the NSString data formatter so that explicitly-lengthed Unicode ↵Enrico Granata2015-07-172-0/+11
| | | | | | strings print embedded NULs correctly llvm-svn: 242555
* Split the portion of the data-formatter-objc test case that deals with ↵Enrico Granata2015-07-174-85/+203
| | | | | | NSString into its own separate test case llvm-svn: 242552
* Improve conditional opcode handling in emulation based unwindingTamas Berghammer2015-07-171-1/+0
| | | | | | | | | | Don't chane the CFI information when a conditional instruction is emulated (eg.: popeq {r0, pc}) because the CFI for the next instruction should be the same as the CFI for the current instruction. Differential revision: http://reviews.llvm.org/D11258 llvm-svn: 242519
* Teach the std::wstring data formatter how to properly display strings with ↵Enrico Granata2015-07-172-2/+5
| | | | | | embedded NUL bytes llvm-svn: 242501
* Add StringPrinter support for printing a std::string with embedded NUL bytesEnrico Granata2015-07-172-2/+5
| | | | llvm-svn: 242496
* Xfail pexpect tests for Windows hosts.Chaoren Lin2015-07-162-2/+2
| | | | llvm-svn: 242457
* Add jThreadsInfo support to lldb-serverPavel Labath2015-07-161-1/+1
| | | | | | | | | | | | | | | Summary: This commit adds initial support for the jThreadsInfo packet to lldb-server. The current implementation does not expedite inferior memory. I have also added a description of the new packet to our protocol documentation (mostly taken from Greg's earlier commit message). Reviewers: clayborg, ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11187 llvm-svn: 242402
* Improve XFAIL for test_lldb_process_load_and_unload_commandsTamas Berghammer2015-07-161-1/+1
| | | | llvm-svn: 242392
OpenPOWER on IntegriCloud