[Lldb-commits] [lldb] 3130a88 - [lldb][test] Macros in expressions require DWARF 5
Tatyana Krasnukha via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 12 03:04:47 PST 2019
Author: Tatyana Krasnukha
Date: 2019-11-12T13:58:06+03:00
New Revision: 3130a88137ddc6ee277c4e896f235cf93d883dfa
URL: https://github.com/llvm/llvm-project/commit/3130a88137ddc6ee277c4e896f235cf93d883dfa
DIFF: https://github.com/llvm/llvm-project/commit/3130a88137ddc6ee277c4e896f235cf93d883dfa.diff
LOG: [lldb][test] Macros in expressions require DWARF 5
Added:
Modified:
lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
index 59070728a5fa..a7549f24ea7a 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
@@ -1,6 +1,6 @@
CXX_SOURCES := main.cpp
-DEBUG_INFO_FLAG = -g3
+DEBUG_INFO_FLAG = -g3 -gdwarf-5
include Makefile.rules
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
index 817f6cb3944a..26e4309605ee 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
@@ -21,6 +21,9 @@ class TestMacros(TestBase):
hostoslist=["windows"],
compiler="gcc",
triple='.*-android')
+ @expectedFailureAll(
+ compiler="gcc", compiler_version=['<', '5.1'],
+ bugnumber=".debug_macro was introduced in DWARF 5, GCC supports it since version 5.1")
def test_expr_with_macros(self):
self.build()
More information about the lldb-commits
mailing list