From d8335e9ab419fd75c34acf8d44f234b92df7b8b0 Mon Sep 17 00:00:00 2001 From: Siva Chandra Date: Wed, 16 Dec 2015 00:22:08 +0000 Subject: Read macro info from .debug_macro section and use it for expression evaluation. Summary: DWARF 5 proposes a reinvented .debug_macro section. This change follows that spec. Currently, only GCC produces the .debug_macro section and hence the added test is annottated with expectedFailureClang. Reviewers: spyffe, clayborg, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15437 llvm-svn: 255729 --- .../lldbsuite/test/expression_command/macros/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp new file mode 100644 index 00000000000..f2c2c101fa1 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp @@ -0,0 +1,15 @@ +#include "macro1.h" + +#define MACRO_1 100 +#define MACRO_2 200 + +int +main () +{ + int a = ONE + TWO; // Break here + + #undef MACRO_2 + #undef FOUR + + return Simple().Method(); +} -- cgit v1.2.3