diff options
author | Siva Chandra <sivachandra@google.com> | 2015-12-16 00:22:08 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2015-12-16 00:22:08 +0000 |
commit | d8335e9ab419fd75c34acf8d44f234b92df7b8b0 (patch) | |
tree | e95e105a7d0b93f9af2585ada43f3ac29eb3b312 /lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp | |
parent | d8f719fa1cab1c99e58c080ea19b9d7043163749 (diff) | |
download | bcm5719-llvm-d8335e9ab419fd75c34acf8d44f234b92df7b8b0.tar.gz bcm5719-llvm-d8335e9ab419fd75c34acf8d44f234b92df7b8b0.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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(); +} |