https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80276
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > We can prevent this by always casting the stored pointer to void* > > self.pointer = self.pointer.cast(gdb.lookup_type("void").pointer()) Oops, that was a comment for a different bug.