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

            Bug ID: 30488
           Summary: boost::shared_ptr type show as 'element_type *' in GUI
                    mode
           Product: lldb
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-...@lists.llvm.org
          Reporter: ser...@vlasov.me
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17333
  --> https://llvm.org/bugs/attachment.cgi?id=17333&action=edit
Example code

In GUI mode I cannot see the real underlying type of the pointer,
it's always printed as 'element_type *', but in command line the real
types are shown. Please see the attached main.cpp to reproduce.

$ g++ -g -Wall -std=c++0x main.cpp -o out
$ lldb ./out
(lldb) b foo
(lldb) r
(lldb) p p.px
(Derived *) $0 = 0x0000000000614c20

However in GUI mode:

┌──<Variables>─────────────────────────────────
│ ◆─(shared_ptr<Base>) p
│ ├─◆─(element_type *) px = 0x0000000000614c20
│ └─◆─(boost::detail::shared_count) pn

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to