[lldb-dev] [Bug 20466] Inspecting variable with same name as a type does not work

via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 30 18:27:42 PDT 2019


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

Jonas Devlieghere <jdevlieghere at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 CC|                            |jdevlieghere at apple.com

--- Comment #2 from Jonas Devlieghere <jdevlieghere at apple.com> ---
lldb) target create "/tmp/a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) b main.cpp:5
Breakpoint 1: where = a.out`main + 15 at main.cpp:8:14, address =
0x0000000100000f7f
(lldb) r
Process 53813 launched: '/tmp/a.out' (x86_64)
Process 53813 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f7f a.out`main at main.cpp:8:14
   5    int main()
   6    {
   7      Foo Foo;
-> 8      return Foo.Bar();
   9    }
(lldb) p Foo.Bar();
(int) $0 = 10

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190731/7bf6bd3e/attachment.html>


More information about the lldb-dev mailing list