How can I access target of a std::tr1::shared_ptr in GDB. This doesn\'t work:
(gdb) p sharedPtr->variableOfTarget
If I try with the pointer
Try with
(gdb) p (*sharedPtr.get())
that function returns the a pointer to the object owned by the smart pointer.