[Lldb-commits] [PATCH] D15657: [TestCPPAuto] On linux, we need -fno-limit-debug-info.
Siva Chandra via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 18 16:53:39 PST 2015
sivachandra created this revision.
sivachandra added a reviewer: granata.enrico.
sivachandra added a subscriber: lldb-commits.
Also xfailed for GCC as there is an problem with debug info generation.
http://reviews.llvm.org/D15657
Files:
packages/Python/lldbsuite/test/lang/cpp/auto/Makefile
packages/Python/lldbsuite/test/lang/cpp/auto/TestCPPAuto.py
packages/Python/lldbsuite/test/make/Makefile.rules
Index: packages/Python/lldbsuite/test/make/Makefile.rules
===================================================================
--- packages/Python/lldbsuite/test/make/Makefile.rules
+++ packages/Python/lldbsuite/test/make/Makefile.rules
@@ -178,8 +178,10 @@
endif
LIMIT_DEBUG_INFO_FLAGS =
+NO_LIMIT_DEBUG_INFO_FLAGS =
ifneq (,$(findstring clang,$(CC)))
LIMIT_DEBUG_INFO_FLAGS += -flimit-debug-info
+ NO_LIMIT_DEBUG_INFO_FLAGS += -fno-limit-debug-info
endif
DEBUG_INFO_FLAG ?= -g
Index: packages/Python/lldbsuite/test/lang/cpp/auto/TestCPPAuto.py
===================================================================
--- packages/Python/lldbsuite/test/lang/cpp/auto/TestCPPAuto.py
+++ packages/Python/lldbsuite/test/lang/cpp/auto/TestCPPAuto.py
@@ -8,7 +8,8 @@
class CPPAutoTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
-
+
+ @expectedFailureGcc("GCC does not generate complete debug info")
def test_with_run_command(self):
"""Test that auto types work in the expression parser"""
self.build()
Index: packages/Python/lldbsuite/test/lang/cpp/auto/Makefile
===================================================================
--- packages/Python/lldbsuite/test/lang/cpp/auto/Makefile
+++ packages/Python/lldbsuite/test/lang/cpp/auto/Makefile
@@ -2,4 +2,6 @@
CXX_SOURCES := main.cpp
+CFLAGS_EXTRAS += $(NO_LIMIT_DEBUG_INFO_FLAGS)
+
include $(LEVEL)/Makefile.rules
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15657.43283.patch
Type: text/x-patch
Size: 1434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151219/cc77e97c/attachment.bin>
More information about the lldb-commits
mailing list