Smart pointer pretty printers
Juraj
juraj.orsulic@fer.hr
Thu Feb 23 09:37:00 GMT 2017
Hello everyone. I am using an IDE (CLion) which uses gdb for
debugging. An annoying issue is that the pretty printer for smart
pointers (shared_ptr and unique_ptr) does not serve the derefenced
pointer as a child, so the object tree cannot be expanded in the IDE
further than the smart pointer.
I have found this discussion from 2013, where Michael Marte suggested a patch:
https://gcc.gnu.org/ml/libstdc++/2013-04/msg00133.html
The last message in the thread was an amended patch by him, so I am
wondering why this didn't go in? It makes debugging a complex
application with many smart pointers in an IDE much easier.
Thanks,
Juraj
More information about the Libstdc++
mailing list