summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/c
Commit message (Collapse)AuthorAgeFilesLines
...
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Additional fixes/xfails for icc testsAndrew Kaylor2013-08-051-3/+6
| | | | llvm-svn: 187730
* Add the LD_LIBRARY_PATH to target.env-vars for tests expecting libimf.so ↵Matt Kopec2013-07-313-3/+14
| | | | | | | | when testing with ICC. Patch from Andy Kaylor. llvm-svn: 187520
* Adds a test for 'target module dump symfile' to the LLDB suite.Ashok Thirumurthi2013-07-311-0/+4
| | | | | TODO: Improve coverage of SBTypeMember and of 'target module dump'. llvm-svn: 187519
* Update break conditions test to have consistent behaviour on all test suite ↵Matt Kopec2013-07-311-1/+1
| | | | | | | | compilers. Also update comment in const variables test to reflect ICC status. llvm-svn: 187501
* tests: Mark expected FreeBSD failures due to pr16697Ed Maste2013-07-301-1/+2
| | | | llvm-svn: 187415
* tests: Mark expected FreeBSD failures due to pr16697Ed Maste2013-07-241-0/+1
| | | | | | | These fail due to: error: Expression can't be run, because there is no JIT compiled function llvm-svn: 187072
* Add split symbol support to test makefile & add linux split symbol test case.Michael Sartain2013-07-025-0/+147
| | | | llvm-svn: 185455
* Fix single whitespace before breakpoint filename in some tests due to r183932.Matt Kopec2013-06-171-2/+2
| | | | llvm-svn: 184104
* If using clang 3.4, skip tests affected by llvm.org/pr16214Daniel Malea2013-06-122-0/+6
| | | | | | - clang emits incomplete DWARF information for structures referenced via typedef llvm-svn: 183846
* Fixes for the IR interpreter:Sean Callanan2013-06-051-1/+2
| | | | | | | | | | | | | | - Implemented the SExt instruction, and - eliminated redundant codepaths for constant handling. Added test cases. <rdar://problem/13244258> <rdar://problem/13955820> llvm-svn: 183344
* Fixed value evaluation to handle null constants.Sean Callanan2013-05-311-0/+3
| | | | | | <rdar://problem/14005311> llvm-svn: 183022
* Clean up linux test decorators and add links to known bugsDaniel Malea2013-05-152-2/+2
| | | | | | | | | - s/skipOnLinux/skipIfLinux/ to match style of every other decorator - linkify bugizilla/PR numbers in comments No intended change in functionality. llvm-svn: 181913
* Skipping a test that asserts with gcc and icc to allow the test suite to run ↵Ashok Thirumurthi2013-05-091-2/+2
| | | | | | to completion on the gcc buildbot. llvm-svn: 181512
* Mark TestConstVariables as expected to fail due to radar 13314878 on darwin. ↵Greg Clayton2013-05-021-0/+2
| | | | | | The tests are already skipped on linux. llvm-svn: 180965
* Fixed the anonymous testcase. It was testingSean Callanan2013-04-271-3/+3
| | | | | | access to 'z' where 'z' was not in scope. llvm-svn: 180662
* Fixed expression parser handling of empty strings.Sean Callanan2013-04-241-0/+3
| | | | | | <rdar://problem/12977827> llvm-svn: 180215
* Improved tests for nested structs when anonymous structs are involved.Ashok Thirumurthi2013-04-192-22/+166
| | | | | | | | | | | | - New tests can fail on OS/X and Linux, and illustrate that the compiler used to generate the DWARF can result in lldb providing clang with an external AST source that doesn't describe all required struct fields. - Also includes test coverage for expressions with structs that do work on Linux- Also includes a test for dereferencing a null pointer to a struct, which works on OS/X rather than complaining, and complains on Linux with an upstream error that is really a side issue. Thanks to Samuel, Andy and Daniel for their input. llvm-svn: 179884
* Making the buildbot happy again after changes to the default formatter for ↵Enrico Granata2013-03-282-4/+6
| | | | | | char[] llvm-svn: 178295
* Add icc support to the test suiteMatt Kopec2013-03-151-0/+1
| | | | | | | | | | -adds icc to the lit of compilers to run the tests -adds icc test decorators -skip TestAnonymous.py for icc Patch by Ashok Thirumurthi. llvm-svn: 177174
* Skipping TestConstVariables on Linux.Andrew Kaylor2013-03-061-1/+1
| | | | | | The test was marked as expectedFailureLinux, but now it passes with gcc and some versions of clang. Newer versions of clang introduce a failure due to bad DWARF information. llvm-svn: 176581
* Fixed enum printing for negative enums. There previously was no testing to ↵Greg Clayton2013-03-062-6/+21
| | | | | | | | validate that enum values were being displayed correctly. Also added C++11 enum test cases to cover enums as int8_t, int16_t int32_t, int64_t, uint8_t, uint16_t, uint32_t, and uint64_t both for DWARF and dSYM cases. The DWARF being emitted by clang is missing the enum integer type, but the code is now ready to accept and deal with the integral type if it is supplied. llvm-svn: 176548
* Un-skipping tests affected by llvm.org/pr15256Daniel Malea2013-03-041-1/+1
| | | | | | patch by Ashok Thirumurthi! llvm-svn: 176462
* Replace all "-gdwarf-2" with "-g" to use the compiler defaults.Greg Clayton2013-02-281-1/+1
| | | | llvm-svn: 176283
* Add GNU indirect function support in expressions for Linux.Matt Kopec2013-02-271-1/+1
| | | | llvm-svn: 176206
* Fix the .categories, it had "dataformatter" not "dataformatters".Jim Ingham2013-02-251-0/+3
| | | | | | | | Remove the getCategory from TestDataFormatterObjC.py, since it was superceded by the .categories file, and didn't work anyway (getCategories currently has to be a method on the test class, not on the test.) Add a "basic_process" category, and start to find some tests for simple process running sniff tests. llvm-svn: 176061
* Mark last known Linux failure as XFAIL to see if there's any other problems ↵Daniel Malea2013-02-221-0/+1
| | | | | | with buildbots. llvm-svn: 175917
* Fix invalid TestBitfields case (thanks Filipe!), and xfail one case due to ↵Daniel Malea2013-02-201-2/+1
| | | | | | | | | | | | | | | GCC compiler bug. Turns out unnamed bit fields should not be accessed ever in C (C99 section 4.7.8) or C++ (C++11 section 9.6). Unrelated to the above, this commit marks TestBitfields as expected-to-fail with GCC as 4.7 has problems with padding... the size of the struct with a uint32_t member is reported as 12 when GCC is used. Clang emits correct code. Parts of this patch prepared by Filipe Cabecinhas! llvm-svn: 175666
* Fix a problem with the const_variables test case (another lldb bug remains)Daniel Malea2013-02-201-0/+2
| | | | | | | - make the test case step past the location where 'index' is initialized, otherwise its value cannot be printed (verified gcc 4.6/4.7 and recent clang) - "Couldn't materialize struct" error from LLDB still prevents this test case from passing llvm-svn: 175653
* More test case cleanup (Linux and Mac):Daniel Malea2013-02-152-3/+0
| | | | | | | | - remove expectedFailure decorator from resolved rdar 12566646 and 10887661 - remove expectedFailure from TestBitfields testcase not actually affected by bug - skip the (non-deterministic) TestStopHookMechanism.py to avoid a noisy suite on Linux llvm-svn: 175307
* Marking two tests expected-to-fail on LinuxDaniel Malea2013-02-141-0/+2
| | | | | | | - PR-15260: lldb does not display correct value of 1-bit field - PR-16261: lldb does not display size of (file/class) static array llvm-svn: 175111
* Skip tests that assert on Linux in ↵Daniel Malea2013-02-131-1/+1
| | | | | | | | RecordLayoutBuilder::updateExternalFieldOffset() - Filed bugzilla PR-15256 llvm-svn: 175065
* Update test scripts and Makefiles to allow testing with GCC:Daniel Malea2013-01-251-1/+1
| | | | | | | | | | | - introduce new variable ARCHFLAG in make/Makefile.rules to switch between "-arch" on Mac and "-m" everywhere else - update testcase makefiles to use LD_EXTRAS instead of LDFLAGS (the former interacts with Makefile.rules badly) - special treatment for gcc 4.6: replace "-std=c++11" with "-std=c++0x" as the former is not handled correctly - remove hardcoded "-arch" from test Makefile This patch should not have any effect on lldb on Mac OS X. llvm-svn: 173402
* Mark test cases affected by PR 15036 (GCC-generated DWARF causes parser crash)Daniel Malea2013-01-241-0/+1
| | | | | | - Add new decorator "@skipIfGcc" to lldbtest.py llvm-svn: 173394
* Made the expression handle variables withSean Callanan2013-01-184-0/+110
| | | | | | | | | | | DW_AT_const_value instead of a location. Also added a testcase covering "frame variable," "expr" using the IR interpreter, and "expr" using the LLVM JIT. <rdar://problem/12978195> llvm-svn: 172848
* <rdar://problem/12028723>Enrico Granata2013-01-093-6/+6
| | | | | | | | | | Adding useful formatting options to the expression (expr) command. As a side effect of this change, the -d option now supports the same three-values enumeration that frame variables uses (run, don't run, none) instead of a boolean like it did previously These options do not apply to print, p or po because these are aliased to not take any options. In order to use them, use expression or expr. llvm-svn: 171993
* Add an SBProcess API to get the current StopID, either considering or ↵Jim Ingham2013-01-082-1/+22
| | | | | | | | | | ignoring stops caused by expression evaluation. <rdar://problem/12968562> llvm-svn: 171914
* Made the struct test case actually use an expressionSean Callanan2012-12-141-1/+1
| | | | | | | instead of falling through to the "frame variable" code. llvm-svn: 170169
* Fixed a few bugs in the "step in" thread plan logic.Jim Ingham2012-12-122-1/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added a "step-in-target" flag to "thread step-in" so if you have something like: Process 28464 stopped * thread #1: tid = 0x1c03, function: main , stop reason = breakpoint 1.1 frame #0: 0x0000000100000e08 a.out`main at main.c:62 61 -> 62 int A6 = complex (a(4), b(5), c(6)); // Stop here to step targetting b and hitting breakpoint. 63 and you want to get into "complex" skipping a, b and c, you can do: (lldb) step -t complex Process 28464 stopped * thread #1: tid = 0x1c03, function: complex , stop reason = step in frame #0: 0x0000000100000d0d a.out`complex at main.c:44 41 42 int complex (int first, int second, int third) 43 { -> 44 return first + second + third; // Step in targetting complex should stop here 45 } 46 47 int main (int argc, char const *argv[]) llvm-svn: 170008
* Mark the "dwarf" version of the test expected fail as well as the dsym version.Jim Ingham2012-12-061-0/+2
| | | | llvm-svn: 169549
* <rdar://problem/12560257>Greg Clayton2012-12-062-7/+37
| | | | | | Fixed zero sized arrays to work correctly. This will only happen once we get a clang that emits correct debug info for zero sized arrays. For now I have marked the TestStructTypes.py as an expected failure. llvm-svn: 169465
* Rewrote the bitfield logic. Major changes include:Sean Callanan2012-12-052-0/+50
| | | | | | | | | | | | | | | | - Removed the BitfieldMap class because it is unnecessary. We now just track the most recently added field. - Moved the code that calculates bitfield widths so it can also be used to determine whether it's necessary to insert anonymous fields. - Simplified the anonymous field calculation code into three cases (two of which are resolved identically). - Beefed up the bitfield testcase. llvm-svn: 169449
* <rdar://problem/12798131> Greg Clayton2012-12-046-27/+27
| | | | | | | | | | | | Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite. This fix does the following: - make sure all short options are treated as "int" - make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired - fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates - fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value llvm-svn: 169189
* Mark expected failures on Linux (due to bugzilla #14437)Daniel Malea2012-11-272-0/+2
| | | | llvm-svn: 168727
* Improvement to TestGlobalVariables fixDaniel Malea2012-11-261-4/+4
| | | | | | | | - use lldb settings command instead of os.environ - use dyldPath fixture variable instead of hardcoding LD_LIBRARY_PATH - add tear-down hook to restore environment after testcase is run llvm-svn: 168613
* Fix for TestSharedLib.py (on Linux)Daniel Malea2012-11-261-0/+3
| | | | | | | - use lldb 'settings' command to help testcase find shared library - pull up dyldPath variable from TestLoadUnload.py to fixture base class (applicable in multiple cases) llvm-svn: 168612
* Fix TestGlobalVariables.py (on Linux)Daniel Malea2012-11-261-0/+4
| | | | | | - setting LD_LIBRARY_PATH required for the test program to run correctly llvm-svn: 168595
* Patch from Dan Malea daniel.malea@gmail.com to add some requiredJason Molenda2012-11-082-0/+2
| | | | | | flags to the Linux makefiles to get the tests to run. llvm-svn: 167600
* Added unnamed bitfields to our bitfield test.Greg Clayton2012-11-062-8/+10
| | | | llvm-svn: 167473
* Added support for zero-length arrays at the endSean Callanan2012-10-222-3/+8
| | | | | | | | of structures, and added a testcase. <rdar://problem/12551591> llvm-svn: 166450
OpenPOWER on IntegriCloud