From dce4a9aa5901788722f1a063c204e93dacbc8be7 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 4 Jan 2018 16:42:05 +0000 Subject: Look for external types in all clang modules imported by the current symbol file. This fixes a bug in -gmodules DWARF handling when debugging without a .dSYM bundle that was particularly noticable when debugging LLVM itself. Debugging without clang modules and DWO handling should be unaffected by this patch. llvm-svn: 321802 --- .../Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp new file mode 100644 index 00000000000..df752616570 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules-templates/main.cpp @@ -0,0 +1,9 @@ +#include "b.h" + +int main(int argc, const char * argv[]) +{ + Module m; + // Test that the type Module which contains a field that is a + // template instantiation can be fully resolved. + return 0; //% self.assertTrue(self.frame().FindVariable('m').GetChildAtIndex(0).GetChildAtIndex(0).GetChildAtIndex(0).GetName() == 'buffer', 'find template specializations in imported modules') +} -- cgit v1.2.3