[lldb-dev] [Bug 16191] New: LLDB fails to evaluate expressions that dereference a struct when inferior is built with recent Clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 31 13:59:32 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16191

            Bug ID: 16191
           Summary: LLDB fails to evaluate expressions that dereference a
                    struct when inferior is built with recent Clang
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: daniel.malea at intel.com
    Classification: Unclassified

Created attachment 10606
  --> http://llvm.org/bugs/attachment.cgi?id=10606&action=edit
expression evaluation log (failing) missing struct declaration

This issue appears when using ToT Clang to build the LLDB test suite. The
failure is reproducible in Test-rdar-9973865, either with the harness or
manually. To reproduce with the test, do:

python dotest --executable <path-to-lldb> -p Test-rdar-9973865

To reproduce manually:

cd <lldb-dir>/test/functionalities/data-formatter/rdar-9973865
make CC=/path/to/recent/clang
lldb ./a.out
(lldb) b 27
(lldb) run
(lldb) print *mine_ptr

Expected result: lldb prints contents of the struct.

Actual result:

error: incomplete type 'summarize_t' (aka 'Summarize') where a complete type is
required
note: forward declaration of 'Summarize'
error: 1 errors parsing expression


However, the 'summarize_t' type is declared in the main.cpp file, but LLDB
doesn't seem to pass this declaration on to Clang. Not sure if this is really
an LLDB bug, or an Clang bug.

-- 
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/20130531/fa9da70b/attachment.html>


More information about the lldb-dev mailing list