diff options
author | Greg Clayton <gclayton@apple.com> | 2015-12-08 01:02:08 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-12-08 01:02:08 +0000 |
commit | e6b36cdd4d571c91081e2d5f8c0b31830093d110 (patch) | |
tree | 22cafaecc3689d05ade3fb2171d1cd684aeebd03 /lldb/packages/Python/lldbsuite | |
parent | de02939823b3ea222d8f5730e7dfb739d5200fe8 (diff) | |
download | bcm5719-llvm-e6b36cdd4d571c91081e2d5f8c0b31830093d110.tar.gz bcm5719-llvm-e6b36cdd4d571c91081e2d5f8c0b31830093d110.zip |
Trying to submit 254476 one more time. This implement -gmodule debugging support.
It was previously reverted due to issues that showed up only on linux. I was able to reproduce these issues and fix the underlying cause.
So this is the same patch as 254476 with the following two fixes:
- Fix not trying to complete classes that don't have external sources
- Fix ClangASTSource::CompleteType() to check the decl context of types that it finds by basename to ensure we don't complete a type "S" with a type like "std::S". Before this fix ClangASTSource::CompleteType() would accept _any_ type that had a matching basename and copy it into the other type.
<rdar://problem/22992457>
llvm-svn: 254980
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py b/lldb/packages/Python/lldbsuite/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py index 69ea26edbdf..324f476efb9 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py @@ -14,11 +14,11 @@ class TestCppIncompleteTypes(TestBase): value_f = frame.EvaluateExpression("f") self.assertTrue(value_f.IsValid(), "'expr f' results in a valid SBValue object") - self.assertFalse(value_f.GetError().Success(), "'expr f' results in an error, but LLDB does not crash") + self.assertTrue(value_f.GetError().Success(), "'expr f' is successful") value_a = frame.EvaluateExpression("a") self.assertTrue(value_a.IsValid(), "'expr a' results in a valid SBValue object") - self.assertFalse(value_a.GetError().Success(), "'expr a' results in an error, but LLDB does not crash") + self.assertTrue(value_a.GetError().Success(), "'expr a' is successful") @skipIfGcc @skipIfWindows # Clang on Windows asserts in external record layout in this case. |