<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - frame var can't access types defined in another shared object from the one holding the current frame"
   href="https://bugs.llvm.org/show_bug.cgi?id=36712">36712</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>frame var can't access types defined in another shared object from the one holding the current frame
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vsk@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>