summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Added support for "bool", "true", and "false" toSean Callanan2012-10-173-0/+71
| | | | | | | the expression parser (also wchar_t) and added a test case. llvm-svn: 166131
* Patch from Matt Kopec <matt.kopec@intel.com> to fix the problem that if two ↵Jim Ingham2012-10-161-1/+2
| | | | | | | | breakpoints were set on consecutive addresses, the continue from the first breakpoint would skip the second. llvm-svn: 166000
* Fix all the test case breakages caused by folks writing tests all over the ↵Jim Ingham2012-09-2213-51/+30
| | | | | | | | place that depended explicitly on the output of "break set". Please don't do this sort of thing!!!!! llvm-svn: 164433
* Clean all files when executing 'make clean'Filipe Cabecinhas2012-05-301-0/+2
| | | | llvm-svn: 157677
* Added support for rvalue references in debug informationSean Callanan2012-05-213-0/+84
| | | | | | | | (actually, mainly just hooked up support that was already there). Added a test case, although it's expected to fail right now unless you're using top-of-tree LLVM. llvm-svn: 157220
* Fixed a nasty bug where JIT expressions didn't workSean Callanan2012-05-211-1/+1
| | | | | | | when stopped in a const method. Also updated our testsuite to ensure that JIT is forced in this case. llvm-svn: 157208
* Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases.Johnny Chen2012-04-0614-1/+41
| | | | | | | Plus some minor cleanup of test method names. Third and final batch is coming. llvm-svn: 154197
* <rdar://problem/11113279>Greg Clayton2012-03-262-4/+4
| | | | | | | | | | Fixed type lookups to "do the right thing". Prior to this fix, looking up a type using "foo::bar" would result in a type list that contains all types that had "bar" as a basename unless the symbol file was able to match fully qualified names (which our DWARF parser does not). This fix will allow type matches to be made based on the basename and then have the types that don't match filtered out. Types by name can be fully qualified, or partially qualified with the new "bool exact_match" parameter to the Module::FindTypes() method. This fixes some issue that we discovered with dynamic type resolution as well as improves the overall type lookups in LLDB. llvm-svn: 153482
* Add a test case and fix the C++ exception symbols.Jim Ingham2012-03-063-0/+126
| | | | llvm-svn: 152101
* fixing a macro name mismatch that was making our test case succeed for the ↵Enrico Granata2012-02-102-2/+4
| | | | | | wrong reason; plus a minor code change to the CPP side of the test which eases debugging efforts llvm-svn: 150213
* Fix compile time warnings for the inferior program.Johnny Chen2012-02-092-2/+2
| | | | llvm-svn: 150205
* Special build dictionary needs the same dictionary when specifying the ↵Johnny Chen2012-02-061-0/+4
| | | | | | after-the-test cleanup. llvm-svn: 149900
* Add regular C++ inheritance in addition to the virtual inheritance to ↵Johnny Chen2012-02-062-11/+37
| | | | | | | | TestCppValueCast.py. Plus mark the virtual inheritance test cases as expected failures. llvm-svn: 149891
* Convert all python objects in our API to use overload the __str__ methodGreg Clayton2012-02-042-4/+4
| | | | | | | | | | | | | | | | instead of the __repr__. __repr__ is a function that should return an expression that can be used to recreate an python object and we were using it to just return a human readable string. Fixed a crasher when using the new implementation of SBValue::Cast(SBType). Thread hardened lldb::SBValue and lldb::SBWatchpoint and did other general improvements to the API. Fixed a crasher in lldb::SBValue::GetChildMemberWithName() where we didn't correctly handle not having a target. llvm-svn: 149743
* Add test cases for SBValue.Cast(SBType). The test logic needs more polishing.Johnny Chen2012-02-042-0/+198
| | | | llvm-svn: 149741
* Fix typos.Johnny Chen2012-02-031-2/+2
| | | | llvm-svn: 149710
* Add test cases for APIs to get template arguments from an SBType.Johnny Chen2012-02-031-2/+63
| | | | llvm-svn: 149707
* Commenting out the two @expectedFailureClang decorators as the tests have ↵Johnny Chen2011-12-121-2/+2
| | | | | | | | | | been passing for a while with the recent clang compilers. The latest I tried is: Apple clang version 3.1 (tags/Apple/clang-318.0.9) (based on LLVM 3.1svn) llvm-svn: 146427
* Add SBValue::GetDynamicValue and SBValue::GetStaticValue API's.Jim Ingham2011-12-081-0/+9
| | | | | | <rdar://problem/10545069> llvm-svn: 146173
* Add more info on the failure.Johnny Chen2011-11-141-0/+3
| | | | llvm-svn: 144545
* Don't build optimized unless we are trying to test inlining.Greg Clayton2011-11-141-1/+1
| | | | llvm-svn: 144539
* Make the test case more robust by using line number to break, instead.Johnny Chen2011-11-121-2/+9
| | | | llvm-svn: 144450
* Change the expected substrings for 'frame variable' output to:Johnny Chen2011-11-011-1/+1
| | | | | | | | | | | | '::my_uint_t', 'anon_uint = 0' from: '(my_uint_t) anon_uint = 0' to make the test suite clean with ToT. llvm-svn: 143474
* Add expectedFailure decorators.Johnny Chen2011-10-311-7/+10
| | | | | | rdar://problem/10373783 llvm-svn: 143396
* Add some expr evaluations for simple STL data types.Johnny Chen2011-10-312-10/+26
| | | | | | Radar to be filed soon. llvm-svn: 143395
* Added some simple testcases for figuring out breakpoints by name in Jim Ingham2011-10-113-0/+183
| | | | | | classes & namespaces. llvm-svn: 141629
* Turn the EvaluateExpression (..., True) tests back on.Jim Ingham2011-10-071-4/+3
| | | | llvm-svn: 141375
* Remove skip decorator now that crash has been fixed.Johnny Chen2011-08-242-3/+1
| | | | | | Fix a compie warning for main.cpp. llvm-svn: 138503
* Skip these two cases temporarily while investigating the crash on OSX Lion ↵Johnny Chen2011-08-231-0/+2
| | | | | | with clang as the compiler. llvm-svn: 138393
* Add some expected failure decorators with radar numbers.Johnny Chen2011-08-232-0/+8
| | | | llvm-svn: 138316
* Modify test cases to use 'target variable' to display global variables.Johnny Chen2011-08-221-9/+7
| | | | llvm-svn: 138247
* Modify the expected substrings to accomodate clang, now that ↵Johnny Chen2011-08-161-1/+1
| | | | | | rdar://problem/8516141 has been fixed. llvm-svn: 137698
* This is an overhaul of the expression parser codeSean Callanan2011-08-053-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | that detects what context the current expression is meant to execute in. LLDB now properly consults the method declaration in the debug information rather than trying to hunt down the "this" or "self" pointer by name, which can be misleading. Other fixes include: - LLDB now properly detects that it is inside an inlined C++ member function. - LLDB now allows access to non-const members when in const code. - The functions in SymbolFile that locate the DeclContext containing a DIE have been renamed to reflect what they actually do. I have added new functions that find the DeclContext for the DIE itself. I have also introduced testcases for C++ and Objective-C. llvm-svn: 136999
* Cleaned up the SBType.h file to not include internal headers and reorganizedGreg Clayton2011-08-031-1/+1
| | | | | | | | | | | | | | | | | | the SBType implementation classes. Fixed LLDB core and the test suite to not use deprecated SBValue APIs. Added a few new APIs to SBValue: int64_t SBValue::GetValueAsSigned(int64_t fail_value=0); uint64_t SBValue::GetValueAsUnsigned(uint64_t fail_value=0) llvm-svn: 136829
* Fixed a bug in which the DWARF reader did not distinguishSean Callanan2011-08-023-0/+94
| | | | | | | | | | | | | appropriately between C++ static methods and non-static methods. This bug made it impossible to call most static methods, either because Clang did not recognize that a method could be called without providing a "this" parameter, or because Clang did not properly mangle the name of the method when searching for it in the target. Also added a testcase. llvm-svn: 136733
* Remove the @expectedFailure decorator as rdar://problem/8668674 is fixed.Johnny Chen2011-08-011-4/+2
| | | | llvm-svn: 136650
* Add a reproducible test case (expression parser crashes) to the lldb test suite.Johnny Chen2011-07-281-0/+3
| | | | | | rdar://problem/9691614. llvm-svn: 136386
* Make the test criteria more stringent with respect to rdar://problem/8668674 ↵Johnny Chen2011-07-281-4/+6
| | | | | | to prevent accidental pass. llvm-svn: 136316
* Modify:Johnny Chen2011-07-271-1/+1
| | | | | | | | | | self.expect("expression -- '(anonymous namespace)::i'", VARIABLES_DISPLAYED_CORRECTLY, substrs = [" = 3"]) to get rid of the '(anonymous namespace)', which is not c++ syntax, thingy fed to the expression parser. According to rdar://problem/8668674. It is still marked expectedFailure since the bug has not been fixed. llvm-svn: 136290
* Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, ↵Johnny Chen2011-07-112-5/+4
| | | | | | | | | | | | stdout_path, and stderr_path is just wrong and resulted in the inferior's output getting mixed into the GDB remote communication's log file. Change all test cases to not pass os.ctermid() and either use SBTarget.LaunchSimple() or SBTarget.Launch() and pass None as stdin_path/stdout_path/srderr_path to use a pseudo terminal. rdar://problem/9716499 program output is getting mixed into the GDB remote communications llvm-svn: 134940
* The lldbtest.TestBase.DebugSBValue(self, val) method call now does not need ↵Johnny Chen2011-07-111-7/+7
| | | | | | | | the frame argument. Only the val (of SBValue type) argument is needed. llvm-svn: 134915
* Centralize the variable display prefs into a new optionGreg Clayton2011-07-071-2/+4
| | | | | | | | | | | | | group class: OptionGroupVariable. It gets initialized with a boolean that indicates if the frame specific options are included so that this can be used in both the "frame variable" and "target variable" commands. Removed the global functionality from the "frame variable" command. Users should switch to using the "target variable" command. llvm-svn: 134594
* Centralize all of the type name code so that we always strip the leadingGreg Clayton2011-06-301-1/+1
| | | | | | | | "struct ", "class ", and "union " from the start of any type names that are extracted from clang QualType objects. I had to fix test suite cases that were expecting the struct/union/class prefix to be there. llvm-svn: 134132
* Move struct_types, stepping, and set_values dirs to now reside under lang/c.Johnny Chen2011-06-255-0/+214
| | | | | | Move stl dir to now reside under lang/cpp. llvm-svn: 133884
* Move some directories to now reside under lang/c or lang/cpp.Johnny Chen2011-06-2517-0/+971
| | | | llvm-svn: 133881
* Move namespace directory to now reside under lang/cpp.Johnny Chen2011-06-254-0/+190
| | | | llvm-svn: 133879
* Move C++-related test directories to now reside under lang.Johnny Chen2011-06-256-0/+500
llvm-svn: 133878
OpenPOWER on IntegriCloud