[lldb-dev] [Bug 24928] Evaluating expression returning an std::shared_ptr<T> fails

via lldb-dev lldb-dev at lists.llvm.org
Wed Jul 31 18:23:43 PDT 2019


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

Jonas Devlieghere <jdevlieghere at apple.com> changed:

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

--- Comment #4 from Jonas Devlieghere <jdevlieghere at apple.com> ---
jonas at jonas-imac-pro ~/l/build-ra> ./bin/lldb /tmp/a.out
(lldb) target create "/tmp/a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) b main.cpp:13
Breakpoint 1: where = a.out`main + 15 at main.cpp:13:12, address =
0x0000000100000f7f
(lldb) r
Process 34334 launched: '/tmp/a.out' (x86_64)
Process 34334 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f7f a.out`main at main.cpp:13:12
   10   int main() {
   11     A<E2> a;
   12
-> 13     return a.size(); // Break here and evaluate a.size()
   14   }
(lldb) p a.size()
(int) $0 = 1

-- 
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/20190801/6228a731/attachment.html>


More information about the lldb-dev mailing list