I tried p (*frame.get()) but that didn't work (frame is my name shared_ptr)
(gdb) p frame $4 = std::shared_ptr (count 2, weak 0) 0x2ea3080 (gdb) p (*frame.get()) Cannot evaluate function -- may be inlined
then I tried to get what is in this shared_ptr, then I found this
(gdb) p frame. _M_get_deleter __shared_ptr operator* reset unique ~shared_ptr _M_ptr get operator-> shared_ptr use_count _M_refcount operator bool operator= swap ~__shared_ptr
I used this _M_ptr field, it worked.
(gdb) p *frame._M_ptr $5 = { ... }
I used std :: shared_ptr and gdb 7.6.
source share