<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 variable", "source list", etc. fail to produce the expected output"
   href="https://llvm.org/bugs/show_bug.cgi?id=28826">28826</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"frame variable", "source list", etc. fail to produce the expected output
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>fakju666@o2.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm trying to switch from gdb to lldb, but I can't get the latter to work. I
can attach to a process, stop it, see the backtrace, but I can't do anything
else with it. Source code can't be displayed, variables aren't displayed and
can't be accessed:

(lldb) b blink::Document::setDesignMode
Breakpoint 1: where = chrome`blink::Document::setDesignMode(WTF::String const&)
+ 27, address = 0x000055cf108aaf8b
(lldb) c
Process 15124 resuming
Process 15124 stopped
* thread #1: tid = 15124, 0x000055cf108aaf8b
chrome`blink::Document::setDesignMode(WTF::String const&) + 27 at
Document.cpp:4634, name = 'chrome', stop reason = breakpoint 1.1
    frame #0: 0x000055cf108aaf8b
chrome`blink::Document::setDesignMode(WTF::String const&) + 27 at
Document.cpp:4634
(lldb) expr this
error: invalid use of 'this' outside of a non-static member function
(lldb) frame variable
(lldb) f
frame #0: 0x000055cf108aaf8b chrome`blink::Document::setDesignMode(WTF::String
const&) + 27 at Document.cpp:4634
(lldb) source info
Lines found in module `chrome
[0x000055cf108aaf8b-0x000055cf108aaf91):
./out/Default/../../third_party/WebKit/Source/core/dom/Document.cpp:4634:21
(lldb) source list
(lldb)

And once I detach from the process, I can't even reattach to anything else
until lldb is restarted:

(lldb) c
Process 15124 resuming
(lldb) detach
Process 15124 detached
(lldb) attach -p 15124
error: no error returned from Target::Attach, and target has no process
(lldb) attach -p 15005
error: no error returned from Target::Attach, and target has no process

Everything works in gdb. There's something fundamentally wrong with this stuff
since the very basic functionality seems to be broken. Am I missing something
required for lldb to work properly? I'd be happy to provide more information if
needed.

Versions:
Latest lldb compiled from trunk, latest Chrome compiled from trunk (tried
launching with --allow-sandbox-debugging, --no-sandbox, and both).
OS: Ubuntu 16.04.1</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>