teak-llvm/lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp
Siva Chandra d8335e9ab4 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
2015-12-16 00:22:08 +00:00

16 lines
174 B
C++

#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();
}