[lldb-dev] [Bug 20781] LLDB asserts "Cannot get layout of forward declarations!" from RecordLayoutBuilder.cpp:2782

via lldb-dev lldb-dev at lists.llvm.org
Mon Jul 22 18:42:36 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=20781

Jonas Devlieghere <jdevlieghere at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jdevlieghere at apple.com
         Resolution|---                         |FIXED

--- Comment #4 from Jonas Devlieghere <jdevlieghere at apple.com> ---
jonas at devlieghere /tmp> lldb test2.so
(lldb) target create "test2.so"
Current executable set to 'test2.so' (x86_64).
(lldb) p (bar_t*)0
error: test2.so DWARF DIE at 0x0000003e (class bar) has a member variable
0x00000046 (foo) whose type is a forward declaration, not a complete
definition.
Try compiling the source file with -fstandalone-debug
(bar_t *) $0 = 0x0000000000000000

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190723/9a031df7/attachment.html>


More information about the lldb-dev mailing list