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

            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
          Assignee: lldb-dev@lists.llvm.org
          Reporter: v...@apple.com
                CC: llvm-b...@lists.llvm.org

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

* 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();
   9      
-> 10     printf ("My sub foo has: %d.\n", GetMeASubFoo(my_foo_ptr)->sub_1);
   11   
   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 the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to