[Bug libstdc++/83755] Pretty printers treat char* as NTBS

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 9 16:13:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83755

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We can prevent this by always casting the stored pointer to void*

        self.pointer = self.pointer.cast(gdb.lookup_type("void").pointer())


More information about the Gcc-bugs mailing list