Bug ID: 36712
           Summary: frame var can't access types defined in another shared
                    object from the one holding the current frame
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs

We don't support "frame var" on a variable which has a type defined in another

* thread #1: tid = 0x1f07, 0x0000000100000edd two-libs`main + 45 at main.c:10,
stop reason = breakpoint 1.1
    frame #0: 0x0000000100000edd two-libs`main + 45 at main.c:10
   7      struct foo *my_foo_ptr;
   8      my_foo_ptr = GetMeAFoo();
-> 10     printf ("My sub foo has: %d.\n", GetMeASubFoo(my_foo_ptr)->sub_1);
   12     return 0;
   13   }
(lldb) frame var *my_foo_ptr
error: dereference failed: (foo *) my_foo_ptr
(lldb) expr (*my_foo_ptr)
(foo) $0 = {}
(lldb) image lookup -t foo
1 match found in libfoo.dylib:
id = {0x10000012e}, name = "foo", byte-size = 24, decl = foo.c:4, clang_type =
"struct foo {
    sub_foo sub_element;
    int other_element;

Note we know the type, but it is in the module libfoo.dylib.

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to