[Lldb-commits] [PATCH] D27394: Fix expression evaluation inside lambda functions for gcc

Tamas Berghammer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 4 06:34:40 PST 2016


tberghammer created this revision.
tberghammer added a reviewer: clayborg.
tberghammer added a subscriber: lldb-commits.

Fix expression evaluation inside lambda functions for gcc

gcc emits the artificial struct created for lambda expressions inside a
lexical block what is not understood by clang (it emits them at the
compile unit level). This CL changes the dwarf parsing code to move
types defined inside a lexical block to the first parent what is not a
lexical block to avoid this clang limitation. This will make the
experience between clang and gcc consistent as clang moves these types
out of the lexical blocks before emitting the debug info.


https://reviews.llvm.org/D27394

Files:
  packages/Python/lldbsuite/test/expression_command/lambda/Makefile
  packages/Python/lldbsuite/test/expression_command/lambda/TestLambda.py
  packages/Python/lldbsuite/test/expression_command/lambda/main.cpp
  source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27394.80208.patch
Type: text/x-patch
Size: 4886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161204/0e8859b2/attachment.bin>


More information about the lldb-commits mailing list