https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59161
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- This behaviour effectively means pretty printers for generic C++ types must never return gdb.Value from to_string() because they have no idea if GDB's default stringification will be sane. An optional<T> can't just return the T, and Wrapper<X> can't just return the X. If the only case that's a problem is for reference members, then it seems sensible to ignore the options.addressprint setting for references. Printing {ref = } instead of {ref = @0x7fffffffd73c} seems like it's never useful.