Smart pointer pretty printers
Jonathan Wakely
jwakely@redhat.com
Thu Feb 23 18:05:00 GMT 2017
On 23/02/17 10:36 +0100, Juraj wrote:
>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.
I wasn't entirely convinced it was an improvement, and I think the
patch is significant enough to require a copyright assignment.
See https://gcc.gnu.org/ml/libstdc++/2013-04/msg00102.html
More information about the Libstdc++
mailing list