[llvm-bugs] [Bug 28826] New: "frame variable", "source list", etc. fail to produce the expected output

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 3 02:16:37 PDT 2016


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

            Bug ID: 28826
           Summary: "frame variable", "source list", etc. fail to produce
                    the expected output
           Product: lldb
           Version: 3.9
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: fakju666 at o2.pl
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160803/322177cf/attachment.html>


More information about the llvm-bugs mailing list