summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* xfail tests that failed with clang-3.7, gcc4.8.2 and on i386 to get buildbot ↵Ying Chen2015-03-256-0/+6
| | | | | | | | | | | | | | | | | | green Summary: -Refer to bug https://buganizer.corp.google.com/issues/19893563 -Test log http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/1145 Test Plan: Run tests with different compiler and archs locally Reviewers: sivachandra, ovyalov, chaoren, vharron Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8573 llvm-svn: 233157
* [TestDataFormatterStdVector] s/-fstandalone-debug/-fno-limit-debug-infoSiva Chandra2015-03-241-3/+3
| | | | | | | | | | | | Test Plan: dotest.py -C <clang|gcc> -p TestDataFormatterStdVector Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8571 llvm-svn: 233108
* Fix error introduced by changing function signatures.Zachary Turner2015-03-242-1/+2
| | | | | | | | | | | | | | | | | Since ClangASTSource::layoutRecordType() was overriding a virtual function in the base, this was inadvertently causing a new method to be introduced rather than an override. To fix this all method signatures are changed back to taking DenseMaps, and the `override` keyword is added to make sure this type of error doesn't happen again. To keep the original fix intact, which is that fields and bases must be added in offset order, the ImportOffsetMap() function now copies the DenseMap into a vector and then sorts the vector on the value type (e.g. the offset) before iterating over the sorted vector and inserting the items. llvm-svn: 233099
* Fix record layout when synthesizing class types.Zachary Turner2015-03-242-2/+1
| | | | | | | | | | | | | | | | | Prior to this patch, we would try to synthesize class types by iterating over a DenseMap of FieldDecls and adding each one to a CXXRecordDecl. Since a DenseMap doesn't provide a deterministic ordering of the elements, this would not add the fields in FieldOffset order, but rather in some random order determined by the memory layout of the DenseMap. This patch fixes the issue by changing DenseMaps to vectors. The ability to lookup a value in the DenseMap was hardly being used, and where it is sufficient to do a vector lookup. Differential Revision: http://reviews.llvm.org/D8512 llvm-svn: 233090
* Don't clobber CFLAGS_EXTRAS in tests.Robert Flack2015-03-2410-11/+11
| | | | | | | | | | | | | | | | | To run tests against a different target platform many extra compiler flags are needed to specify sysroot, include dirs, etc. The environment variable CFLAGS_EXTRAS seems suited for this purpose except that several Makefiles clobber the current flags. This change modifies all of these to add to CFLAGS_EXTRAS instead. Test Plan: Verify no regressions in ninja check-lldb. Run tests using CFLAGS_EXTRAS to specify cross compilation flags for a different target running lldb-server platform. Differential Revision: http://reviews.llvm.org/D8559 llvm-svn: 233066
* Shorten executable name in WatchpointLLDBCommandTestCaseTamas Berghammer2015-03-231-1/+1
| | | | | | | It is required because the name of the executable exceeded the maximum allowed file name on android. llvm-svn: 232959
* Fix ObjCDataFormatterTestCase.test_nsdate_* tests (ver. 2)Ilia K2015-03-232-3/+3
| | | | | | This commit reverts r232946 because it caused an another error with absolute time. llvm-svn: 232951
* Fix ObjCDataFormatterTestCase.test_nsdate_* testsIlia K2015-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The time/date strings (like "6pm April 10, 1985") are interpreted as a local time but CFDateGetAbsoluteTime() returns time in UTC. It caused a problem when local time was UTC+0100 or more (0200, 0300 etc.): ``` ====================================================================== FAIL: test_nsdate_with_dsym_and_run_command (TestDataFormatterObjC.ObjCDataFormatterTestCase) Test formatters for NSDate. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 462, in wrapper return func(self, *args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 157, in test_nsdate_with_dsym_and_run_command self.appkit_tester_impl(self.buildDsym,self.nsdate_data_formatter_commands) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 34, in appkit_tester_impl commands() File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 475, in nsdate_data_formatter_commands substrs = ['1985-04','2011-01']) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2146, in expect msg if msg else EXP_MSG(str, exe)) AssertionError: False is not True : '2011-01' returns expected result Config=x86_64-clang ====================================================================== FAIL: test_nsdate_with_dwarf_and_run_command (TestDataFormatterObjC.ObjCDataFormatterTestCase) Test formatters for NSDate. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper return func(self, *args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 163, in test_nsdate_with_dwarf_and_run_command self.appkit_tester_impl(self.buildDwarf,self.nsdate_data_formatter_commands) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 34, in appkit_tester_impl commands() File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py", line 475, in nsdate_data_formatter_commands substrs = ['1985-04','2011-01']) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2146, in expect msg if msg else EXP_MSG(str, exe)) AssertionError: False is not True : '2011-01' returns expected result Config=x86_64-clang ``` llvm-svn: 232946
* Report watchpoint hits during single stepping.Chaoren Lin2015-03-193-0/+148
| | | | | | | | | | | | | | | | | | Summary: Reorganized NativeProcessLinux::MonitorSIGTRAP to check for watchpoint hits on TRAP_TRACE. Added test for stepping over watchpoints. https://llvm.org/bugs/show_bug.cgi?id=22814 Reviewers: ovyalov, tberghammer, vharron, clayborg Subscribers: jingham, labath, lldb-commits Differential Revision: http://reviews.llvm.org/D8404 llvm-svn: 232784
* Cleanup to simplify the formatter for std::map of libstdc++.Siva Chandra2015-03-181-2/+0
| | | | | | | | | | | | | | | | | | Summary: GCC does not emit some DWARF required for the simplified formatter to work. A workaround for it has been incorporated in the formatter. The corresponding test TestDataFormatterStdMap has also been enabled for GCC. Test Plan: dotest.py -C <clang|gcc> -p TestDataFormatterStdMap Reviewers: clayborg, vharron, granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8424 llvm-svn: 232678
* Don't load register data from memory. Greg Clayton2015-03-181-1/+1
| | | | llvm-svn: 232668
* Always add some fake threads with x86_64 registers no matter what the ↵Greg Clayton2015-03-181-28/+24
| | | | | | architecture since this is just for testing that we can add new threads with completely different registers contexts to a process. llvm-svn: 232649
* Enable TestDataFormatterStdIterator with GCC.Siva Chandra2015-03-171-1/+0
| | | | | | | | | | | | | | | | | Summary: This test now passes for Clang and GCC. I do not know why it was disabled for GCC with link to a bug which should not have had an effect on this test. Test Plan: dotest.py -C gcc -p TestDataFormatterStdIterator Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8396 llvm-svn: 232552
* Implement formatter for std::vector<bool, ...> of libstdc++ in Python.Siva Chandra2015-03-171-5/+0
| | | | | | | | | | | | | | | | | | | Summary: The existing formatter in C++ has been removed as it was not being used. The associated test TestDataFormatterStdVBool.py has been enabled for both Clang and GCC on Linux. Test Plan: dotest.py -p TestDataFormatterStdVBool Reviewers: vharron, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8390 llvm-svn: 232548
* Enable TestDataFormatterStdMap on linux (libstdc++) with clang.Siva Chandra2015-03-162-4/+7
| | | | | | | | | | | | | | | | | | | | | Summary: This test should have been enabled along with 7181dae1248cc1b03505cca1b7c6e3dfeffefc0a, but since the test was actually crashing, I thought it was a much deeper problem. Turns out, all I had to do was to add "-fno-limit-debug-info" when compiling the test case. The test is still skipped when the testcase is compiled with GCC. Test Plan: dotest.py -p TestDataFormatterStdMap Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8364 llvm-svn: 232432
* Skip TestDataFormatterStdMap on linux instead of xfailing.Siva Chandra2015-03-161-4/+4
| | | | | | | | | | | | | | | | Summary: After 7181dae1248cc1b03505cca1b7c6e3dfeffefc0a, this test progresses much further but crashes. Will skip this test while I fix this properly. Test Plan: dotest.py -p TestDataFormatterStdMap Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8361 llvm-svn: 232403
* Added an Python operating system plug-in test to verify that python can be ↵Greg Clayton2015-03-164-0/+205
| | | | | | | | | | | | used to add threads to an existing process. The test does the following: 1 - runs a program to main without the OS plug-in and verifies no OS threads are in the process 2 - loads the OS plug-in and verifies the 3 OS plug-in threads are now in the current process 3 - verify the register contents of each thread that shows up 4 - unload the python OS plug-in and verify that the OS threads are gone. llvm-svn: 232401
* Handle PyLong return values in LLDBSwigPython_CalculateNumChildren.Siva Chandra2015-03-163-9/+7
| | | | | | | | | | | | | | | | | | | | | | Summary: Also, change its return type to size_t to match the return types of its callers. With this change, std::vector and std::list data formatter tests pass on Linux (when using libstdc++) with clang as well as with gcc. These tests have also been enabled in this patch. Test Plan: dotest.py -p <TestDataFormatterStdVector|TestDataFormatterStdList> Reviewers: vharron, clayborg Reviewed By: clayborg Subscribers: zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D8337 llvm-svn: 232399
* Use -fno-limit-debug-info instead of -fstandalone-debug in testsVince Harron2015-03-158-8/+8
| | | | | | | | | | | | | This fixes tests on clang-3.4 AFAICT, these flags have the same affect and -fstandalone-debug wasn't added until after clang-3.4 Committed to try to fix buildbot Differential Revision: http://reviews.llvm.org/D8347 llvm-svn: 232326
* Add support for Python object commands to return custom short and long help ↵Enrico Granata2015-03-133-9/+12
| | | | | | | | | | | | | by implementing def get_short_help(self) def get_long_help(self) methods on the command object Also, add a test case for this feature llvm-svn: 232224
* Skip VectorTypesFormatting test case when using gccTamas Berghammer2015-03-131-0/+1
| | | | | | Gcc don't support the ext_vector_type extension used by the test llvm-svn: 232169
* Fix expectation in TestDataFormatterSynthTamas Berghammer2015-03-131-1/+1
| | | | | | | | | The value of some_values (pointer) expeced to start by 0x0 but nothing requires that the first digit of the address be '0'. This CL change the expectation to check only for a value starting with 0x. llvm-svn: 232163
* Skip fdleak tests on androidTamas Berghammer2015-03-131-2/+5
| | | | | | | | | Android have more file descriptor opened by the shell what are inherited to the process (different ones on device and on emulator). Differential revision: http://reviews.llvm.org/D8299 llvm-svn: 232150
* Fix a bug in the data formatters where summary strings would not look into ↵Enrico Granata2015-03-121-2/+0
| | | | | | | | the non-synthetic value for child members if the ValueObject being formatted happened to have a synthetic value rdar://15630776 llvm-svn: 232114
* XFAIL TestAbbreviations on Linux, improve testVince Harron2015-03-121-1/+8
| | | | | | | | It was failing on gcc 4.8, only passing accidentally on clang 3.5 This patch improves the checking to make sure if fails in all cases and then XFAILS llvm-svn: 232092
* Test that software breakpoints aren't visible in disassemblyVince Harron2015-03-123-0/+93
| | | | | | | | | Linux lldb-server Handle_m doesn't properly replace software breakpoints with the original instructions. This test is added with expectedFailureLinux Differential Revision: http://reviews.llvm.org/D8191 llvm-svn: 232091
* Skip AsanTestCase and AsanTestReportDataCase on DarwinIlia K2015-03-122-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch skips tests which cause the following error: ``` 1: test_with_dsym (TestMemoryHistory.AsanTestCase) ... os command: make clean ; make MAKE_DSYM=YES ARCH=x86_64 CC="/Users/IliaK/p/llvm/build_ninja/bin/clang" with pid: 9475 stdout: rm -f "a.out" main.o main.d main.d.tmp rm -f -r "a.out.dSYM" /Users/IliaK/p/llvm/build_ninja/bin/clang -fsanitize=address -fsanitize-address-field-padding=1 -g -arch x86_64 -I/Users/IliaK/p/llvm/tools/lldb/test/make/../../include -c -o main.o main.c /Users/IliaK/p/llvm/build_ninja/bin/clang main.o -fsanitize=address -fsanitize-address-field-padding=1 -g -arch x86_64 -I/Users/IliaK/p/llvm/tools/lldb/test/make/../../include -o "a.out" stderr: clang: error: unknown argument: '-fsanitize-address-field-padding=1' clang: error: unsupported argument 'address' to option 'fsanitize=' ld: file not found: /Users/IliaK/p/llvm/build_ninja/bin/../lib/clang/3.7.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [a.out] Error 1 retcode: 2 ERROR os command: make clean with pid: 9521 stdout: rm -f "a.out" main.o main.d main.d.tmp rm -f -r "a.out.dSYM" stderr: retcode: 0 Restore dir to: /Users/IliaK/p/llvm/tools/lldb ====================================================================== ERROR: test_with_dsym (TestMemoryHistory.AsanTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 612, in wrapper func(*args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 456, in wrapper return func(self, *args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/asan/TestMemoryHistory.py", line 24, in test_with_dsym self.buildDsym (None, compiler) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 1496, in buildDsym if not module.buildDsym(self, architecture, compiler, dictionary, clean): File "/Users/IliaK/p/llvm/tools/lldb/test/plugins/builder_darwin.py", line 16, in buildDsym lldbtest.system(commands, sender=sender) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 370, in system raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'make clean ; make MAKE_DSYM=YES ARCH=x86_64 CC="/Users/IliaK/p/llvm/build_ninja/bin/clang" ' returned non-zero exit status 2 Config=x86_64-clang ---------------------------------------------------------------------- ``` Also this patch fixes findBuiltClang() by looking a clang in the build folder. BTW, another patch was made in October 2014, but it wasn't committed: http://reviews.llvm.org/D6272. Reviewers: abidh, zturner, emaste, jingham, jasonmolenda, granata.enrico, DougSnyder, clayborg Reviewed By: clayborg Subscribers: lldb-commits, DougSnyder, granata.enrico, jasonmolenda, jingham, emaste, zturner, abidh, clayborg Differential Revision: http://reviews.llvm.org/D7958 llvm-svn: 232016
* Fix AttachDeniedTestCase on androidTamas Berghammer2015-03-091-1/+6
| | | | | | | Failure caused by a missing mkfifo command in the android OS. This fix replace mkfifo with "mknode p" command on android. llvm-svn: 231651
* A few improvements to our vector types formatting story:Enrico Granata2015-03-062-6/+6
| | | | | | | | | - use a hardcoded formatter to match all vector types, and make it so that their element type is taken into account when doing default formatting - special case a vector of char to display byte values instead of characters by default Fixes the test failures Ilia was seeing llvm-svn: 231504
* Fix Radar10642615DataFormatterTestCase after r231449Ilia K2015-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: I'm not sure that this failure should be fixed by modifying this test. It seems strange for me that the only one type vUInt8 is printed with '0x' prefix. This patch fixes the following error: ``` ====================================================================== FAIL: test_with_dsym_and_run_command (Test-rdar-10642615.Radar10642615DataFormatterTestCase) Test data formatter commands. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 456, in wrapper return func(self, *args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py", line 21, in test_with_dsym_and_run_command self.data_formatter_commands() File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py", line 68, in data_formatter_commands '(vBool32) valueBool32 = (0, 1, 0, 1)']) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2100, in expect msg if msg else EXP_MSG(str, exe)) AssertionError: False is not True : '(vUInt8) valueU8 = ('\x01', '\0', '\x04', '\0', '\0', '\x01', '\0', '\x04', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0')' returns expected result Config=x86_64-clang ====================================================================== FAIL: test_with_dwarf_and_run_command (Test-rdar-10642615.Radar10642615DataFormatterTestCase) Test data formatter commands. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 473, in wrapper return func(self, *args, **kwargs) File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py", line 28, in test_with_dwarf_and_run_command self.data_formatter_commands() File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py", line 68, in data_formatter_commands '(vBool32) valueBool32 = (0, 1, 0, 1)']) File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2100, in expect msg if msg else EXP_MSG(str, exe)) AssertionError: False is not True : '(vUInt8) valueU8 = ('\x01', '\0', '\x04', '\0', '\0', '\x01', '\0', '\x04', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0')' returns expected result Config=x86_64-clang ---------------------------------------------------------------------- ``` Reviewers: granata.enrico, zturner, clayborg Subscribers: clayborg, lldb-commits, zturner, granata.enrico Differential Revision: http://reviews.llvm.org/D8102 llvm-svn: 231490
* Provide synthetic children for some vector typesEnrico Granata2015-03-063-0/+100
| | | | | | | | | | Unlike GDB, we tackle the problem of representing vector types in different styles by having a synthetic child provider that recognizes the format you're trying to apply to the variable, and coming up with the right type and number of child values to match that format This makes for a more compact representation and less visual noise Fixes rdar://5429347 llvm-svn: 231449
* XFAIL tests that are known to fail occasionally on LinuxVince Harron2015-03-053-0/+3
| | | | | | | | Trying to get the build green so we can notice new failures easier. Differential Revision: http://reviews.llvm.org/D8039 llvm-svn: 231407
* Fix expectation for TestPlatformCommand.test_shellTamas Berghammer2015-03-041-1/+4
| | | | | | | | | * Create expectation based on target platform * Add custom expectation for remote android target Differential revision: http://reviews.llvm.org/D8031 llvm-svn: 231232
* Applying D7950 to four near copies of the file.Chaoren Lin2015-03-028-129/+114
| | | | | | | | | | | | | | Summary: Using std::thread/random instead of pthread/rand. Two of them also suffered from the synchronization problem in D7916. Reviewers: clayborg, zturner, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7991 llvm-svn: 230993
* [Windows] Fix getcwd() on Windows.Zachary Turner2015-03-021-0/+8
| | | | | | | | | | Windows doesn't define getcwd(), so this test executable failed to compile. Patch by Adrian McCarthy Differential Revision: http://reviews.llvm.org/D7962 llvm-svn: 230983
* Temporarily XFAIL TestLaunchWithShellExpand to get the build greenVince Harron2015-02-281-0/+1
| | | | llvm-svn: 230832
* Use -fstandalone-debug for few tests to get around a Clang optimizationVince Harron2015-02-288-0/+57
| | | | | | | | | | | | | | | | | | | clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD targets. Other targets do not, which causes several tests to fail. This flag enables FullDebugInfo for all targets. Fixes the following tests: TestCallStdStringFunction.py TestDataFormatterSkipSummary.py TestDataFormatterStdIterator.py TestDataFormatterStdList.py TestDataFormatterStdString.py TestSBValuePersist.py TestStringPrinter.py TestTypeCompletion.py llvm-svn: 230831
* Fixed pthread linking errors in test binariesVince Harron2015-02-284-0/+4
| | | | | | | | | | | Fixes these tests: TestBreakAfterJoin.py TestCreateDuringStep.py TestExitDuringBreak.py TestMultipleBreakpoints.py llvm-svn: 230828
* Convert TestWatchLocation to use C++11 library instead of pthread.Chaoren Lin2015-02-272-45/+45
| | | | | | | | | | Reviewers: clayborg, zturner, ki.stfu, abidh Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7950 llvm-svn: 230799
* Skip LaunchInTerminalTestCase test on remote systemsIlia K2015-02-271-2/+2
| | | | | | | | | | | | | | | | | | Summary: This ability was added by @jasonmolenda in [[ http://reviews.llvm.org/rL225748 | r225748 ]] but it was commented out because he hadn't test it. I tested it on OS X and now we can enable it legally. This change is made by @chying request. Reviewers: jasonmolenda, chying, clayborg Reviewed By: clayborg Subscribers: lldb-commits, chying, jasonmolenda, clayborg Differential Revision: http://reviews.llvm.org/D7930 llvm-svn: 230782
* Fixes http://reviews.llvm.org/rL230691Chaoren Lin2015-02-271-7/+4
| | | | | | | | | | | | Summary: OS X doesn't implement pthread barriers, using a simple atomic flag instead. Reviewers: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7933 llvm-svn: 230739
* Add synchronization to TestWatchLocation.Chaoren Lin2015-02-261-0/+10
| | | | | | | | | | | | | | Summary: There was no guarantee that the three threads haven't already exited by the time the watchpoint is set. Reviewers: ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7916 llvm-svn: 230691
* Remove use_pthread option from getBuildFlags in the test environmentTamas Berghammer2015-02-254-0/+4
| | | | | | | | | | | Removing the option to require the usage of pthread based on an argument of the getBuildFlags method in lldbtest.py because it can be specified by a variable in the makefile for the given test case. Using the variable in the makefile works in all supported platforms. Differential revision: http://reviews.llvm.org/D7861 llvm-svn: 230493
* Skip symlinks to the original file when searching for debug infoPavel Labath2015-02-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | Summary: Symbols::LocateExecutableSymbolFile tries to locate the file in containing the debug info in a splitdebug configuration. It tries to skip over the original file in its search path, but it was easily fooled by symlinks. This changes the function to use llvm::sys::fs::equivalent, which can correctly compare symlinks. As a side effect, I had to fix one test because the address for the "abort" function resolves on my system to "__GI_abort" now. With the debug info, the libc on my system contains two symbols associated with the address of the abort function, and lldb prefers __GI_abort, possibly because the debug info is associated with it. It would be nice at some point to have it prefer the public symbol name. Reviewers: emaste, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7836 llvm-svn: 230476
* Fix CommandLineCompletionTestCase.test_watchpoint_xxx tests after r230408Ilia K2015-02-251-3/+13
| | | | llvm-svn: 230463
* When FileSpec::Resolve is given a bare file like "ls",Jason Molenda2015-02-251-0/+6
| | | | | | | | | | | and llvm::sys::fs::make_absolute prepends the current working directory to that path, leave the original bare file name unchanged if $cwd/ls doesn't exist. http://reviews.llvm.org/D7477 <rdar://problem/18775190> llvm-svn: 230451
* Disable file descriptor leak tests on python >=2.7.8Pavel Labath2015-02-231-3/+3
| | | | | | this version introduced an internal leak, which we cannot reasonably fix. llvm-svn: 230215
* Rename the "glob arguments" feature to "shell expand arguments"Enrico Granata2015-02-208-3/+3
| | | | | | This should not bring any feature change, except changing names of things here and there llvm-svn: 230077
* Fixed TestProcessLaunch.py for remote targetsVince Harron2015-02-181-5/+12
| | | | | | Just needed to copy stdio redirect files to/from target llvm-svn: 229766
* Add decorator for failure setting prompt on FreeBSDEd Maste2015-02-181-0/+1
| | | | | | llvm.org/pr22611 llvm-svn: 229745
OpenPOWER on IntegriCloud